I'm using php-fpm through Nginx.
My nginx.conf can be found here: http://pastebin.com/Nu9iD8Km
It includes a file found here: http://pastebin.com/ece4cwXF
My php-fpm.conf can be found here (all the options omitted are the default): http://pastebin.com/70fBE30E
My fastcgi_params file is similar to the default, but adds this line, following a recommendation on the web:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
I keep getting blank pages instead of PHP scripts, but static stuff loads fine. What's weird is that I'm not getting 404 errors – my browser tells me that the status code is 200 OK.
Neither nginx or php-fpm's logs turn up anything interesting. What may be causing this?
How can I fix this?
Best Answer
My php section looks like this:
My listen directive in php-fpm.conf this:
Could you also provide your php-fpm.conf? If the error still exists, please enable logging in fpm and provide fpm logs: