[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: Re: [PHP] php causes HTTP 500, but results in blank page in apache
From: Stephon Chen <stephon () gmail ! com>
Date: 2011-05-31 13:14:10
Message-ID: BANLkTimD4W2+OXGdmw0kBSz3oZgvbOn=kg () mail ! gmail ! com
[Download RAW message or body]
Hello Sean,
Here is my apache config for error handling.
403, 404 works fine, but 500 shows blank page
Alias /errorpage/ "/usr/local/www/apache22/errorpage/"
<Directory "/usr/local/www/apache22/errorpage/">
AllowOverride None
Options -Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
#
ErrorDocument 403 /errorpage/403.html
ErrorDocument 404 /errorpage/404.html
ErrorDocument 500 /errorpage/500.html
thanks a lot
--
stephon
On Tue, May 31, 2011 at 21:08, Sean Greenslade <zootboysean@gmail.com>wrote:
> 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
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic