mod_fcgid Errors

I still get 500 errors once or twice a day.

From the web browser:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

===

php5.fcgi looks like:

#!/bin/bash
ulimit -t 60
ulimit -u 100
PHPRC=$PWD/../etc/php5
export PHPRC
umask 022
export PHP_FCGI_CHILDREN
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
/usr/bin/php-cgi

====

/var/log/httpd/error_log reports:

php5.fcgi: line 10: 22791 Killed /usr/bin/php-cgi
[Tue Mar 24 21:32:36 2009] [notice] mod_fcgid: process /home/virtualserver/public_html/phpmyadmin/index.php(22790) exit(communication error), terminated by calling exit(), return code: 137

===

Virtual server apache log shows:

[Tue Mar 24 21:32:34 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Tue Mar 24 21:32:34 2009] [error] [client 97.77.208.50] Premature end of script headers: cart.php

===

These happen randomly, works hundreds of times, could be on one product, could be in another, doesn't seem to matter, as long as it is PHP code.

I think the key line was that /usr/bin/php-cgi was killed, the question is why is this happening?

Status: 
Closed (fixed)