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

2011-06-04 Thread Sean Greenslade
That's what I was thinking, thanks for confirming it. On Jun 3, 2011 3:49 PM, "Tamara Temple" wrote: > > On Jun 2, 2011, at 7:09 PM, Stephon Chen wrote: > >> Hello Sean, >> >> 1. while I directed connected to these error pages such as 403, 404, >> and 500.html, >> they works correctly, showing co

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

2011-06-03 Thread Tamara Temple
On Jun 2, 2011, at 7:09 PM, Stephon Chen wrote: Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and 500.html, they works correctly, showing correct error page 2. but while I use something like header('HTTP/1.1 500') to trigger apache 500 the content of 5

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

2011-06-03 Thread Sean Greenslade
What happens if you create a test page with just the 500 header and some html content in it? IIRC, apache won't override a php-generated error page. On Jun 2, 2011 8:09 PM, "Stephon Chen" wrote: > Hello Sean, > > 1. while I directed connected to these error pages such as 403, 404, and > 500.html,

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

2011-06-02 Thread Stephon Chen
Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and 500.html, they works correctly, showing correct error page 2. but while I use something like header('HTTP/1.1 500') to trigger apache 500 the content of 500.html does not show, but blank page only. both header('H

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

2011-06-02 Thread Sean Greenslade
So do you get the contents of that page in the response? What happens when you browse to that page manually? On Jun 1, 2011 2:14 AM, "Stephon Chen" wrote: > All 403, 404, 500.html are static html pages like: > > > 500 error happens > > > On Wed, Jun 1, 2011 at 14:10, Tamara Temple wrote: > >> >

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

2011-05-31 Thread Stephon Chen
All 403, 404, 500.html are static html pages like: 500 error happens On Wed, Jun 1, 2011 at 14:10, Tamara Temple wrote: > > On May 31, 2011, at 8:14 AM, Stephon Chen wrote: > > Hello Sean, >> >> Here is my apache config for error handling. >> 403, 404 works fine, but 500 shows blank page >>

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

2011-05-31 Thread Tamara Temple
On May 31, 2011, at 8:14 AM, Stephon Chen wrote: 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/" AllowOverride None Options -Indexes FollowSymLinks MultiViews Order allow,de

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

2011-05-31 Thread Stephon Chen
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/" AllowOverride None Options -Indexes FollowSymLinks MultiViews Order allow,deny Allow from all # ErrorDocument 403 /errorp

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

2011-05-31 Thread Sean Greenslade
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" wrote: > Hello all, > > I use a test script below to generate HTTP 500 status: > > header('HTTP/1.1 500 Internal Server Error'); > ?> > > It causes

[PHP] php causes HTTP 500, but results in blank page in apache

2011-05-30 Thread Stephon Chen
Hello all, I use a test script below to generate HTTP 500 status: 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.