Configure Which Alt-PHP Versions Are Available in cPanel MultiPHP Manager

This article describes the process to configure which Alt-PHP versions are available in cPanel MultiPHP Manager interface. This guide is intended for cPanel VPS or cPanel Dedicated Server administrators that utilize CloudLinux and have enabled Alt-PHP.

Background

When Alt-PHP is installed and enabled in CloudLinux, all versions of Alt-PHP are automatically selectable in the MultiPHP Manager within the cPanel user interface. This may not be desirable in all server environments. This article will demonstrate how to configure which Alt-PHP versions are available in cPanel MultiPHP Manager for cPanel accounts.

How to Configure Which Alt-PHP Versions Are Available in cPanel MultiPHP Manager

To configure which Alt-PHP versions are available in cPanel MultiPHP Manager, follow the steps below (note: requires root-level access):

  1. Login via SSH as root.
  2. Run the following command to edit the Alt-PHP versions:
    nano /opt/alt/alt-php-config/alt-php.cfg
  3. Edit the file to reflect the desired settings (done by replacing "yes" with "no" for the corresponding Alt-PHP versions):
    [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-php74 = yes
    alt-php80 = yes
    alt-php81 = yes
    alt-php82 = yes
    alt-php83 = yes
    alt-php84 = yes
    alt-php85 = yes
  4. Close and save the file.
  5. Run the following command to reconfigure MultiPHP settings and apply the above changes:
    /opt/alt/alt-php-config/multiphp_reconfigure.py

That's it!

Conclusion

You now know how to configure which Alt-PHP versions are available in cPanel MultiPHP Manager for CloudLinux VPS and Dedicated Servers.

  • alt-php, multiphp manager, php version, php, cpanel server administration
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Uninstall CloudLinux on cPanel WHM Server

This article provides a guide for how to uninstall CloudLinux on cPanel WHM server. You can...

How to Force CageFS Update and Remount

This article provides a guide to force CageFS update and remount. This should be done following...

What are the Security Benefits of CloudLinux?

CloudLinux is the operating system used on the servers for shared hosting, reseller hosting,...

How to Install CloudLinux on WHM cPanel Server

This article provides a guide for how to install CloudLinux on WHM cPanel server. How to Install...

How to Disable CloudLinux Gradual Rollout

This article describes how to disable CloudLinux gradual rollout. How to Disable CloudLinux...