Results 1 to 9 of 9
-
10-23-2012, 07:22 AM #1Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
mod_fcgid: can't apply process slot for
Hi all,
I'm having error log with this error "mod_fcgid: can't apply process slot for /home/MY DOMAIN/fcgi-bin/php5.fcgi"
Server running process became 400+ Ram used 1.4GB out of 2GB
VPS with Virtualmin Control Panel
Debian OS
2GB RAM
Please help me here.Learn a lot in WHT many expert have helped me out...
-
01-04-2013, 06:33 AM #2Junior Guru Wannabe
- Join Date
- Jan 2013
- Location
- Virginia Beach, Va
- Posts
- 52
Setting FastCGI defaults
It looks like you're using FastCGI as your PHP handler, which by default has some pretty low limits associated with it, especially for MaxProcessCount. Since you're on a VPS you can bump up the defaults a bit to allow more concurrent PHP processes to run at once, and stop these types of errors from happening.
You might want to ask your host about this depending on how they have things configured for you. In my case the default settings for FastCGI are adjusted here:
/usr/local/apache/conf/php.conf
Here are the settings I've been using that seem to work in most cases:
Code:# Fastcgi configuration for PHP5 LoadModule fcgid_module modules/mod_fcgid.so MaxRequestsPerProcess 500 MaxProcessCount 3 MaxRequestLen 33554432 IPCCommTimeout 60 IdleTimeout 120 IdleScanInterval 30 BusyTimeout 120 BusyScanInterval 90 ErrorScanInterval 3 ZombieScanInterval 3 ProcessLifeTime 3600
Hope that helps, good luck.
- Jacob
-
01-04-2013, 09:23 AM #3Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
Hi Jacob, Thank you so much for replying,
actually i try to find /usr/local/apache/conf/php.conf but i couldn't find apache directory in usr/local
for your 2nd option yes i have already change directory permission to 755 but still i face the same problem so i want to try your 1st option yet i couldn't find the file php.conf on ubuntu using apache2 / php5
Thank youLast edited by anthonyinit; 01-04-2013 at 09:38 AM.
Learn a lot in WHT many expert have helped me out...
-
01-04-2013, 09:51 AM #4Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
is there anything to edit here?
/etc/apache2/mods-available/fcgid.confLearn a lot in WHT many expert have helped me out...
-
01-04-2013, 11:06 AM #5Junior Guru Wannabe
- Join Date
- Jan 2013
- Location
- Virginia Beach, Va
- Posts
- 52
Hello Anthony,
No problem at all for the help.
Yes it does look like in your case you'd need to modify that file more than likely:
Code:/etc/apache2/mods-available/fcgid.conf
Code:locate httpd.conf
Code:grep Include /usr/local/apache/conf/httpd.conf
You might have something currently along the lines of:
Code:<IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi FcgidConnectTimeout 20 </IfModule>
Let me know if that did the trick for you.
- Jacob
-
01-04-2013, 11:34 AM #6Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
Hi again Jacob,
my httpd.conf also located in the same directory/etc/apache2
in my fcgid.conf file i see exactly same thing u mention
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
</IfModule>
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
MaxProcessCount 3
MaxRequestLen 33554432
</IfModule>
once i thank you so much for your support.Learn a lot in WHT many expert have helped me out...
-
01-04-2013, 12:30 PM #7Disabled
- Join Date
- Jan 2013
- Posts
- 4
-
01-11-2013, 12:32 AM #8Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
JacobN
Thank you so muchLearn a lot in WHT many expert have helped me out...
-
01-11-2013, 01:45 AM #9Junior Guru Wannabe
- Join Date
- Jan 2013
- Location
- Virginia Beach, Va
- Posts
- 52
Hey anthonyinit,
Awesome! No problem at all, I know that's a frustrating problem to deal with, so glad to hear that worked for you.
I've had countless VPS customers that I've had to do these steps for on our own cPanel/CentOS servers where I work <<snipped>> Thanks for getting back to me and letting me know the same tactics appear to work elsewhere as well
Hope things keep chugging along nicely for you!
- JacobLast edited by anon-e-mouse; 02-21-2013 at 06:55 PM.
Similar Threads
-
Apache+FastCGI - mod_fcgid: can't apply process slot
By vbgamer45 in forum Hosting Security and TechnologyReplies: 1Last Post: 07-06-2011, 05:20 PM -
CSS, CS1.6, TF2, DoD & More! $10 10-Slot 1000FPS, $15 10-Slot 2000FPS
By Brad Groux in forum Other Hosting OffersReplies: 0Last Post: 10-20-2010, 10:14 AM -
CSS, CS1.6, TF2, DoD & More! $10 10-Slot 1000FPS, $15 10-Slot 2000FPS
By Brad Groux in forum Other Hosting OffersReplies: 0Last Post: 10-10-2010, 11:24 PM -
Web Templates Site banner slot available - 1 slot left for 20,000 uniques!
By KCgame in forum Advertising OffersReplies: 0Last Post: 01-05-2010, 11:33 PM -
LimitZero.net - West Game Servers! $2.25/Pub Slot $1.50/Priv Slot
By zxfire in forum Dedicated Hosting OffersReplies: 9Last Post: 05-15-2005, 01:25 AM