Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Feb 14, 2012 12:19 am 
Offline
Junior Member

Joined: Sat Feb 11, 2012 3:29 pm
Posts: 26
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;
        }
       

       
    }

   
 

}


Last edited by nthvision on Tue Feb 14, 2012 12:54 am, edited 2 times in total.

Top
   
 Post subject:
PostPosted: Tue Feb 14, 2012 12:24 am 
Offline
Junior Member

Joined: Thu Nov 25, 2010 7:41 pm
Posts: 27
I didn't really read your config file, but have you tried setting:

fastcgi_index /PHPMyAdmin/index.php;


Top
   
 Post subject:
PostPosted: Tue Feb 14, 2012 1:41 am 
Offline
Junior Member

Joined: Sat Feb 11, 2012 3:29 pm
Posts: 26
GLaDOSDan wrote:
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...
Code:
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;
        }


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group