Issue - Apache hangs (mod_fcgid) with Debian 7 | Plesk Forum
  1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Issue Apache hangs (mod_fcgid) with Debian 7

Discussion in 'Plesk Onyx for Linux' started by waterboy, Dec 18, 2016.

  1. waterboy

    waterboy New Pleskian

    1
    20%
    Joined:
    Dec 18, 2016
    Messages:
    3
    Likes Received:
    0
    Location:
    Berlin
    Hi,

    after doing lots of updating, apache tends to hang, with the log showing many

    [warn] mod_fcgid: too much processes, please increase FCGID_MAX_APPLICATION​

    System info from Plesk:

    CPU Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz (8 core(s))
    Version Plesk Onyx v17.0.17_build1700161028.14 os_Debian 7.0
    OS Debian 7.11​

    This seems to directly address the issue: https://kb.plesk.com/en/130473

    The path seems to be valid for Debian 8 only, though (and not sure about the arch). How can I patch my system?

    Thanks you :)
     
  2. IgorG

    IgorG Forums Analyst Plesk Team

    45
    84%
    Joined:
    Oct 27, 2009
    Messages:
    23,588
    Articles:
    4
    Likes Received:
    916
    Location:
    Novosibirsk, Russia
  3. Carsten

    Carsten New Pleskian

    1
     
    Joined:
    Dec 8, 2016
    Messages:
    2
    Likes Received:
    0
    Location:
    Germany
    Hi warerboy,

    have you create a ticket to plesk support ?

    We have the same issue on a customer server with the same setup

    Version Plesk Onyx v17.0.17
    17.0.17 Debian 7.0 1700161117.16
    OS Debian 7.11

    greetings
    Carsten
     
  4. waterboy

    waterboy New Pleskian

    1
    20%
    Joined:
    Dec 18, 2016
    Messages:
    3
    Likes Received:
    0
    Location:
    Berlin
    Unfortunately not. As I got the license through a reseller, I need to get a support plan first.
     
  5. IgorG

    IgorG Forums Analyst Plesk Team

    45
    84%
    Joined:
    Oct 27, 2009
    Messages:
    23,588
    Articles:
    4
    Likes Received:
    916
    Location:
    Novosibirsk, Russia
    #15
     
  6. Linulex

    Linulex Regular Pleskian

    33
    80%
    Joined:
    Aug 4, 2001
    Messages:
    404
    Likes Received:
    52
    You need to find where your files are in debian, i can only help for centos, but apache is apache, its the same.

    Find fcgid.conf setup in /etc/httpd/conf.d

    Adjust it to your needs, google for what others use and have to say about it. fine-tune over some period of time to see what works the best for your type of websites.

    Ours is

    Code:
    # This is the Apache server configuration file for providing FastCGI support
    # via mod_fcgid
    #
    # Documentation is available at http://fastcgi.coremail.cn/doc.htm
    
    LoadModule fcgid_module modules/mod_fcgid.so
    
    <IfModule mod_fcgid.c>
    
    <IfModule !mod_fastcgi.c>
        AddHandler fcgid-script fcg fcgi fpl
    </IfModule>
    
      FcgidIPCDir /var/run/mod_fcgid/sock
      FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
    
    ##FcgidIdleTimeout default = 300
       FcgidIdleTimeout 300
    
    ##FcgidProcessLifeTime default = 3600
    #  FcgidProcessLifeTime 300
    
    ##FcgidMaxProcesses default = 1000
    #  FcgidMaxProcesses 32
    
    ##FcgidMaxProcessesPerClass default = 100
    #  FcgidMaxProcessesPerClass 32
    #  FcgidMinProcessesPerClass 0
      FcgidConnectTimeout 30
      FcgidIOTimeout 300
      FcgidInitialEnv RAILS_ENV production
      FcgidIdleScanInterval 10
      FcgidMaxRequestLen 1073741824
    
    
    </IfModule>
    
    ## = the default, commented if we use the default but left in there to know it
    # = what was originaly there

    save and restart apache.

    You might want to empty /var/run/mod_fcgid/sock/ from time to time, just to clean up.

    AGAIN: these are paths on centos, on debian it might be in an other location.

    hope this helps
    regards
    Jan
     
  7. Peter Debik

    Peter Debik Golden Pleskian Plesk Guru

    34
    80%
    Joined:
    Oct 15, 2015
    Messages:
    1,618
    Likes Received:
    290
    Location:
    Berlin, Germany
  8. waterboy

    waterboy New Pleskian

    1
    20%
    Joined:
    Dec 18, 2016
    Messages:
    3
    Likes Received:
    0
    Location:
    Berlin
    Thank you - very helpful. I've upped the limit a bit in the conf file and will see if it helps. Not much server load anyway, but only started to happen after the update; so hopefully this fixes the problem.
     
  9. Linulex

    Linulex Regular Pleskian

    33
    80%
    Joined:
    Aug 4, 2001
    Messages:
    404
    Likes Received:
    52
    Plesk sometimes overwrites fcgid.conf at an update. Simply get your old back from a backup, restart apache and your good to go (till the next update).

    We have monitors in place that mail us when files are changed we don't want changed.

    regards
    Jan
     
Loading...