I keep receiving a blank page whenever I try to access a PHP page on my nginx webserver on a Debian VPS. nginx is working fine; I can access any normal HTML page. PHP-FPM is at least running, as I can start/restart it and when I stop it the PHP pages give me a 502 bad gateway error, which is normal.

But whenever FPM is running, any PHP page is blank without any errors. This leads me to believe there is a configuration error in FPM.

Here is my php-fpm.conf: http://pastebin.com/CSUuSzxx

  • 2
    Check the PHP error logs. – Michael Hampton Jan 13 '13 at 20:53
  • For those coming to this fresh, make sure you look at this question – there are multiple answers that have worked for various people. – William Turrell May 2 '15 at 15:46

Uhm, okay.

So I had logging and error displaying etc. turned on in php.ini, but the logfile location option was commented out. I uncommented it and changed the value to /var/log/php5.log and then went to check the pages again so it would display a blank page and log something to the file.

Instead, the page loaded fine.

A bit odd but I'll take it. Thanks Michael Hampton for the help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.