Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

EasyApache3 to EasyApache4 FastCGI

Discussion in 'EasyApache' started by cre8gr, Dec 18, 2017.

  1. cre8gr

    cre8gr Member

    Nov 5, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hey guys,

    I'm currently using EA3 and want to go EA4. Right now I'm using apache 2.2 and PHP as FastCGI.

    Since EA4 doesn't support Apache 2.2, I'm planning to change Apache in EA3 to 2.4 and then go for EA4. But my problem is that EA4 FastCGI implementation does not provide MultiPHP for FCGI and since some sites on the server are not PHP 7 ready (don't ask me, clients don't want to upgrade their sites) I can't change EA3 to EA4 as of yet.

    I read that we can use PHP-FPM though, which is FastCGI on steroids, or not? My server is a VPS on an OpenVZ system which has a 2 core Intel Xeon L5640 cpu, 3GB ram + 3GB burstable ram. So my question is this:

    Until guys over at cPanel make FastCGI compatible with MultiPHP should I go EA4 with PHP-FPM? Right now my settings for FCGI that work pretty well so far are these:
    <IfModule mod_fcgid.c>
        FcgidIdleTimeout 3600
        FcgidIdleScanInterval 480
        FcgidBusyTimeout 1800
        FcgidBusyScanInterval 480
        FcgidZombieScanInterval 12
        FcgidErrorScanInterval 12
        FcgidProcessLifeTime 0
        # Change the rate at which new FastCGI processes are spawned under load. Higher=faster
        FcgidSpawnScoreUpLimit 10
        # Higher number = spawning more FastCGI processes decreases the spawn rate (controls runaway
        FcgidSpawnScore 1
        # Higher number = terminating FastCGI processes decreases the spawn rate (controls runaway)
        FcgidTerminationScore 2
        # Increase the FastCGI max request length for large file uploads (needed for some sites)
        FcgidMaxRequestLen 1073741824
        FcgidMaxRequestsPerProcess 70000
        FcgidMinProcessesPerClass 0
        FcgidMaxProcessesPerClass 4
        FcgidMaxProcesses 32
        FcgidIOTimeout 1800
    So, if I go to PHP-FPM what do I have to change in php-fpm settings to reflect my current configuration? Or, you think I should wait until EA4's FastCGI is MultiPHP (if ever) capable? I'm a complete newbie in FPM, so any guide or help would help me alot!
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    Using PHP-FPM with EasyApache 4 is better than using EasyApache 3 with FCGI in my opinion. However, we do plan on providing MultiPHP support with FCGI in EasyApache 4 at noted on the following thread:

    EasyApache 3: It's been a long road, but it will be time to say goodbye soon.

    You can find a general description of PHP-FPM and FCGId at:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    As far as optimizing PHP-FPM after the conversion, the best approach is likely to monitor the performance and tune it as needed. That said, 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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice