So, in my apache error_log i have often : mod_fcgid: can't apply process slot for /home/site1/www/index.php
Any idea ? Thanks 2010/10/29 Julien Jabouin <chatlumo....@gmail.com>: > Hello, > > I update mod_fcgid to the last stable version 2.3.5 and i added > "FcgidMaxRequestsPerProcess 1000" and comment PHP_FCGI_CHILDREN but > now my website is very slow (about 5 to 10 seconds to have a page), do > you know why ? > > Thanks, > Julien > > 2010/9/25 Travers Carter <tcar...@noggin.com.au>: >> Hi, >> >> I'm not sure if this is the exact cause of your problem, but a few >> config changes I would try are below: >> >> On Sat, 25 Sep 2010 04:11:18 +0200, Julien Jabouin <chatlumo....@gmail.com> >> wrote: >>> >>> #cat /etc/apache2/mods-available/fcgid.conf >>> <IfModule mod_fcgid.c> >>> AddHandler fcgid-script .fcgi >>> IPCConnectTimeout 20 >>> # IdleTimeout 300 >>> # IdleScanInterval 240 >>> # BusyTimeout 300 >>> # BusyScanInterval 120 >>> # ErrorScanInterval 6 >>> # ZombieScanInterval 3 >>> # ProcessLifeTime 3600 >>> # SpawnScoreUpLimit 10 >>> # IPCConnectTimeout 300 >>> # IPCCommTimeout 300 >>> </IfModule> >> >> You should add "MaxRequestsPerProcess 1000" to the above list, >> where 1000 is whatever value you set PHP_FCGI_MAX_REQUESTS to. >> >> If the two don't match some requests can fail. >> >> For the newer (Apache) version of mod_fcgid the directive is called >> FcgidMaxRequestsPerProcess, but it is the same thing. >> >> See >> http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestsperprocess >> >> >>> >>> # cat /var/www/site1/php-cgi >>> #!/bin/bash >>> PHP_FCGI_CHILDREN=4 >>> PHP_FCGI_MAX_REQUESTS=1000 >>> export PHP_FCGI_CHILDREN >>> export PHP_FCGI_MAX_REQUESTS >>> exec /usr/bin/php5-cgi >>> >> >> >> Don't set PHP_FCGI_CHILDREN, mod_fcgid won't send more than one request at >> a time >> to a process, so you should increase the (Fcgid)MaxProcessesPerClass >> setting in >> apache instead. >> >> See >> http://wherethebitsroam.com/blogs/jeffw/apache-php-fastcgi-and-phpfcgichildren >> >> >> -- >> Travers Carter - Noggin - http://www.noggin.com.au/ >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Mod-fcgid-users mailing list >> Mod-fcgid-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users >> > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users