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?
Code:
#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;
}
}
}