Resolved: Blank pages when using NginX with php-fpm
As of late I have been a bit busy so keeping up with updates to the web server has been pretty much neglected. Because of that I decided to switch to the nginx.org supported distribution to get the latest updates although that means a distribution without any of the extra plugins I’ve come to use. I decided this was an acceptable compromise due primarily to time issues. So pretty much there is where my problems began. I had a fully functional installation and all of a sudden after I switched distributions I got a blank screen. I tried everything: setting permissions again, monitoring the logs for errors, configuring again Nginx and PPH-FPM. Everything checked, the status pages, the ping stubs, the logs showed no errors… so this was quite the mystery. There were no indications as to what would result in blank pages being shown yet no errors on Nginx or PHP-FPM.
Fast forward a few hours later and finally I found the issue: The fastcgi.conf file was missing the definition of PATH_TRANSLATED. Apparently the previous distribution I was using had included this definition in the file but the nginx.org distribution has two fastcgi configuration files (fastcgi_params or fastcgi.conf)
and one of them is missing this definition. It was just a matter of adding the following line and you have yourself a functioning php site once again:
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
I hope this helps others. Seems like a really silly thing but without it PHP-FPM does not have the required configuration to be able to function properly.