Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45D1110D65 for ; Thu, 5 Dec 2013 01:05:54 +0000 (UTC) Received: (qmail 74300 invoked by uid 500); 5 Dec 2013 01:05:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74253 invoked by uid 500); 5 Dec 2013 01:05:50 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 74245 invoked by uid 99); 5 Dec 2013 01:05:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 01:05:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 01:05:45 +0000 Received: by mail-we0-f175.google.com with SMTP id t60so116587wes.20 for ; Wed, 04 Dec 2013 17:05:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=uitDTss5/S3qmUhcHxURoEneJ83lJD9hf06LLoJ89Ak=; b=jxX4TnTVgzJUzmjlAyH4ENORL8q3Yipa07qDOi0MT4/RmoroR1Osaq0a1i7YL6i/jp nXgUpwtcfqoU1s/uxvQ5J5OR+vY9j7ouSAB2wi4Ad33ZhlpzswvJdFOH0THX6G6lUDoy zvQY54aX5V/uk/B9iE/sFz4ErBSMuK7BAWA7mJTTvHwZsjsDhmAUr6GtdFrsbllwX7lC CG4931+cfZEPuoNeE2axK2ixiZ2K51SP156BIgbJPlzbsyVhXNrzKDzx6HnxwsVcgO8Y ilpWt0iXY0h+IpVy+sCJV1ai0ArXHC501b7MsYVRlYvAy9XnfwvS7/MhsZlq8YbOQiOK nAbg== X-Gm-Message-State: ALoCoQmyol2lYlE9rB2q6UdCMQWNntlUsXMjMiIJYOPUeMknytP11ORaZCYvx4UrloZumbIpiZkB MIME-Version: 1.0 X-Received: by 10.180.97.5 with SMTP id dw5mr9733213wib.42.1386205521330; Wed, 04 Dec 2013 17:05:21 -0800 (PST) Received: by 10.217.52.5 with HTTP; Wed, 4 Dec 2013 17:05:21 -0800 (PST) Date: Thu, 5 Dec 2013 09:05:21 +0800 Message-ID: From: James To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d04430638af586f04ecbf1f36 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_fcgid: can't apply process slot for --f46d04430638af586f04ecbf1f36 Content-Type: text/plain; charset=ISO-8859-1 Hi there, I have the following: *Server specs:* Memory = 7G CPU = 2 *Packages:* httpd-2.2.25 mod_fcgid-2.3.7 php-5.3.27 $ grep -v "#" /etc/httpd/conf.d/fcgid.conf .............................................. LoadModule fcgid_module modules/mod_fcgid.so AddHandler fcgid-script fcg fcgi fpl FcgidIPCDir /var/run/mod_fcgid FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm FcgidFixPathinfo 1 FcgidMaxRequestLen 1073741824 FcgidIOTimeout 7200 FcgidConnectTimeout 30 FcgidMaxRequestsPerProcess 10000 FcgidMinProcessesPerClass 0 FcgidMaxProcessesPerClass 16 FcgidMaxProcesses 150 FcgidIdleTimeout 240 FcgidProcessLifeTime 7200 FcgidIdleScanInterval 120 .............................................. $ cat /var/www/vhosts/apps/domain.com/php-fcgi-scripts/php-fcgi-starter .............................................. #!/bin/sh PHPRC=/var/www/vhosts/apps/domain.com/ export PHPRC export PHP_FCGI_MAX_REQUESTS=5000 export PHP_FCGI_CHILDREN=0 exec /usr/bin/php-cgi .............................................. *Error(s):* ........................... [warn] [client XXX.XXX.XXX.XXX] mod_fcgid: can't apply process slot for /var/www/vhosts/apps/domain.com/php-fcgi-scripts/php-fcgi-starter ........................... It is always giving me this kind of error even though I increase the value of *FcgidMaxProcessesPerClass* into *20* for domain.com apache config file manually. $ less /etc/httpd/vhosts/domain.com.conf .............................................. ServerName domain.com ServerAdmin webmaster@domain.com DocumentRoot " /var/www/vhosts/apps/domain.com/httpdocs" AccessFileName .htaccess Options -Indexes FollowSymLinks AllowOverride None Order allow,deny allow from all SuexecUserGroup username username *FcgidMaxProcessesPerClass 20* Options +ExecCGI AllowOverride All AddHandler fcgid-script .php FCGIWrapper /var/www/vhosts/apps/ domain.com/php-fcgi-scripts/php-fcgi-starter .php Order allow,deny Allow from all Include conf.d/apps.cfg ErrorLog logs/domain.com/error.log CustomLog logs/domain.com/access.log combined I would appreciate if anyone could shed me some lights to rectify this error. Thank you. Kind regards, James --f46d04430638af586f04ecbf1f36 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi there,

I have the following:=

Server specs:
Memory =3D 7G
CPU =3D 2

= Packages:
httpd-2.2.25
mod_fcgid-2.3.7
php-5.3.27

$ gre= p -v "#" /etc/httpd/conf.d/fcgid.conf
..............................................
LoadModule fcgid_module m= odules/mod_fcgid.so
AddHandler fcgid-script fcg fcgi fpl
FcgidIPCDir = /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm FcgidFixPathinfo 1
FcgidMaxRequestLen 1073741824
FcgidIOTimeout 7200<= br>FcgidConnectTimeout 30
FcgidMaxRequestsPerProcess 10000
FcgidMinPr= ocessesPerClass 0
FcgidMaxProcessesPerClass 16
FcgidMaxProcesses 150<= br> FcgidIdleTimeout 240
FcgidProcessLifeTime 7200
FcgidIdleScanInterval = 120
..............................................

$ c= at /var/www/vhosts/apps/domain.com/php-fcgi-scripts/php-fcgi-starter
..............................................
#!/bin/sh
PHPRC=3D/var= /www/vhosts/apps/domain.com/
export P= HPRC
export PHP_FCGI_MAX_REQUESTS=3D5000
export PHP_FCGI_CHILDREN=3D0=
exec /usr/bin/php-cgi
..............................................
=
Error(s):
...........................
[warn] [clien= t XXX.XXX.XXX.XXX] mod_fcgid:=20 can't apply process slot for=20 /var/www/vhosts/apps/domain.com/php-fcgi-scripts/php-fcgi-starter
.......= ....................


It is always giving me this kind= of error even though I increase the value of FcgidMaxProcessesPerClass<= /b> into 20 for domain.com apache = config file manually.

$ less /etc/httpd/vhosts/domain.com.conf
................= ..............................
<VirtualHost *:80>
=A0=A0=A0=A0= =A0=A0=A0 ServerName=A0=A0=A0=A0=A0 domain.co= m
=A0=A0=A0=A0=A0=A0=A0 ServerAdmin=A0=A0=A0=A0 webmaster@domain.com
=A0=A0=A0=A0=A0=A0=A0 DocumentRoot " /var/www/vhosts/apps/domain.com/http= docs"
=A0=A0=A0=A0=A0=A0=A0 AccessFileName .htaccess

=A0= =A0=A0=A0=A0=A0=A0 <Directory " /var/www/vhosts/apps/domain.com/http= docs">
=A0=A0=A0=A0=A0=A0=A0 Options -Indexes FollowSymLinks=
=A0=A0=A0=A0=A0=A0=A0 AllowOverride None
=A0=A0=A0=A0=A0=A0=A0 Orde= r allow,deny
=A0=A0=A0=A0=A0=A0=A0 allow from all
=A0=A0=A0=A0=A0=A0=A0 </Directory>

=A0=A0=A0=A0=A0=A0=A0 <I= fModule mod_fcgid.c>
=A0=A0=A0=A0=A0=A0=A0=A0=A0 SuexecUserGroup user= name username
=A0=A0=A0=A0=A0=A0=A0=A0=A0 FcgidMaxProcessesPerClass 2= 0
=A0=A0=A0=A0=A0=A0=A0=A0 <Directory " /var/www/vhosts/apps/domain.com/http= docs">
=A0=A0=A0=A0=A0=A0=A0=A0=A0 Options +ExecCGI
=A0= =A0=A0=A0=A0=A0=A0=A0=A0 AllowOverride All
=A0=A0=A0=A0=A0=A0=A0=A0=A0 A= ddHandler fcgid-script .php
=A0=A0=A0=A0=A0=A0=A0=A0=A0 FCGIWrapper=A0 /var/www/vhosts/apps/domain.com/php-fcgi-scripts/php-fcgi-starter .php
=A0=A0= =A0=A0=A0=A0=A0=A0=A0 Order allow,deny
=A0=A0=A0=A0=A0=A0=A0=A0=A0 Allow= from all
=A0=A0=A0=A0=A0=A0=A0=A0 </Directory>
=A0=A0=A0=A0=A0=A0=A0 </IfModule>

=A0=A0=A0=A0=A0=A0=A0 Includ= e conf.d/apps.cfg

=A0=A0=A0=A0=A0=A0=A0 ErrorLog logs/domain.com/error.log
=A0=A0=A0=A0=A0=A0=A0= CustomLog logs/domain.com/access.= log combined
</VirtualHost>

I would appreciate if anyone could s= hed me some lights to rectify this error.

Thank you.
<= br>
Kind regards,
James
--f46d04430638af586f04ecbf1f36--