I'm getting FastCGI hangups where some websites are accessible, but others return 503 Service Unavailable errors (if I wait long enough for a response). It's got lots and lots of domains on this host not accessible. This is a server with 1000 domains on it. It was running fine but slow occasionally until we switched to FastCGI. Then, it sped right up, but then many sites are not accessible. On two other servers we have, the FastCGI is running fine with 1000 domains and I cannot determine what's so different about this config.
This is CentOS 5. From the /etc/httpd/logs/error_log, I see these entries repeatedly. Perhaps they can provide clues as to what I need to do?
[warn] [client 22.214.171.124] mod_fcgid: can't apply process slot for /home/example/public_html/example.com/index.php [warn] mod_fcgid: too much processes, please increase FCGID_MAX_APPLICATION [error] [client 126.96.36.199] Premature end of script headers: index.php [warn] [client 188.8.131.52] mod_fcgid: read data timeout in 400 seconds
Our /etc/httpd/conf/php.conf shows this arrangement:
# Fastcgi configuration for PHP5 LoadModule fcgid_module modules/mod_fcgid.so MaxRequestsPerProcess 1000 #FcgidMaxProcesses 100 #FcgidProcessLifeTime 60 MaxProcessCount 500 IPCCommTimeout 400 IdleTimeout 400 ProcessLifeTime 60 #DefaultMinClassProcessCount 120 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