nginx fastcgi PHPMYADMIN (arch linux) No Input File Error

Hey All. I been trying to fix this error for the last couple of hours and no success. So I installed PHPMyAdmin with pacman It sits in /srv/http/mywebsite/public/phpMyAdmin

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

I didn't really read your config file, but have you tried setting:

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;
        }

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct