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.

EasyApache 4 and fcgid_module support

Discussion in 'EasyApache' started by gersonfs, Mar 31, 2016.

  1. gersonfs

    gersonfs Active Member

    Joined:
    Sep 30, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    there are plans to support the fcgid_module in easyapache4? For me this is the best php handler.
    Today I made a migration to easyapache 4, but when I saw that this module does not exist, reverted the process.
     
  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:
  3. gersonfs

    gersonfs Active Member

    Joined:
    Sep 30, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi Jacob P,

    It's not the same thing, what I need is fcgid_module and not PHP-FPM.
    In easyapache 3 have the fcgid_module not dependent on PHP-FPM, he invokes and directly manages PHP processes. fcgid_module is fast, secure and when properly configured consumes little memory, is perfect.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    EasyApache 4 only supports FastCGI in conjunction with the FastCGI Process Manager (PHP-FPM). You must also configure PHP-FPM to use FastCGI. Documentation on the supported handlers is found at:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    Thank you.
     
  5. gersonfs

    gersonfs Active Member

    Joined:
    Sep 30, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Ok, but for use PHP-FPM on a shard host, like us, we need perform extra steps for each user. We ave about 700 accounts on every dedicated server, its impossible do it.
    We need use FastCGI as a global handler, as it was on EA3. I can not understand why they have taken this functionality.
     
  6. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Does <useraccount> in the guide really stand for each useraccount? Isn't there a possibility to use PHP-FPM for all useraccounts globally?
     
  7. gersonfs

    gersonfs Active Member

    Joined:
    Sep 30, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    According to the documentation, currently not.

    • You cannot use the PHP-FPM handler as a global PHP handler.
    • To use this PHP handler with shared servers, you must perform extra steps to configure FPM to run with a per-user pool. For more information, read our Configure PHP-FPM with User Pools for EasyApache 4 documentation.
     
  8. nshost

    nshost Registered

    Joined:
    Jan 25, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    EA4 is great but without old mod_fcgid from EA3 ( https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html ) We can't limit the processes with mod_suphp or tune the system for users. We use mod_fcgid on over 100 servers with cPanel EA3 and everything is working perfect. We want to use EA4 for MultiPHP but without mod_fcgid we can't control the httpd system.

    Basic example :

    FcgidMaxProcesses - total num
    FcgidMaxProcessesPerClass - max per user

    We use the servers for Shared hosting not for personal use.

    Please consider adding it back.. even Plesk is using it.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Here's a third-party URL where tuning PHP-FPM is discussed:

    Adjusting Child Processes for PHP-FPM

    The changes are intended for a different platform in that post, but it should give you an idea of what's possible.

    Thank you.
     
  10. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    The mentioned link was deleted :( Is there any alternative content to read about that?
     
  11. vacancy

    vacancy Member

    Joined:
    Sep 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    EasyApache 4 mod_fcgid

    It will soon be supported.

    Currently test build (11.59xxx) php-fpm + proxy_fcgi support is available. But there is php.ini loaded bug. (EA-5016 inquiry)
     
  12. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Glad to know. I'll keep from migrating to EA4 until this feature is released :)
     
  13. maverick23

    maverick23 Well-Known Member

    Joined:
    Feb 23, 2005
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    Hello,

    how would this be configured for sub domains.

    Site that has single domain it works perfectly, but a site with multiple subdomains still not running under php-fpm..

    Any suggestions?

    Thanks
    Rajat
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    FPM support is not currently offered with EasyApache 4. It's planned for cPanel version 60. You can follow the progress for official FPM support at:

    Enhance FPM support

    An additional feature request is open for mod_fcgid at:

    EasyApache 4 mod_fcgid

    Thank you.
     
Loading...

Share This Page