nginx fastcgi PHPMYADMIN (arch linux) No Input File Error
and I can't get it to work , it keeps giving me the No Input File error. I am aware that this is a problem with the paths + fastgi + and that the problem lies in my nginx.conf file can anybody help me narrow it down?
#user http;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
include /etc/nginx/conf/fastcgi.conf;
default_type application/octet-stream;
#access_log logs/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name mywebsite.com;
index index.html index.htm index.php;
root /srv/http/mywebsite/public;
access_log /srv/http/mywebsite/logs/access.log;
error_log /srv/http/mywebsite/logs/error.log;
location / {
index index.html index.htm index.php;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /phpMyAdmin {
index /phpMyAdmin/index.php ;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/phpMyAdmin/$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
}
}
2 Replies
fastcgi_index /PHPMyAdmin/index.php;
@GLaDOSDan:
I didn't really read your config file, but have you tried setting:
fastcgi_index /PHPMyAdmin/index.php;
it did not work. However I managed to fix the problem, if any one encounter a similar problem the location block for your phpmyadmin should look something like this…
location /phpmyadmin {
index index.php ;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /phpmyadmin/$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}