I'm getting this error in a PHP (Drupal) application:
(104)Connection reset by peer: FastCGI: comm with server "/opt/php-5.2.5/bin/php-cgi" aborted: read failed
It is often followed by this error:
FastCGI: incomplete headers (0 bytes) received from server "/opt/php-5.2.5/bin/php-cgi"
The basic Apache configuration for PHP looks like this:
FastCgiServer /opt/php-5.2.5/bin/php-cgi -initial-env PHP_FCGI_CHILDREN=32
ScriptAlias /fcgi-bin/php-5.2.5 /opt/php-5.2.5/bin/php-cgi
<Location /fcgi-bin/php-5.2.5>
Options +ExecCGI
SetHandler fastcgi-script
SetOutputFilter INCLUDES
</Location>
# send php5.2-fastcgi handler to our scriptalias
Action php-5.2.5-fastcgi /fcgi-bin/php-5.2.5
Now, my basic question is, what are the general causes of the "comm with server" error? In this particular case, the error appears intermittently, but certain pages generate it more often than others. I'd like to know what to look for when debugging my code.