Welcome! Log In Create A New Profile

Advanced

Hiding PHP's WSOD with Nginx

CJ Ess
March 02, 2017 07:40PM
My employer uses Nginx in front of PHP-FPM to generate their web content.
They have PHP's error reporting shut off in production so when something
does go wrong in their PHP scripts they end up with a "White Screen Of
Death". From a protocol level the white screen of death is a 200 response
with no content. They were wondering if there was a way to detect the WSOD
within Nginx and substitute their 500 error page.

PHP-FPM typically uses chunked encoding so I don't think the content-length
header is going to help me.

Does anyone have any suggestions how I might best accomplish this?

I looked around with Google but all of the hits were people wanting to turn
on error reporting, or looking help getting php-fpm working with Nginx to
begin with.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Hiding PHP's WSOD with Nginx

CJ Ess March 02, 2017 07:40PM

Re: Hiding PHP's WSOD with Nginx

c0nw0nk March 02, 2017 10:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready