optimizing mod_fcgid for a dediciated site

Posted by Mike Williams on Server Fault See other posts from Server Fault or by Mike Williams
Published on 2011-02-02T21:41:09Z Indexed on 2011/02/02 23:27 UTC
Read the original article Hit count: 226

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about apache

Related posts about php