mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5

Tymsah

Well-Known Member
Apr 6, 2007
151
0
166
cPanel Access Level
Root Administrator
Hi,

Apache get error

mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
How can i fix ?

regards,

Code:
Config ile and values
/usr/local/apache/conf/php.conf
# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/mod_fcgid.so

FcgidBusyScanInterval 20
FcgidBusyTimeout 100
FcgidErrorScanInterval 3
FcgidFixPathinfo 1
FcgidIdleScanInterval 30
FcgidIdleTimeout 120
FcgidIOTimeout 40
FcgidMaxProcesses 40
FcgidMaxProcessesPerClass 100
FcgidMaxRequestInMem 268435456
FcgidMaxRequestLen 1073741824
FcgidMaxRequestsPerProcess 0
FcgidMinProcessesPerClass 3
FcgidOutputBufferSize 1048576
FcgidPassHeader HTTP_AUTHORIZATION
FcgidProcessLifeTime 300
FcgidSpawnScore 1
FcgidSpawnScoreUpLimit 10
FcgidTerminationScore 10
FcgidTimeScore 2
FcgidZombieScanInterval 60
FcgidConnectTimeout 5

AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
 
Last edited by a moderator:

Tymsah

Well-Known Member
Apr 6, 2007
151
0
166
cPanel Access Level
Root Administrator
[Mon Nov 09 18:03:51 2015] [warn] [client 212.252.19.234] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
[Mon Nov 09 18:03:49 2015] [warn] [client 157.55.39.228] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
[Mon Nov 09 18:03:41 2015] [warn] [client 144.76.23.75] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
[Mon Nov 09 18:03:40 2015] [warn] [client 78.169.239.95] mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

The messages suggest you need to increase your FCGI configuration limits, however you may want to consider switching to a different PHP handler if you are not comfortable with customizing the values. Per our documentation, we only recommend the mod_fcgid Apache module for advanced system administrators who understand how to modify the performance of the mod_fcgid Apache module.

Thank you.
 

kdean

Well-Known Member
Oct 19, 2012
377
65
78
Orlando, FL
cPanel Access Level
Root Administrator
FcgidMaxProcessesPerClass 100

This allows 100 php processes per cpanel account.

FcgidMaxProcesses 40

This limits all php processes to 40.

So, I would raise this to at least 100 if not more depending on your available memory resources.