Welcome! Log In Create A New Profile

Advanced

Re: Phpmyadmin and nginx

April 03, 2009 02:39PM
Sergej Kandyla Wrote:
-------------------------------------------------------
> uros678 пишет:
> > Hello,
> >
> > I'm new to this forum and nginx, so please go
> easy on me. I have a question about setting up a
> server for phpmyadmin. I'm using debian lenny. Oh,
> and did I mention that I don't have "a lot" of web
> experience at all... :)
> >
> > I installed the phpmyadmin package from the
> debian repository and now I'm trying to setup the
> nginx site so that I could access the myphpadmin
> install like this http://myserver/phpmyadmin. I
> got to the point where phpinfo() is working if I
> type http://myserver/test.php. I tried to
> configure the config files to my best knowledge
> and with looking at config files on the wiki, but
> coudn't get it to work...
> >
> > I don't understand if I must create a new
> virtual server for the myphpadmin install or can I
> somehow tell the main server or the default page
> that /phpmyadmin is located in
> /usr/share/phpmyadmin. I tried some config
> examples that I found on the net, but coudn't get
> it to work.
> >
> > Is there a documentation file that explains all
> the nginx.conf parameters? Or have I missed it
> somewhere?
> >
> > Thanks and best regards,
> > Uros
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,753,753#msg-753
> >
> >
> >
>
> Example configuration for phpmyadmin.
> Please correct a root dir to phpmyadmin and
> specify a right php-fcgi socket.
>
> #------ nginx.conf phpmyadmin --------#
>
> location /phpmyadmin {
> root /usr/local/www;
> index index.php;
> }
> location ~ ^/phpmyadmin.+\.php$ {
> root /usr/local/www;
> fastcgi_index index.php;
> fastcgi_pass
> unix:/tmp/php-fcgi.sock;
> fastcgi_param SCRIPT_FILENAME
>
> $document_root$fastcgi_script_name;
> include fastcgi_params;
> fastcgi_param HTTPS on;
> }
>
> location /phpMyAdmin {
> rewrite ^/* /phpmyadmin last;
>
> }
> #----------------------------------------

Jeeej... thank you very much. This worked, just had to omit the HTTPS on directive, because I don't have nginx set up for https, maybe another time...

Best regards,
Uros
Subject Author Posted

Phpmyadmin and nginx

uros678 April 02, 2009 10:28AM

Re: Phpmyadmin and nginx

Yordan Georgiev April 02, 2009 01:37PM

Re: Phpmyadmin and nginx

Cliff Wells April 02, 2009 01:46PM

Re: Phpmyadmin and nginx

Yordan Georgiev April 02, 2009 05:46PM

Re: Phpmyadmin and nginx

edogawaconan April 02, 2009 10:03PM

Re: Phpmyadmin and nginx

Sergej Kandyla April 03, 2009 09:22AM

Re: Phpmyadmin and nginx

uros678 April 03, 2009 02:39PM

Re: Phpmyadmin and nginx

SSSlippy April 13, 2009 05:21PM

Re: Phpmyadmin and nginx

CryptWizard April 13, 2009 05:59PM

Re: Phpmyadmin and nginx

SSSlippy April 13, 2009 06:27PM

Re: Phpmyadmin and nginx

CryptWizard April 13, 2009 06:34PM

Re: Phpmyadmin and nginx

SSSlippy April 13, 2009 07:08PM

Re: Phpmyadmin and nginx

CryptWizard April 13, 2009 07:15PM

Re: Phpmyadmin and nginx

SSSlippy April 13, 2009 07:20PM

Re: Phpmyadmin and nginx

CryptWizard April 13, 2009 07:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready