Update PHP with cPanel MultiPHP

To meet each version’s requirements, you must sometimes upgrade the PHP version on your WHMCS installation’s server. If you use cPanel & WHM and EasyApache 4 to host your WHMCS installation, you can use the MultiPHP Manager and MultiPHP INI Editor features to change your PHP version.

For other control panels or systems, consult the vendor’s documentation.

Upgrade Using cPanel’s MultiPHP

Make certain that you have already upgraded WHMCS and ionCube® Loader to use versions that are compatible with the new PHP version before you upgrade.

To upgrade PHP using cPanel:

1. Go to MultiPHP Manager.

Log in to the cPanel account that hosts your WHMCS installation and go to Software » MultiPHP Manager.

2. Apply the new version.

Check the domain for your WHMCS installation. Then, select PHP 7.2 or 7.3 from PHP Version in the top-right corner of the page and click Apply.

The PHP Version setting in cPanel's MultiPHP Manager feature

If the desired version isn’t available and you have WHM access, use EasyApache 4 to install a higher version of PHP. If you do not have WHM access, contact your system administrator.

3. Update the php.ini file.

Go to Software » MultiPHP INI Editor and select the Editor Mode tab.

Select your domain from Select a location. A php.ini file (or a blank file if you don’t have a php.ini file yet) will appear.

The Editor Mode tab in cPanel's MultiPHP INI Editor feature

Add the following lines to the file:

  php_admin_flag[allow_url_fopen] = 1
  php_admin_flag[memory_limit] = 128M`

Then, click Save.

4. Check your WHMCS installation.

Log in to your WHMCS installation to ensure that there aren’t any errors.

For more information about common errors after upgrading PHP, see PHP Upgrades.

Last modified: June 14, 2024