Config help needed

Ian Hobson ian at
Thu Jul 22 21:12:12 MSD 2010

Hi all,

I am trying, and failing to set up a server to serve phpmyadmin.

This is my config (one of about 30 tried).

server {
     listen 80 default;
     server_name  default.anake.hcs localhost;
     index index.php index.htm index.html;
     root   /var/www/nginx-default/;
     location /doc {
         root   /usr/share;
         autoindex on;
         deny all;
     location /images {
         root   /usr/share;
         autoindex on;
     # pass the PHP scripts to FastCGI server listening on
     location ~ \.php$ {
         set $php_root   $document_root;
              if ($request_uri ~* /phpmyadmin) {
                  set $php_root /usr/share;
         fastcgi_param  SCRIPT_FILENAME  $php_root$fastcgi_script_name;
         include /etc/nginx/fastcgi.conf;
     # phpmyadmin - installed in /usr/share/phpmyadmin/index.php etc
     location /phpmyadmin {
         root    /usr/share;
         index   index.php;

/test.php                              Correct. Properly passes  
/var/www/nginx-default/tesst.php to fast-cgi and displays the results
/phpmyadmin                        No input file specified. *
*/phpmyadmin/                       No input file specified.
/phpmyadmin/index.php         No input file specified.

I'm using nginx/0.7.67

Help much appreciated


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list