When using Apache with PHP 5.2 to set up php-fpm, PHP will be handled by FastCGI, which caused one major problem for me – anything under a subdirectory of “/var/www/html” (document root for Apache) gives the infamous error “Input file not specified”.
I have tried searching on the web and tried every single method/solution I could find, but nothing could fix it for me.
Then I decided to upgrade PHP from 5.2 to 5.3 (the latest version at the time of writing this post). PHP 5.3 has a different implementation on how php-fpm works. Surprisingly, without doing anything else, the error “Input file not specified” had disappeared and never came back again. When I do a phpinfo(), it shows that the “Server API” is “FPM/FastCGI”, and not “FastCGI/CGI” like before the upgrade.