SOLVED PHP Selector does not work anymore

moolideejay

Member
Nov 16, 2008
16
1
53
Hi

We have a cPanel server with CloudLinux 6.x and it was configured with php-selector and cpanel's multiphp was disabled via feature manager so users won't get confused. Everything was working perfectly until last night. Now all websites on the server run with the default php version on multiphp and php-selector's settings are completely ignored and all user's php settings have been lost.
I've provisioned EA4 multiple times with different options but that didn't help.

Is there anyway to disable MultiPHP on a cPanel server and only activate PHP-Selector?

cPanel v76.0.14
CloudLinux 6 x64
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hello @moolideejay


There is no way to disable cPanel's MultiPHP UI but that shouldn't be interfering with CloudLinux's PHP Selector. I do know that they pushed an update to the LVE Manager last night that was mildly problematic for some customers, though it wasn't specific to the issue you're experiencing. Re-Provisioning EasyApache won't help with this situation either, most likely. Do you happen to be running LSAPI? There was an issue about two days ago which is discussed here that did affect the PHP Selector EasyApache 4 2019-1-9: mod_lsapi reinstallation prevents Apache restart
 
  • Like
Reactions: moolideejay

moolideejay

Member
Nov 16, 2008
16
1
53
Yes, we use mod_lsapi. I guess I should change the PHP handler to the good old mod_SuPHP and see what happens.
 

moolideejay

Member
Nov 16, 2008
16
1
53
I've managed to fix the issue.
This is how I did it:
- Provisioned a new profile in EA4 (CloudLinux + All PHP Options + OpCache) which removed mod_lsapi and installed mod_suphp.
- Updated alt-php with #yum groupinstall alt-php

Apparently, mod_lsapi was causing the issue and removing it via provisioning a new profile in EasyApache fixed my problem.

Thank you cPanelLauren for suggesting the mod_lsapi.
 
  • Like
Reactions: cPanelLauren

linkedla

Member
Aug 16, 2006
11
2
153
Colombia!
cPanel Access Level
Reseller Owner
Hello,
I am having this issue, in cpanel I can't select a different version of PHP, also to change the extensions set it says this:

Warning


You have selected native PHP version. Changing PHP modules and options is impossible for the native version. You need to select a different PHP version from the dropdown above to enable PHP modules and options configuration.

I have enabled in WHM PHP7.3, 7.4 and 8 but those options are not available in cpanel, only the one selected for the user in WHM/multi PHP.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,275
2,432
363
cPanel Access Level
Root Administrator
@linkedla - the message you're seeing there is normal and just letting you know that you can't change settings for the "native" PHP version. That version will just include whatever is setup in EasyApache on the system for that version of PHP.

When you installed the other PHP versions in EasyApache, did you make sure to install the alt-php versions instead of the ea-php versions?
 

linkedla

Member
Aug 16, 2006
11
2
153
Colombia!
cPanel Access Level
Reseller Owner
@linkedla - the message you're seeing there is normal and just letting you know that you can't change settings for the "native" PHP version. That version will just include whatever is setup in EasyApache on the system for that version of PHP.

When you installed the other PHP versions in EasyApache, did you make sure to install the alt-php versions instead of the ea-php versions?
I had only what by default EasyApache let me select, I found that I can install alt-php versions with this:

Installation of different versions of PHP & modules:

$ yum groupinstall alt-php


Update CageFS & LVE Manager with support for PHP Alternatives:

$ yum update cagefs lvemanager


I have cloudlinux on my server, so I ran those two commands and now I have all the PHP versions from 4 to 8

PHP 4.4 ( alt-php44 )
PHP 5.1 ( alt-php51 )
PHP 5.2 ( alt-php52 )
PHP 5.3 ( alt-php53 )
PHP 5.4 ( alt-php54 )
PHP 5.5 ( alt-php55 )
PHP 5.6 ( alt-php56 )
PHP 7.0 ( alt-php70 )
PHP 7.1 ( alt-php71 )
PHP 7.2 ( alt-php72 )
PHP 7.3 ( alt-php73 )
PHP 7.4 ( alt-php74 )
PHP 8.0 ( alt-php80 )
PHP 5.6 ( ea-php56 )
PHP 7.3 ( ea-php73 )
PHP 7.4 ( ea-php74 )
PHP 8.0 ( ea-php80 )

Now I need to know how to delete the old ones and just left 5.6 for a few more days and, 7.3, 7.4 and 8, and I think there will be the alt and ea versions?

Thank you for your answer and help.