Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If fastcgi is running I get "No input file specified." If the fastcgi is not up, I get "The page you are looking for is temporarily unavailable." This is my config file:

   server {
 listen   80;

  root   /home/user/public_html;

 location / {
  index  index.php index.html index.htm;
 location ~ \.php$ {
  fastcgi_index  index.php;
  fastcgi_param  SCRIPT_FILENAME  /home/user/public_html$fastcgi_script_name;
               include /usr/local/nginx/conf/fastcgi_params;

            error_page   500 502 503 504  /50x.html;
        location = /home/user/public_html/50x.html {
            root   html;

I've read that changing value for cgi.fix_pathinfo and cgi.force_redirect in php.ini might help but for me it didn't.

share|improve this question
Have you checked the FGCI logs for errors? Is $fastcgi_script_name valid? – Kyle Smith Oct 22 '09 at 14:43
$fastcgi_script_name is good and im not sure if there are any fcgi logs – Jack Oct 22 '09 at 15:46
up vote 0 down vote accepted

Just a guess, but:
Does php have access rights to /home /home/user/ /home/user/....?

PS. You also can try php-fpm instead of spawn_fcgi

share|improve this answer

Please include the following line in fastcgi_params

fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
share|improve this answer

I'd second the php-fpm recommendation, the "No input file specified" error is well-known, and php-fpm has a fix for it.

share|improve this answer

I encounter the same situation of you. But I'm using php-fpm.
But my situation is a little different. I'm running the server no error.
Several days after, the browser display 'No input file specify'.
But everything go well after restart the php-fpm .

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.