SOLVED PHP Selector not changing PHP version

Havri

Well-Known Member
Oct 28, 2013
86
19
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.
 

Havri

Well-Known Member
Oct 28, 2013
86
19
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.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
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?
 

Havri

Well-Known Member
Oct 28, 2013
86
19
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.