Premature end of script headers

2 messages Options
Embed this post
Permalink
J DeBord

Premature end of script headers

Reply Threaded More More options
Print post
Permalink
I am intermitently getting the apache "Premature end of script headers" error. ZF 1.9 PHP 5.2.1 . Refreshing the page causes the site to function correctly.

I was not familar with this error prior to a couple days ago, but from what I can understand, my php script is not completing correctly prior to the PHP interpreter sending the response to apache. I understand that I'm asking a pretty vague question, but I was wondering if any of you have had experienced anything similar? Since this does not happen every request, it is really difficult for me to debug. I really have no idea what I could have done to cause this.

Error displays in the browser as follows:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [hidden email] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at jasondebord.net Port 80


Thanks a lot,

Jason

Jason DEBORD
Zend Certified Engineer
Limoges, France

http://www.jasondebord.net
http://www.nobrandapp.com
drm-4

Re: Premature end of script headers

Reply Threaded More More options
Print post
Permalink
Hi Jason,
> I am intermitently getting the apache "Premature end of script
> headers" error. ZF 1.9 PHP 5.2.1 . Refreshing the page causes the site
> to function correctly.
This is usually caused by a crash of the PHP module, e.g. a segmentation
fault. In my experience, this is caused by either consuming vast amounts
of memory, or overflowing recursion depth (very deep recursion inside
your script). I haven't seen this error in a long time though, and a
simple upgrade to a later PHP version might solve your problem.
Segfaults usually don't explain themselves easily without hard core
debugging.


drm / Gerard