|
Posted by Solotony on 05/09/05 04:03
From: Solotony <as@solotony.com>
Subject: Apache 2.0 + mod_fastcgi + PHP
Newsgroups: gmane.comp.apache.user
Summary:
Keywords:
I have Apache 2.0.52 with mod_fastcgi 2.4.2 and PHP 4.3.11 installed on Gentoo box.
When starting apache (php as fast-cgi) it runs w/o any problems, but after
some requests (500 - 1500) php die.
It doesn't depend on method fastcgi server is started (FastCgiServer or
FastCgiExternalServer) - in both cases it die.
How to repare it?
Apache config (part related to fastcgi):
----------------------------------------------------------
ScriptAlias /std-cgi/ "/usr/std-cgi/"
LoadModule fastcgi_module extramodules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcg .fcgi .fpl
AddHandler php-script .php
FastCgiConfig -maxClassProcesses 5 -maxProcesses 1000 -restart -killInterval 10
FastCgiServer /usr/std-cgi/php-fcgi -processes 1
#FastCgiExternalServer /usr/std-cgi/php-fcgi -host localhost:8002
<Location /std-cgi/php-fcgi>
SetHandler fastcgi-script
</Location>
Action php-script /std-cgi/php-fcgi
</IfModule>
-----------------------------------------------------------
error_log
-----------------------------------------------------------
[Sat May 07 22:48:49 2005] [notice] Digest: generating secret for digest authentication ...
[Sat May 07 22:48:49 2005] [notice] Digest: done
[Sat May 07 22:48:50 2005] [notice] FastCGI: process manager initialized (pid 19004)
[Sat May 07 22:48:50 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" started (pid 7450)
[Sat May 07 22:48:50 2005] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat May 07 22:48:50 2005] [notice] Apache/2.0.52 (Gentoo/Linux) mod_fastcgi/2.4.2 configured -- resuming normal operations
[Sat May 07 22:49:18 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 7450) terminated by calling exit with status '0'
[Sat May 07 22:49:18 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 8374)
[Sat May 07 22:50:01 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 8374) terminated by calling exit with status '0'
[Sat May 07 22:50:01 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 30308)
[Sat May 07 22:50:35 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 30308) terminated by calling exit with status '0'
[Sat May 07 22:50:35 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 1591)
[Sat May 07 22:51:24 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 1591) terminated by calling exit with status '0'
[Sat May 07 22:51:24 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has remained running for more than 30 seconds, its restart interval has been restored to 5 seconds
[Sat May 07 22:51:24 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 8757)
[Sat May 07 22:52:58 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 8757) terminated by calling exit with status '0'
[Sat May 07 22:52:58 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 21006)
[Sat May 07 22:53:35 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 21006) terminated by calling exit with status '0'
[Sat May 07 22:53:35 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 5268)
[Sat May 07 22:54:03 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 5268) terminated by calling exit with status '0'
[Sat May 07 22:54:03 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" restarted (pid 1000)
[Sat May 07 22:54:22 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" (pid 1000) terminated by calling exit with status '0'
[Sat May 07 22:54:22 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:54:31 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:54:41 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:54:51 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:54:52 2005] [error] [client 192.168.1.115] FastCGI: comm with server "/usr/std-cgi/php-fcgi" aborted: idle timeout (30 sec)
[Sat May 07 22:54:52 2005] [error] [client 192.168.1.115] FastCGI: incomplete headers (0 bytes) received from server "/usr/std-cgi/php-fcgi"
[Sat May 07 22:55:01 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:55:11 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:55:21 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Sat May 07 22:55:31 2005] [warn] FastCGI: server "/usr/std-cgi/php-fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
......................
------------------------------------------------------
Antonio Solo
as@solotony.com
Navigation:
[Reply to this message]
|