PDA

View Full Version : 500 Server Error / Premature end of script headers



deadelvis
10-19-2009, 07:36 AM
Hi

I have been going back and forward with bluehost support on a persistent server 500 error. Although they keep promising to do so, they still haven't been able to get back to me with a conclusive answer as to what might be causing the error. This is driving me a bit nuts as my site is essentially completely broken due to it. The error persisted for over a week, disappeared for some 3 or 4 days and is now back again. :(

Accessing the URL shows:

500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.

Server log shows:

[Mon Oct 19 07:24:35 2009] [error] Premature end of script headers: index.php

After some serious debugging I managed to drill down the cause to a imap_headerinfo() PHP function call. Why this is causing a 500 error is baffling.

Has anyone experienced similar problems? Could it be a CPU/RAM issue?
Last I heard from bluehost support they informed me that my "memory limit is as high as we allow (96M) and your max_execution_time limit isn't being hit at all (60 seconds)"

Any help/tips would be MUCH appreciated!