We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phpmyadmin does not work

Hi all,

I finished my website on local and upload it on my server. My files is above;

when i want to enter /pma (as u think , its phpmyadmin) its gives error : PmaController handler class cannot be loaded

how can i exclude pma from phalcon redirect ?

Thanks



8.1k

You can configure the server using .htaccess can be.



39.3k
edited Mar '14

its nginx server .

try_files $uri $uri/ @rewrite;

location @rewrite {

    rewrite ^/(.*)$ /index.php?_url=/$1;
}

it's my rewrite on it, how can I ignore "pma" folder?



8.1k
edited Mar '14

Then you may configure your nginx to phpmyadmin like :

 location /phpmyadmin {
   root /usr/share/;
   index index.php index.html index.htm;
   location ~ ^/phpmyadmin/(.+\.php)$ {
     try_files $uri =404;
     root /usr/share/;
     fastcgi_pass 127.0.0.1:9000;
     fastcgi_index index.php;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     include /etc/nginx/fastcgi_params;
   }
   location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
     root /usr/share/;
   }
 }
 location /phpMyAdmin {
   rewrite ^/* /phpmyadmin last;
 }

All request are redirect to public/index.php by nginx now in your config.