Hide Alt-PHP from cPanel's MultiPHP Manager

Sometimes you don't want to see the whole list of available alt-php versions in your MultiPHP Manager. You can hide alt-php binaries from cPanel MultiPHP Manager by adjusting the /opt/alt/alt-php-config/alt-php.cfg file. The "yes" option will show the corresponding PHP version, "no" will hide one.

nano /opt/alt/alt-php-config/alt-php.cfg

Now make the changes like the following:

[MultiPHP Manager]
alt-php44 = no
alt-php51 = no
alt-php52 = no
alt-php53 = no
alt-php54 = no
alt-php55 = no
alt-php56 = yes
alt-php70 = yes
alt-php71 = yes
alt-php72 = yes
alt-php73 = yes
alt-php74 = yes
alt-php80 = yes
alt-php81 = yes
alt-php82 = yes

Once done, run:

/opt/alt/alt-php-config/multiphp_reconfigure.py

To apply the changes.

This script manages SCL prefixes for the Alt-PHP - removes or creates prefixes in /etc/scl/prefixes.

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix lveinfo database error of CLN

Run the following command: service lvestats stoptar -zcvf /root/lveinfo_backup_$(date...

How to Install KernelCare on cPanel/WHM server

To install KernelCare, you need to log in with the root user on your cPanel server. Check for...

Switching all cPanel acc/s to "inherit" PHP version

You can change all cPanel users to inherit with this CLI command: for each in `cat...

How to fix issues like PHP selector not available

Some of our clients face the issues like "PHP selector not available" on cPanel accounts of their...

CloudLinux installed, but still showing CentOS

Some of our clients face the issue, that's why we're writing the tutorial to fix it. First of...