logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_fcgid: can't apply process slot for
Author
franky



Joined: 08 Jan 2012
Posts: 1

PostPosted: Sun 08 Jan '12 12:54    Post subject: mod_fcgid: can't apply process slot for Reply with quote

Hi,
I have server with Debian 6,Apache 2.2.16,php 5.3.7. Whereon runs two page first.net - many visit user, second.net - much less page visit. When restart apache2,that run both page ok, but after few minutes/hours cant load page second.net. In /log/apache2/second.net/error is:
Code:
mod_fcgid: can't apply process slot for /var/www/webuser/php5-wrap

In log /log/apache2/first.net is it certainly but less(given the number of user). When is error? What is wrong?

cat /var/www/webuser/php5-wrap
Code:

#!/bin/sh
PHP_FCGI_CHILDREN=1
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi


cat /etc/apache2/mods-enabled/fcgid.conf
Code:

<IfModule mod_fcgid.c>
  AddHandler    fcgid-script .fcgi
  FcgidConnectTimeout 45
IPCConnectTimeout 100
MaxRequestsPerProcess 1000
MaxProcessCount 2
DefaultMinClassProcessCount 0
FcgidMaxRequestsPerProcess 0
</IfModule>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 08 Jan '12 23:53    Post subject: Reply with quote

MaxProcessCount 2 is a bit low!
The default value if you don't set any is 1000. For my small pages I have a value of 50.

See also http://www.apachelounge.com/viewtopic.php?p=19819
Back to top


Reply to topic   Topic: mod_fcgid: can't apply process slot for View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules