<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>I think i got it, if i add this, it works but the images of phpmyadmin don't show, maybe a permission issue ?</P><P><BR></P><P>ndex index.php index.htm index.html;<BR>location ^~ /phpmyadmin/ {<BR> root /usr/share;<BR> include /usr/local/nginx/conf/fastcgi_params;<BR> fastcgi_pass 127.0.0:9002;<BR>}</P><P><BR></P><P>location ~ \.php$ {<BR>fastcgi_pass 127.0.0.1:9002;<BR>fastcgi_index index.php;<BR>fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;<BR>include /usr/local/nginx/conf/fastcgi_params;<BR>}<BR></P><P><BR></P><P><BR></P><BR>--- On <B>Mon, 9/14/09, Ian Hobson <I><ian@ianhobson.co.uk></I></B> wrote:<BR><BLOCKQUOTE style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><BR>From: Ian Hobson <ian@ianhobson.co.uk><BR>Subject: Re: How to configure phpmyadmin with nginx ?<BR>To:
nginx@sysoev.ru<BR>Date: Monday, September 14, 2009, 12:52 AM<BR><BR><DIV class="plainMail">Hi se7en,<BR><BR>Your location line is incorrect and you may need a line to send php over also. Try the following inside your server directive.<BR><BR>index index.php index.htm index.html;<BR>location ^~ /phpmyadmin/ {<BR> root /usr/share;<BR> include /????/fastcgi_params;<BR> fastcgi_pass 127.0.0:9002;<BR>}<BR>location ~ \.php {<BR> include /????/fastcgi_params;<BR> fastcgi_pass 127.0.0.1:9002;<BR>}<BR><BR>Don't forget to replace the ??? with the correct path - mine is /etc/nginx/ and check that phpmyadmin<BR>has been installed in /usr/share/phpmyadmin - or adjust the root.<BR><BR>Regards<BR><BR>Ian<BR><BR><BR>SE7EN wrote:<BR>> <BR>> I added this,I verify it, everything is correct, my site works fine but accessing <A href="http://mydomain.com/phpmyadmin" target="_blank">http://mydomain.com/phpmyadmin</A> still doesn't work, a 500
server errror appears.<BR>> <BR>> location ~ /phpmyadmin/.*\.php$ {<BR>> root /usr/share/;<BR>> fastcgi_pass 127.0.0.1:9002;<BR>> fastcgi_index index.php;<BR>> include /usr/local/nginx/conf/fastcgi_params;<BR>> fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;<BR>> }<BR>> <BR>> location /phpmyadmin/ {<BR>> root /usr/share/;<BR>> index index.php;<BR>> }<BR>> <BR>> <BR><BR><BR></DIV></BLOCKQUOTE></td></tr></table><br>