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!

Easiest way to add PHP version with EA4

Discussion in 'EasyApache' started by Eoler, Mar 5, 2019.

  1. Eoler

    Eoler Member

    Joined:
    Mar 1, 2016
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Kastav, Croatia
    cPanel Access Level:
    Root Administrator
    What is the quickest and easiest way to add PHP7.1 support for a couple domains to EA4 profile with Prefork MPM + Mod_RUID2 + Mod_DSO PHP7.0 ?

    Are multiple MPMs supported with a single multiPHP installation?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Eoler

    It should be extremely simple to go to WHM>>Software>>EasyApache 4 and customize your profile to include PHP 7.1 as well as add any extensions.

    You can not use multiple MPMs.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Eoler

    Eoler Member

    Joined:
    Mar 1, 2016
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Kastav, Croatia
    cPanel Access Level:
    Root Administrator
    I tried to fully duplicate PHP 7.0 -> 7.1 configuration, but it looks like two different DSO's won't work together - review gives:

    Code:
    Update Error:
    Error: ea-php70-php conflicts with ea-php71-php-7.1.26-2.2.6.cpanel.x86_64
    Error: ea-php71-php conflicts with ea-php70-php-7.0.33-2.2.6.cpanel.x86_64
     
  4. Eoler

    Eoler Member

    Joined:
    Mar 1, 2016
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Kastav, Croatia
    cPanel Access Level:
    Root Administrator
    Nope, only one PHP handler is allowed to be set as DSO. Can anyone advise what is next best handler that is compatible with Prefork MPM and has ability to execute PHP 7.1 in context of a cPanel user?
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I see I believe I misunderstood the initial question. You can only set one PHP version on the system to use DSO, that is correct. Since you're running mod_ruid2 CGI should be fine to run as the php-handler. If you weren't running ruid2 I would suggest suPHP.

    You can read about PHP handlers and each of their benefits here: PHP Handlers - EasyApache 4 - cPanel Documentation

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Eoler

    Eoler Member

    Joined:
    Mar 1, 2016
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Kastav, Croatia
    cPanel Access Level:
    Root Administrator
    Ok, thanks.

    Last question: is PHP-FPM similar to RUID2 - will PHP run in a context of cPanel user when set to CGI+FPM handler (same file permissions required as with DSO+RUID2)?
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Eoler

    Eoler Member

    Joined:
    Mar 1, 2016
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Kastav, Croatia
    cPanel Access Level:
    Root Administrator
    Yeah, I asked for similarity/equivalence with regards to running PHP in context of cPanel account (user) and they both do it properly.

    So, here's the answer to the original thread question:

    Quickest & easiest way to add newer PHP version to Prefork MPM + Mod_RUID2 + Mod_DSO EasyApache4 configuration is to start customizing existing profile and:
    - select additional Apache module: mod_proxy_fcgi
    - select additional PHP version (i.e. PHP71)
    - select additional PHP extensions: (all needed PHP71-* from previous version except php71-dso) + php71-php-fpm
    * review & provision

    After provisioning adjust INI values in MultiPHP INI Editor (i.e. copy INI parameter customizations from older PHP version).

    After that open MultiPHP Manager, go to list Set PHP Version per Domain and pick ea-php71 in dropdown next to domains that need newer PHP version, and finally switch on PHP_FPM.
     
    cPanelLauren likes this.
Loading...

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