cPanel PHP Upgrade from PHP 7.2 to PHP 7.3


Last modified: July 13, 2022

Overview

In cPanel & WHM version 84, we upgraded the internal PHP from version 7.2 to 7.3. This document details the upgrade and the status of known issues.

We tested the internal PHP’s compatibility with packaged applications, such as phpMyAdmin. However, third-party plugin developers must verify that their applications function in the new version.

Build information

  • Tier: NEXT 11.84.XXXX
  • Build Number: 11.84.XXXX.XX
  • Release Date: 9/XX/2019
  • Notes: None.

Upgrade details

Updated software Initial version Upgrade version
PHP 7.2 7.3
Ion Cube 10.2 10.2
Source Guardian 11.2 11.3

PHP details

Downgrades

You can downgrade from cPanel PHP version 7.3 back to cPanel PHP version 7.2. However, you must update the cPanel PHP and Horde settings in your local rpm.versions file to do so. To update these settings, run the following commands:

1
2
3
4
5
6
cd /usr/local/cpanel/
scripts/update_local_rpm_versions --edit target_settings.horde uninstalled
scripts/update_local_rpm_versions --edit target_settings.cpanel-php73 uninstalled
scripts/update_local_rpm_versions --edit target_settings.cpanel-php72 installed
scripts/update_local_rpm_versions --edit target_settings.horde72 installed
scripts/check_cpanel_rpms --fix

Directories

Specific references to the PHP directory or extensions must use the following directory:

/usr/local/cpanel/3rdparty/php/73/

Binaries

When you reference the PHP binaries, we recommend that you use the linked binaries in the following directory:

/usr/local/cpanel/3rdparty/php/

The php.ini file

cPanel & WHM PHP uses a php.ini file to customize internal PHP settings. The file resides in the following directory:

/usr/local/cpanel/3rdparty/php/73/etc
Important:
  • If you edit the cPanel & WHM php.ini file directly, the system will overwrite your changes. Use the PHP section of the Tweak Settings interface to retain changes to cPanel & WHM’s php.ini file.
  • This is the cPanel & WHM php.ini file. For information on EasyApache 4’s php.ini files, read the EasyApache 4 section of our How to Edit Your php.ini File documentation.

Additional Documentation