Welcome! Log In Create A New Profile

Advanced

nginx and phpmyadmin

Posted by madpato 
nginx and phpmyadmin
October 24, 2011 09:55AM
Hello

I am new to nginx and i managed to configure a joomla site on my debian lenny vps, its just for testing purposes, but now i want to add phpmyadmin to the mix.
I am using a separated file for my server { } parameters (not inside nginx.conf) located in sites-available sym linked to sites-enabled. I have just one, now my question is, if want to add phpmyadmin like mydomain.com/phpmyadmin do i have to create another file, or should i just add a location { } parameter inside the same file where i have the configs of my domain.
Any extra info needed will be shared.

Thank you.
Re: nginx and phpmyadmin
October 24, 2011 03:15PM
I managed to work it out, the problem was i was pointing to the wrong folder, here is the extract in my server file:

location /pma {
root /var/www/pma;
index index.php;
}
location ~ ^/pma.+.php$ {
root /var/www/pma;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
expires 0d;
}

that worked for me. Cheers
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
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