The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Workarounds and Optimization' started by Tymsah, Nov 10, 2015.

  1. Tymsah

    Tymsah Well-Known Member

    Joined:
    Apr 6, 2007
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    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
    
     
    #1 Tymsah, Nov 10, 2015
    Last edited by a moderator: Nov 10, 2015
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    509
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    Are there any additional error messages in /usr/local/apache/logs/error_log when this problem occurs?
     
  3. Tymsah

    Tymsah Well-Known Member

    Joined:
    Apr 6, 2007
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    262
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    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.
     
Loading...

Share This Page