################################################################################ ## ## Sample config for apache2_mod-fcgid ## ## All lines, that are commented out, reflect the default values. ## ## ## An idle fastcgi application will be terminated after IdleTimeout seconds. ## #IdleTimeout 300 ## ## The scan interval for idle fastcgi applications in seconds. ## #IdleScanInterval 120 ## ## a fastcgi application will be terminated if handing a single request longer ## than busy timeout. Value in seconds. ## #BusyTimeout 300 ## ## The scan interval for busy timeout fastcgi applications. Value in seconds. ## #BusyScanInterval 120 ## ## The scan interval for exit pending fastcgi applications. fastcgi applications ## will be terminated within this scanning. Value in seconds. ## #ErrorScanInterval 3 ## ## The scan interval for zombie process. Value in seconds. ## #ZombieScanInterval 3 ## ## ## A fastcgi application will be terminated if lifetime expired, even no error ## is detected. Value in seconds. ## #ProcessLifeTime 3600 ## ## The directory to put the UNIX domain socket. (UNIX only) ## SocketPath /var/lib/apache2/fcgid/ ## ## The share memory file path. ## SharememPath /var/lib/apache2/fcgid/shm ## ## 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 SpawnScoreUpLimit, the spawning will be held for a while. The ## higher this number is, the higher speed of the spawning can be. ## #SpawnScoreUpLimit n (10) ## ## 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. ## #SpawnScore n (1) ## ## 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. ## #TerminationScore n (2) ## ## The max count of total fastcgi process count. ## #MaxProcessCount n (1000) ## ## The maximum number of fastcgi application instances allowed to run for any ## one fastcgi application. ## #DefaultMaxClassProcessCount n (100) ## ## The default environment variables before a fastcgi application is spawned. ## You can set this configuration more than once. ## #DefaultInitEnv env_name env_value ## ## The connect timeout to a fastcgi application. Value in seconds. ## ## Default value: 2 ## IPCConnectTimeout 10 ## ## The communication timeout to a fastcgi application. Please increase this ## value if your CGI have a slow initialization or slow respond. Value in ## seconds. ## ## Default value: 5 ## IPCCommTimeout 40 ## ## CGI output cache buffer size. Value in kilobytes. ## #OutputBufferSize 64 ## ## Associate .fcgi files with mod_fcgid ## #AddHandler fcgid-script .fcgi ## ## PHP via FastCGI ## ## uncomment the following line if you want to handle php via mod_fcgid ## # # AddHandler fcgid-script .php # FCGIWrapper /srv/www/cgi-bin/php5 .php # Options +ExecCGI # ## # End of ## ################################################################################