Nginx – PHP-CGI Started Serving Blank Pages

fastcginginxPHPWordpress

My PHP-CGI started serving blank pages for no apparent reason until I restarted the process.

I want to know why.

Unfortunately the "production" configuration file of PHP has no error_log by default. My Nginx error log also displayed no errors relating to PHP. This is probably a hopeless case, but I am asking just in case.

Here is my setup

  • Nginx 0.8.2
  • PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:37:14)
  • PHP APC 3.0.19-2
  • spawn-fcgi v1.6.2 (ipv6) – fastcgi wrapper from lighttpd

Any ideas what might have caused the error?

Update

I think I've isolated the problem. I've been using Monit to automatically restart PHP whenever it started blanking. My PHP error logs are blank.

But I figured out that if I disabled a WordPress plugin called WP-SuperCache, my PHP stopped being reset every ~10 hours. So far my PHP has been running for 3 days straight. Does anyone have any suggestions about this?

Best Answer

Supercache generates full cached versions of pages, as well as doing some other internal caching, it's possible there's some sort of timing issue in high-load situations. I'd check your cache folder to make sure it doesn't contain blank files. If it does, you probably have a file locking issue. Solving such an issue may be tricky, and will probably require you to open a bug ticket, as it's likely a problem with the code itself.