i have installed nginx-0.6.35 + php-5.2.9 + php-fpm 0.5.10 for

they worked very well with no problem

and now i want run phpMyAdmin in a specially path like "/www/db/"
so i add alias directive in my conf file named vhosts.conf.

this is the vhosts.conf file:

server {
listen 80;
server_name www.mediawe.com

charset utf-8;

root /www/htdocs;

index index.html index.htm index.php;

location /db/ {
alias /www/php/;

include php_fcgi.conf;

and it included php_fcgi.conf:

location ~ \.php$ {
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root

when i browse http://myhost/db/ ,i got error "No input file
i can browse other php script with no problem

i think, maybe the $document_root is wrong for location /db/,but how
can i define it?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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