I am getting at random (a few times per day) following internal server error message

www.mydomain.nl [Tue Jan 25 13:34:20 2005] [error] [client x.x.x.x] Premature end of script headers:
/usr/www/cgi-bin/php-cgiwrap

Has anyone seen this before? Is there a problem with php-cgiwrap?

Comments

harald.walker’s picture

found 2 possible solutions (not really)

  1. increase RLimitMEM in your Apache configuration
  2. If you get that inevitable "premature end of script headers" then go to /etc/php4/php.ini and unset the doc_root.

On a shared server neither php.ini nor http.conf can be changed by the user, so this doesn't help. Guess I will do it without php-cgiwrap.

iraszl’s picture

I'm getting this same annoying problem all the time on Dreamhost. Is there a solution to this?
---
http://creativebits.org

Eagle-i’s picture

My hosting co. tells me it's a cpu / memory overload problem on their server caused by my script. I'd have to increase the cpu memory by upgrading my server hosting package.