disable versions alt-php in the "MultiPHP Manager"
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Sylvain
  2. Tuesday, 21 November 2017
  3.  Subscribe via email
Hello,

cloudlinux ets installed on my CPANEL server, however when I go in the "MultiPHP Manager", I have php ea-php but also alt-php versions
Do you know how to disable these versions in the "MultiPHP Manager" drop-down menu?
Rate this post:
  1. 22.11.2017 16:11:36
  2. # 1
Igor Ghertesco Accepted Answer
Posts: 154
Joined: 07.08.2015
0
Votes
Undo
Hello,

Please let us know if there is a special reason that you don't want to use PHP provided by us, or please clarify, why do you need to remove alt-php handlers (if you wish to keep the alt-php group installed).

The simplest way is to remove alt-php packages group: # yum groupremove alt-php

Unfortunately, it is not possible to just remove alt-php from multiPHP Manager without uninstalling.
  1. 22.11.2017 17:11:07
  2. # 2
Sylvain Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
Hello,

I thank you for your return.
The command does not solve this problem, because after launching it the cloudlinux selector says no atl package is installed
  1. 22.11.2017 17:11:18
  2. # 3
Igor Ghertesco Accepted Answer
Posts: 154
Joined: 07.08.2015
0
Votes
Undo
Hello,

I'm sorry, but this is correct behavior. PHP Selector uses alt-php* packages, so if you want to use it, you need to select alt-php in multiPHP Manager.

For further information, please refer to our doc section: http://docs.cloudlinux.com/index.html?php_selector_cpanel.html
  1. 23.11.2017 14:11:53
  2. # 4
sylvain Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
Hello,
I thank you for your return
I do not want to use the alt-php packages but only ea-php packages.
currently, on the "selector" of LVE Manager version 5.5, 5.6, 7.0 and 7.1 is enabled, which is found on the cpanel of a client (MultiPHP Manager) offers versions alt-php and ea-php version .
I wish you that in this section only the ea-php version are active.

Relative to the documentation provided, the ea-php56 version is selected in the "MultiPHP Manager".
  1. 27.11.2017 14:11:44
  2. # 5
Igor Ghertesco Accepted Answer
Posts: 154
Joined: 07.08.2015
0
Votes
Undo
Hello Sylvain,

It is not possible to use ea-php with PHP Selector.

currently, on the "selector" of LVE Manager version 5.5, 5.6, 7.0 and 7.1 is enabled,


This means which alt-php versions are available for the end user only, but it is not possible to use ea-php provided by cPanel with CloudLinux PHP Selector
  1. 29.11.2017 15:11:53
  2. # 6
Sylvain Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
Hello,
I thank you for your return

I'm sorry, but I do not understand that very well.
When I am on a CPANEL of a client in the section "PHP Selector | extensions" 4 versions of php are available.
They are the same version as in cloudlinux and the "selector" section.

But when I go to the "MultiPHP Manager" section, always on the cpanel of a client in the "PHP Version" section, I find alt-php * versions and ea-php * versions.
What does the term ea-php and alt-php correspond to?
And in this section we can not display the ea-php * version for example?
  1. 30.11.2017 16:11:38
  2. # 7
Igor Ghertesco Accepted Answer
Posts: 154
Joined: 07.08.2015
0
Votes
Undo
Hello,

ea-php - those packages are delivered by cPanel, and can be used only with multiPHP Manager.
alt-php - packages are delivered by CloudLinux and can be used only with PHP Selector.

More deep explanation about PHP Selector and cPanel integration you can find here.

You can also disable one feature to avoid such situations, and leave only one available to the end user.
multiPHP Manager can be disabled in WHM -- Features Manager, and PHP Selector in WHM -- LVE Manager -- selector tab
  1. 06.04.2018 11:04:26
  2. # 8
Sathyan Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
Which is good to use? EA-PHP or ALT-PHP ?

In my fresh cPanel server I am trying Cloudlinux first time, followed instructions and setup alt-php and php selector and all works fine. Then I found that the PHP 5.3 version is now available with Easy Apache 4 also (before cloudlinux installation it was not there). So I have provisioned that also via EA4 with Opcache & LSAPI

But now my server has duplicate installations of PHP 53, 5.6, 7.0,7.1 in both EA & ALT versions..so really confused which one to depend.

From a security perspective and performance level which one is good? We can remove the unwanted right

# rpm -qa |grep ea-php >ea-php-list.txt (attached)
# rpm -qa |grep alt-php >alt-php-list.txt (attached)
Attachments (1)
  1. 06.04.2018 14:04:01
  2. # 9
Posts: 187
Joined: 31.01.2017
0
Votes
Undo
If you are running Easy Apache 4, stick to EA-PHP packages. Alt-PHP are for non-EA4 cases.
  1. 14.02.2019 00:02:48
  2. # 10
Chris Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
I have a somehow similar "problem". I need to remove alt-php44 from our multi-server to enable a new server to be added. It's matching everything but this alt-php44 extension which is way too old to use anyway and is not being used on any of the other servers.
  1. 18.02.2019 20:02:22
  2. # 11
Posts: 187
Joined: 31.01.2017
0
Votes
Undo
Chris,

If you are sure there's nobody left using alt-php44 on your server, please submit a ticket at https://cloudlinux.zendesk.com so our team can help you with its removal.
  1. 04.03.2019 16:03:34
  2. # 12
Posts: 187
Joined: 31.01.2017
0
Votes
Undo
The removal process for Alt-PHP versions is also described at https://docs.cloudlinux.com/php_selector_cpanel.html
alt-php.jpg
Attachments (1)
  1. 12.05.2020 13:05:44
  2. # 13
Hermann Accepted Answer
Posts: 0
Joined: 28.05.2020
0
Votes
Undo
From the above responses:

Disable the "PHP selector" in LVE in the WHM console

Configure the PHP versions in "MultiPHP Manager". Edit the alt-php config file and select the versions you want in "MultiPHP Manager".
# vim /opt/alt/alt-php-config/alt-php.cfg
[MultiPHP Manager]
alt-php44 = no
alt-php51 = no
alt-php52 = no
alt-php53 = no
alt-php54 = no
alt-php55 = no
alt-php56 = no
alt-php70 = no
alt-php71 = yes
alt-php72 = yes
alt-php73 = yes

And Run
# /opt/alt/alt-php-config/multiphp_reconfigure.py

If you get this error add the version to the config file.
ERROR : Could not parse alt-php.cfg:
No option 'alt-php73' in section: 'MultiPHP Manager'
  1. 12.05.2020 16:05:30
  2. # 14
Sergey Khristich Accepted Answer
Posts: 343
Joined: 20.05.2019
0
Votes
Undo
Hello Hermann,
Thanks for following up! Yes, you`re right.
Marketing Manager
  1. 13.05.2020 11:05:36
  2. # 15
Shannon Plaquet Accepted Answer
Posts: 10
Joined: 05.06.2017
0
Votes
Undo
in the past, i've used the WHM feature manager to disable the MultiPHP option in cPanel, for end users. i wasn't immediately aware of it, but that action resulted in the WordPress 1-click install to not work. when i reached out to support, i was told that MultiPHP had to remain enabled.

so, as months have passed since then... is it now okay to disable MultiPHP manager in the features for cPanel end users?

i have to admit, having 2 different PHP 'select' type options in cPanel is *VERY* confusing for end users. especially for those who aren't experienced with CloudLInux selector... OR those who use other cPanel instances w/o CloudLinux, as their only experience is changing PHP version using cPanel's MultiPHP tool.

for simplicity's sake, i'd like to suggest that CloudLinux removes cPanel's MultiPHP manager, or at least gives the option to hide it for end users. i've had problems with this feature for years now, and (by what i'm reading in this thread) it's still causing confusion for end users and admins alike.
  1. 13.05.2020 12:05:30
  2. # 16
Sergey Khristich Accepted Answer
Posts: 343
Joined: 20.05.2019
0
Votes
Undo
in the past, i've used the WHM feature manager to disable the MultiPHP option in cPanel, for end users. i wasn't immediately aware of it, but that action resulted in the WordPress 1-click install to not work. when i reached out to support, i was told that MultiPHP had to remain enabled.

so, as months have passed since then... is it now okay to disable MultiPHP manager in the features for cPanel end users?

i have to admit, having 2 different PHP 'select' type options in cPanel is *VERY* confusing for end users. especially for those who aren't experienced with CloudLInux selector... OR those who use other cPanel instances w/o CloudLinux, as their only experience is changing PHP version using cPanel's MultiPHP tool.

for simplicity's sake, i'd like to suggest that CloudLinux removes cPanel's MultiPHP manager, or at least gives the option to hide it for end users. i've had problems with this feature for years now, and (by what i'm reading in this thread) it's still causing confusion for end users and admins alike.

Hello Shannon,
You can do so by editing the /opt/alt/alt-php-config/alt-php.cfg file.
Once you edit it, run the /opt/alt/alt-php-config/multiphp_reconfigure.py script; it manages SCL prefixes for the Alt-PHP in /etc/scl/prefixes.
In this example, we keep the alt-php72 visible in the list only:

[MultiPHP Manager]
alt-php44 = no
alt-php51 = no
alt-php52 = no
alt-php53 = no
alt-php54 = no
alt-php55 = no
alt-php56 = no
alt-php70 = no
alt-php71 = no
alt-php72 = yes

Please let us know if you have any questions.
Thanks in advance!
Marketing Manager
  1. 13.05.2020 13:05:55
  2. # 17
Shannon Plaquet Accepted Answer
Posts: 10
Joined: 05.06.2017
0
Votes
Undo
so, what i'm gathering is that 'we users' are talking about one aspect of MultiPHP... while 'CL staff' are referring to another aspect of MultiPHP.

Here's a screenshot of what I'm referring to.
Screenshot 2020-05-13 09.37.42.png

- Disabling MultiPHP Manager in WHM will hide it from users
- Editing alt-php.cfg will control what alt-php versions that users can choose from (assuming MultiPHP option is still available)

BUT, having 2 cPanel choices for selecting a PHP version is *very* confusing for end-users. (as seen in the screenshot above)

I'd recommend a simple method to hide cPanel's MultiPHP selector from cPanel end-users. (see screenshot below).
Screenshot 2020-05-13 09.46.52.png

Possibly a checkbox option, within:
- LVE Manager > Options
"Disable cPanel's native MultiPHP option from end user interface."

IMO, the feature selector within WHM isn't the most intuitive... especially if hiding the MultiPHP functionality also breaks the WP Manager functionality in the process. (I mentioned above that hiding it previously created this issue. I haven't recently checked if it still happens.)
  1. 13.05.2020 17:05:32
  2. # 18
Sergey Khristich Accepted Answer
Posts: 343
Joined: 20.05.2019
0
Votes
Undo
Hello Shannon,
Also, if you configured PHP Selector, we recommend disabling MultiPHP Manager for users. You can do that in Home » Packages » Feature Manager » Feature Lists » Manage feature list » select Default and uncheck the box for MultiPHP INI Editor and MultiPHP Manager. This will stop your customers from seeing MultiPHP Manager/Editor which can be very confusing.
Thank you
Marketing Manager
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.