"No input file specified" with php Fast/CGI
fastcgi, nginx
Solution
You must add "include fastcgi.conf" in
location ~ \.$php{
#......
include fastcgi.conf;
}
Problem
I am trying to set a config for Nginx and am facing some issues. In my `sites-available` there is `default` file which contains the below code: ``` server { server_name www.test.com test.com; access_log /sites/test/logs/access.log; error_log /sites/test/logs/error.log; root /sites/test; location ~ / { index index.php include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } ``` Above code works perfectly when I write URL ``` www.test.com/service/public/ ``` when I write `www.test.com/service/public/testservice` (testservice is folder within public) it says `No input file specified.` How can this be fixed? I tried below, but no luck ``` http://nginxlibrary.com/resolving-no-input-file-specified-error/ http://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/ ```