Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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/mod_fcgid.so
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

1 Answer 1

  • '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

 
discard

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.