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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EasyApache3 to EasyApache4 FastCGI

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

  1. cre8gr

    cre8gr Member

    Joined:
    Nov 5, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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:
    Code:
    <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
    </IfModule>
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    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.
     
Loading...

Share This Page