Re: php causes HTTP 500, but results in blank page in apache

From: Date: Tue, 31 May 2011 13:08:34 +0000
Subject: Re: php causes HTTP 500, but results in blank page in apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-313261@lists.php.net to get a copy of this message
Have you checked your apache settings for generating error pages? How is it configured to handle 500 errors? On May 30, 2011 4:51 AM, "Stephon Chen" <stephon@gmail.com> wrote: > Hello all, > > I use a test script below to generate HTTP 500 status: > > <?php > header('HTTP/1.1 500 Internal Server Error'); > ?> > > It causes HTTP 500 in apache log, but apache shows blank page instead of > HTTP 500 error page > But 403, 404 works correctly. > > Why this thing occurs? And is there any soultion? > > My platform is FreeBSD 8.2, PHP 5.3.6, and Apache 2.2.18, which running php > as php-cgi mode. > > Thanks a lot > -- > stephon

« previous php.general (#313261) next »