in reply to Not your normal " Premature end of script headers:"

Have you tried parsing your access log for clues? Looking for things such as a particular script that runs right before the problem occurs, excessively long/suspicious GET requests, and whatever else comes to mind may help point you in the right direction. This may take a little grunt work, but you can whip up some Perl to help you out.

You could also temporarily configure additional logs to help isolate the problem. Besides Apache's normal log formatting parameters, you can use a subset of Perl type regexes for filtering. Here's an example Apache config (untested) for only logging requests to cgi scripts.

SetEnvIf Request_URI "/cgi-bin/.+\.cgi" logthis=1 CustomLog /path-to/access_log_temp combined env=logthis

Replies are listed 'Best First'.
Re^2: Not your normal " Premature end of script headers:"
by RMGir (Prior) on Jun 18, 2008 at 19:00 UTC
    That's a good idea. Another option: count how often each script is run before the first error.

    Perhaps you'll be lucky and script x will be run exactly the same # of times before the failure each restart...


    Mike