Re: Can't fix "No input file specified." with php-fastcgi

What aplication are you using? I mean with php?

I only have 2 php files at this time because the rest of the server is
using ruby. It’s just standard php and not even very much php.

Posted at Nginx Forum:

Please post your nginx.conf here, because the error can be in the nginx
configuration. Also make sure to have cgi.fix_pathinfo=1 in your
php.ini.

Andrejs

Posted at Nginx Forum:

cgi.fix is already set in php.ini

#user nobody;
worker_processes 3;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;

events {
worker_connections 1024;
}

http {
passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8;
passenger_ruby /usr/local/bin/ruby;

include       mime.types;
default_type  application/octet-stream;

#log_format  main  '$remote_addr - $remote_user [$time_local]

“$request” ’
# '$status $body_bytes_sent “$http_referer” ’
# ‘“$http_user_agent” “$http_x_forwarded_for”’;

#access_log  logs/access.log  main;

sendfile        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;

#gzip  on;

server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;
    location / {
            root   /var/www/contest;
            index  index.php index.html index.htm;
    }

    location /staging {
            root

/var/www/FreeFallHighScoreWebStuff/current/public;
passenger_enabled on;
passenger_min_instances 3;
}

    location /staging_assets {
            root

/var/www/FreeFallHighScoreWebStuff/current/public;
}

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    location /gitphp {
            root /var/www;
            index index.php index.html index.htm;
    }


    ## Parse all .php file in the /var/www directory
    location ~ .php$ {
            root /var/www;
            fastcgi_split_path_info ^(.+\.php)(.*)$;
            fastcgi_pass   backend;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME

/var/www$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}

    location ~ /\.ht {
        deny  all;
    }
}

upstream backend {
server 127.0.0.1:9000;
}
}

Posted at Nginx Forum: