Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
2  
Check the PHP error logs. –  Michael Hampton Jan 13 '13 at 20:53

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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