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.

SOLVED PHP Selector not changing PHP version

Discussion in 'CloudLinux' started by Havri, Jun 20, 2017.

Tags:
  1. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    53
    Likes Received:
    11
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I have an issue with PHP Selector where it won't select the correct version.

    I just installed a new server with Cloudlinux 7 + cPanel. It runs EA4 + CageFS + PHP Selector. I'm using PHP 7.0 as native EA PHP version. I let users choose the PHP version from PHP Selector.

    For the EA4, I installed the Hardened PHP from the Imunify360 settings tab, which gives me PHP 5.3, 5.4, 5.5, 5.6, 7.0 and 7.1 to run as native. As previously mentioned, I keep PHP 7.0 as native. After that, I installed Cloudlinux alt-php and enabled the same versions for PHP Selector (5.3, 5.4, 5.5, 5.6, 7.0 and 7.1).

    From WHM -> MultiPHP Manager the MultiPHP Manager works fine and can change the PHP versions instantly. After seeing that it works, I put the account on "Inherited" in the MultiPHP Manager. Going to PHP Selector, when I try to change the version, it just doesn't work. It still shows me the MultiPHP version inherited from the settings in MultiPHP Manager.

    Is there a log for me to look at and try to debug this myself? Is there a setting that needs to be checked?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    CloudLinux documents how PHP Selector and MultiPHP operate on the same server at:

    CloudLinux Documentation

    Please review this document and let us know if you have any questions.

    Thank you.
     
  3. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    53
    Likes Received:
    11
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I've already checked that documentation. Just opened a ticket on Cloudlinux helpdesk and see what they can find.
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,399
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    When you do so, you have to check the cpanel logs that are in the /usr/local/cpanel/logs section. Can you check it and update what the error is being seen in it?
     
  5. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    53
    Likes Received:
    11
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    The Cloudlinux support team found the problem. Suexec was installed from cPanel repos, which meant it didn't have lve support for the user to enter CageFS (so PHP Selector couldn't work). To disable the EA4 repo from cPanel and enable the cloudlinux one, run the following command:

    Code:
    cd ~; wget https://repo.cloudlinux.com/cloudlinux/sources/cloudlinux_ea3_to_ea4; sh cloudlinux_ea3_to_ea4 --convert
    
    This can be found in the documentation here:

    CloudLinux Documentation

    Also the recommendation was not to install the Hardened PHP profile from the Imunify360 interface, as PHP from Cloudlinux is already patched for security.

    Thank you.
     
    bloatedstoat and cPanelMichael like this.
Loading...

Share This Page