Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a single PHP script on a fairly high traffic server that is throwing off a lot of errors of this sort:

(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers: script.php

However, for any parameters I can think of, the script returns successfully and immediately. There have also been no user complaints, nor any corresponding errors in the PHP error log.

However, it's only this one script that is giving any errors, so I assume there must be a problem causing it to fail under certain conditions. In order to debug further, I need to know what GET parameters are being sent to the script when it fails. Is there a way to modify Apache's error logging to include this information?

share|improve this question
up vote 0 down vote accepted

I was able to solve this problem in a somewhat cludgy way by grepping the domain access log for the IP address from the error in the error log. That let me narrow down to the specific request that was failing. Was able to get the arguments from the access log that way, as well as confirm that it's returning internal server error (500).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.