Configuring phpmyadmin

Igor Sysoev igor at sysoev.ru
Wed May 25 14:25:21 MSD 2011


On Wed, May 25, 2011 at 06:13:49AM -0400, Trazzt wrote:
> Thank you, that did the trick!
> Only I have a new problem now. PHP looks suddenly disabled
> I get a text file, when I visit: '127.0.0.1/phpmyadmin'
> Like this:
>  http://postimage.org/image/2j6o8olyc/
> 
> I already tried to add the line:
>         fastcgi_index   index.php;
> and restarting nginx. That didn't work

You do not need this directive.

> Rebooting also didn't help
> 
> Do you know how I can enable PHP again?

-    location ~ ^/phpmyadmin/\.php$ {
+    location ~ ^/phpmyadmin/.+\.php$ {

This is yet one of the reasons why I try to avoid as much as possible
regex locations - too high mistake probability if you do not write or read
a hundrend regexes a day.


-- 
Igor Sysoev



More information about the nginx mailing list