Hi,

I have around a server with CentOS 4.5 ( apache 2.0.53 + mod_fcgid 2.2 + 
php 5.2.4 ) installed. It is hosting around 300 domains and most of them 
using PHP with FCGID. The problem is that some of the virtual hosts have 
more loads than other ( which I knew them) and they have many problems 
which makes their host unavailble with this error :
[notice] mod_fcgid: /home/domain/public_html/forum/index.php total 
process count 54 >= 50, skip the spawn request
Then I am forcing to restart the web server to get rid of this server 
temporary unavailable for this virtual host. Or how can I increase this 
Total Process Count limit for an specific virtual host to get rid of 
this error for some specific virtual hosts ?
 Here is my configurations :
/etc/httpd/conf.d/fcgid.conf :
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
</IfModule>
SocketPath run/mod_fcgid
SharememPath run/fcgid_shm

MaxProcessCount 1000
MaxRequestsPerProcess 500
DefaultMaxClassProcessCount 100


Sample Virtualhost fcgi config :
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/domain/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/domain/fcgi-bin/php5.fcgi .php5

/home/domain/fcgi-bin/php5.fcgi :
#!/bin/sh
PHPRC=$PWD/../etc/php5
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN PHPRC
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php5-cgi

-- 
---
Regards
    =================================================================
   /  Seyyed Hamid Reza    /        WINDOWS FOR NOW  !!            /
  /  Hashemi Golpayegani  /  Linux for future , FreeBSD for ever  /
 /    Morva System Co.   / ------------------------------------- /
/  Network Administrator/ [EMAIL PROTECTED]   ,   ICQ# : 42209876 /
================================================================


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to