2006-09-06 13:08:59 +00:00
< !doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
< html >
< head >
< title > The mod_fcgid Home Page< / title >
< meta http-equiv = "Content-Type" content = "text/html; charset=us-ascii" >
< / head >
< body bgcolor = "#ffffff" >
< table border = "0" cellpadding = "5" cellspacing = "0" width = "893" >
< tr >
< td align = "center" valign = "top" width = "200" >
< table cellpadding = "5" cellspacing = "0" >
< tr >
< td nowrap bgcolor = "#f8eda6" align = "left" >
< a href = "index.htm" > Home< / a > < br >
< a href = "index.cn.htm" > Chinese Info< / a > < br >
< a href = "download.htm" > Download (source)< / a > < br >
< a href = "doc.htm" > Documentations< / a > < br >
< a href = "feedback.htm" > Feedback< / a >
< / td > < / tr > < / table > < / td >
< td valign = "top" width = "669" >
< ul >
< li >
< p > < b > < font size = "4" > Here are some examples of configuration< / font > < / b > < / p >
< / li >
< / ul >
< p > < a href = "configuration.htm#regular fastcgi" > Configuration for Regular fastcgi
(non-PHP, non-Ruby, non-Python) < / a > < p > < a href = "configuration.htm#suEXEC" > Configuration
for suEXEC fastcgi< / a > < p > < a href = "configuration.htm#PHP" > Configuration for PHP
(UNIX)< / a > < p > < a href = "configuration.htm#suPHP" > Configuration for suPHP (UNIX)< / a > < p > < a href = "configuration.htm#PHP-Windows" > Configuration
2006-10-31 18:37:08 +00:00
for PHP (Windows)< / a > < p > < a href = "configuration.htm#Authenticator" > Configuration
for Authenticator< / a > < p > < a href = "configuration.htm#Authorizer" > Configuration
for Authorizer< / a > < p > < a href = "configuration.htm#AccessChecker" > Configuration
for AccessChecker< / a > < p >
2006-09-06 13:08:59 +00:00
< hr >
< ul >
< li > < h2 > < b > < font size = "4" > There are
some other configurations you can set< / font > < / b > < / h2 >
< / li >
< / ul >
< p > < b > IdleTimeout n (300
seconds)< / b > < p > An idle fastcgi application will be terminated after IdleTimeout
seconds. < p > < b > IdleScanInterval n (120 seconds)< / b > < p > The scan interval for idle
fastcgi applications. < p > < b > BusyTimeout n (300 seconds)< / b > < p > a fastcgi
application will be terminated if handing a single request longer than busy
timeout.< p > < b > BusyScanInterval n (120 seconds)< / b > < p > The scan interval for busy
timeout fastcgi applications.< p > < b > ErrorScanInterval n (3 seconds)< / b > < p > The
scan interval for exit pending fastcgi applications. fastcgi applications will
be terminated within this scanning.< p > < b > ZombieScanInterval n (3 seconds)< / b > < p > The
scan interval for zombie process. < p > < b > ProcessLifeTime n (3600 seconds)< / b > < p > A
fastcgi application will be terminated if lifetime expired, even no error is
detected.< p > < b > SocketPath path (logs/fcgidsock)< / b > < p > The directory to put the
UNIX domain socket. (UNIX only)< p > < b > SpawnScoreUpLimit n (10)< / b > < p > The
spawn-speed control score up water limit. Score increases while a process is spawned or terminated, and decreases
as time progresses; while the score is higher than < b > SpawnScoreUpLimit< / b > , the spawning will be
held for a while. The higher this number is, the higher speed of the spawning
can be.< p > < b > SpawnScore n (1)< / b > < p > The weight of spawning. This weight
will be plused to the spawn-control score on every spawn. The higher this number
is, the lower speed of spawning can be.< p > < b > TerminationScore n (2)< / b > < p > The
weight of termination. This weight will be plused to the score while fastcgi
process terminates. The higher this number is, the lower speed of spawning can
be.< p > < b > MaxProcessCount n (1000)< / b > < p > The max count of total fastcgi process
count.< p > < b > DefaultMaxClassProcessCount n (100)< / b > < p > The maximum number of
fastcgi application instances allowed to run for any one fastcgi application. < p > < b > DefaultMinClassProcessCount n
(3)< / b > < p > The minimum number of
fastcgi application instances for any one fastcgi application. < p > < b > DefaultInitEnv
env_name env_value< / b > < p > The default environment variables before a fastcgi
application is spawned. You can set this configuration more
than once.< p > < b > IPCConnectTimeout n (3 seconds)< / b > < p > The connect timeout to a
fastcgi application. < p > < b > IPCCommTimeout n (20 seconds)< / b > < p > The communication
timeout to a fastcgi application. Please increase this value if your CGI have a
slow initialization or slow respond.< p > < b > OutputBufferSize n (64k bytes)< / b > < p > CGI
2006-10-31 18:37:08 +00:00
output cache buffer size.< p > < b > PHP_Fix_Pathinfo_Enable< / b > < b > n(n=0/1, default 0)< / b > < p > If
2006-09-06 13:08:59 +00:00
you are using PHP and set cgi.fix_pathinfo=1 in php.ini, set
2006-10-31 18:37:08 +00:00
PHP_Fix_Pathinfo_Enable 1.< p > < b > MaxRequestsPerProcess n (-1)< / b > < p > (Added in
version 1.11, patch from Robert L Mathews)< p > Adds a MaxRequestsPerProcess parameter that allows mod_fcgid to
exit after handling a certain number of requests, similar to the existing ProcessLifeTime option. < p > This solves a problem with PHP in FastCGI mode. By default, PHP stops
accepting new FastCGI connections after handling 500 requests; unfortunately, there is a potential race condition during the PHP cleanup code in which
PHP can be shutting down but still have the socket open, so mod_fcgid under heavy load can send request number 501 to PHP and have it "accepted", but then
PHP appears to simply exit, causing errors.< p > If you are using PHP, you should
set it to 500. -1 mean fastcgi process will not exit no matter how many requests
it has handled.< br >
2006-09-06 13:08:59 +00:00
< / td >
< / tr >
< / table >
< / body > < / html >