Welcome! Log In Create A New Profile

Advanced

Re: How to configure phpmyadmin with nginx ?

Ian Hobson
September 14, 2009 09:34AM
SE7EN wrote:
>
> I think i got it, if i add this, it works but the images of phpmyadmin
> don't show, maybe a permission issue ?
>
>
Improbable and easy to check - the server only needs read access.

More likely IMO, is that phpmyadmin is asking for them in the wrong place.
Take a look at the source of a phpmyadmin page.

My logon screen contains

<img src="./themes/original/img/logo_right.png <view-source:http://212.13.194.210/phpmyadmin/themes/original/img/logo_right.png>" id="imLogo" .. etc

that is served from

/src/share/phpmyadmin/themes/original/img/logo_right.png


If you request

themes/original/img/logo_right.png
and
phpmyadmin/phpmyadmin/themes/original/img/logo_right.png

you will find out which.

> dex index.php index.htm index.html;
> location ^~ /phpmyadmin/ {
> root /usr/share;
> include /usr/local/nginx/conf/fastcgi_params;
> fastcgi_pass 127.0.0:9002;
>
Did you mean 127.0.0.1:9002?
>
> }
>
>
> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9002;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
>
This ^^^ line is redundant because there is a line containing

fastcgi_params SCRIPT_FILENAME $document_root$fastcgi_script_name;

in the included file below, that will result in the same thing.

Ian
>
> include /usr/local/nginx/conf/fastcgi_params;
> }
>
>
>
>
> --- On *Mon, 9/14/09, Ian Hobson /<ian@ianhobson.co.uk>/* wrote:
>
>
> From: Ian Hobson <ian@ianhobson.co.uk>
> Subject: Re: How to configure phpmyadmin with nginx ?
> To: nginx@sysoev.ru
> Date: Monday, September 14, 2009, 12:52 AM
>
> Hi se7en,
>
> Your location line is incorrect and you may need a line to send
> php over also. Try the following inside your server directive.
>
> index index.php index.htm index.html;
> location ^~ /phpmyadmin/ {
> root /usr/share;
> include /????/fastcgi_params;
> fastcgi_pass 127.0.0:9002;
> }
> location ~ \.php {
> include /????/fastcgi_params;
> fastcgi_pass 127.0.0.1:9002;
> }
>
> Don't forget to replace the ??? with the correct path - mine is
> /etc/nginx/ and check that phpmyadmin
> has been installed in /usr/share/phpmyadmin - or adjust the root.
>
> Regards
>
> Ian
>
>
> SE7EN wrote:
> >
> > I added this,I verify it, everything is correct, my site works
> fine but accessing http://mydomain.com/phpmyadmin still doesn't
> work, a 500 server errror appears.
> >
> > location ~ /phpmyadmin/.*\.php$ {
> > root /usr/share/;
> > fastcgi_pass 127.0.0.1:9002;
> > fastcgi_index index.php;
> > include /usr/local/nginx/conf/fastcgi_params;
> > fastcgi_param SCRIPT_FILENAME
> /usr/share/phpmyadmin$fastcgi_script_name;
> > }
> >
> > location /phpmyadmin/ {
> > root /usr/share/;
> > index index.php;
> > }
> >
> >
>
>
>
Subject Author Posted

How to configure phpmyadmin with nginx ?

ktm September 12, 2009 06:00PM

Re: How to configure phpmyadmin with nginx ?

edogawaconan September 13, 2009 02:40AM

Re: How to configure phpmyadmin with nginx ?

ktm September 13, 2009 03:32PM

Re: How to configure phpmyadmin with nginx ?

Ian Hobson September 13, 2009 06:00PM

Re: How to configure phpmyadmin with nginx ?

ktm September 14, 2009 03:58AM

Re: How to configure phpmyadmin with nginx ?

ktm September 14, 2009 04:06AM

Re: How to configure phpmyadmin with nginx ?

Artifex Maximus September 14, 2009 09:16AM

Re: How to configure phpmyadmin with nginx ?

Ian Hobson September 14, 2009 09:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready