FastCGI + Apache2 + php4fcgi
"Tom Myny" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi folks, I have the following problem after 300 seconds (default killinterval): Apache2 error logs: .... [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 493) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 706) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 1214) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 32554) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 32589) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 3541) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 32326) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 32575) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 3447) termination signaled [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4053) terminated by calling exit with status '0' [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4059) terminated by calling exit with status '0' [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4064) terminated by calling exit with status '0' [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4092) terminated by calling exit with status '0' [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4132) terminated by calling exit with status '0' -> and here is the problem [Mon Sep 26 17:07:33 2005] [error] [client 212.100.181.46] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/cgi-bin/php" [Mon Sep 26 17:07:33 2005] [error] [client 81.245.161.224] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/cgi-bin/php", referer: http:// www.sitexxx.be /shop.php?p=buy&s=12&x=Ninja&y=1&login=koop [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4092) terminated by calling exit with status '0' [Mon Sep 26 17:07:33 2005] [warn] FastCGI: (dynamic) server "/usr/local/apache2/cgi-bin/php" (pid 4132) terminated by calling exit with status '0' -> again [Mon Sep 26 17:07:33 2005] [error] [client 212.100.181.46] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/cgi-bin/php" [Mon Sep 26 17:07:33 2005] [error] [client 81.245.161.224] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/cgi-bin/php", referer: http://www.sitexxx.be/shop.php?p=buy&s=12&x=Ninja&y=1&login=koop Sometimes a fastcgi proces is killed while its used by the webserver (resulting in a Internal Server Error on the webserver) This is not always the case, but you can count it happens 10 times each hour. -- My apache config: FastCgiWrapper /usr/local/apache2/bin/suexec FastCgiServer /usr/local/apache2/cgi-bin/php -user apache -group apache FastCgiConfig -startDelay 2 -singleThreshold 25 -multiThreshold 50 -autoUpdate -idle-timeout 30 -maxClassProcesses 20 -maxProcesses 100 -pass-header Authorization -- Setting singleThreshold to 0 is no option, my fastcgi's processes have to be killed after some time. (I have +1000 vhosts in the apache config, with +400 suexecusers) -- /usr/local/apache2/cgi-bin/php #!/bin/sh PHPRC="/usr/local/apache2/cgi-bin" export PHPRC PHP_FCGI_CHILDREN=2 export PHP_FCGI_CHILDREN exec /usr/local/apache2/cgi-bin/php4.fcgi -- Someone have an idea ? Best Regards, Tom Myny ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/