Cant access phpmyadmin with LNMP setup

I installed phpmyadmin in “/home/wwwroot/pma” and wordpress under
but when I try to login to phpmyadmin, after i entered the password and
username, it redirected me to my home page(which is served from
here is the screenshot of login similar to mine (except mine is in
english) :
below is the rewrite rule for wordpress:

location / {
if (-f $request_filename/index.html){
rewrite (.) $1/index.html break;
if (-f $request_filename/index.php){
rewrite (.
) $1/index.php;
if (!-f $request_filename){
rewrite (.*) /index.php;

can anyone help me and see what is wrong, really need phpmyadmin to
manage the database. thank you

Posted at Nginx Forum:

if i change the rewrite rule to the following, phpmyadmin will works
fine, but then some of my wordpress url will stop working.
location / {
# This is cool because no php is touched for static
try_files $uri $uri/ /index.php;

Posted at Nginx Forum: