What does FastCGI mean: message to server?
I am getting this error in PHP (Drupal) application:
(104)Connection reset by peer: FastCGI: comm with server "/opt/php-5.2.5/bin/php-cgi" aborted: read failed
This error is often followed by:
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 main question is, what are the common causes of a "comm with server" error? In this particular case, the error occurs intermittently, but some pages generate the error more often than others. I would like to know what to look for when debugging my code.
+1
source to share
5 answers