Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i'm using mod_fcgid and I'm trying to find resources on how i can optimize it for running a dedicated website but have had no luck... so far i have:

ive got apache2 running and im trying to have php processes spawned and always running so apache does not have to keep spawning them.

# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/
MaxRequestsPerProcess 5000
# Maximum number of PHP processes.
MaxProcessCount       8
# Number of seconds of idle time before a process is terminated
IPCCommTimeout        1800
IdleTimeout           1800
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
share|improve this question
  • 'IPCCommTimeout' may be too large. Set the normal limit(60-180)
  • 'IdleTimeout' set to 3600 or higher
  • 'DefaultMaxClassProcessCount' set to (number or CPU core)
  • 'ProcessLifeTime' set to 7200
  • 'MaxProcessCount' set large 'DefaultMaxClassProcessCount'(2*'DefaultMaxClassProcessCount')
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.