ssue
How to hide alt-php versions from cPanel's MultiPHP Manager?
Environment
CloudLinux OS 6(h)/7(h)/8
cPanel
Solution
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.
#/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 = yes
alt-php56 = yes
alt-php70 = yes
alt-php71 = yes
alt-php72 = 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.