Adding phpmyadmin to my default site

Dieter Zinke dieterzinke at yahoo.com
Fri Jan 23 12:53:40 MSK 2009


Originally I had a symlink in my document root that points to my phpmyadmin install. Everything works fine, but maybe a symlink is not the best solution. I don' t know, but i think so. I have now tried this for my default site:

/etc/nginx/sites-available/default:

[...]

        location /phpmyadmin/ {
            alias   /usr/share/phpmyadmin/;
            index  index.php;
        }
        location ~ ^/phpmyadmin/.+\.php$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME 
            /usr/share/$fastcgi_script_name;
            include fastcgi_params;
        }

	location ~ \.php$ {
		fastcgi_pass   127.0.0.1:9000;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-testing$fastcgi_script_name;
                include fastcgi_params;

}
# EOF

The result is now, that the "Welcome to phpmyadmin" login page comes up, but without css and the gifs used for styling this page. I can login and and and use phpmyadmin, but all pages are without any kind of styling. Is my config faulty and if, how can i correct it?


      





More information about the nginx mailing list