cPanel

cPanel PHP Upgrade from PHP 7.2 to PHP 7.3


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

Warning:

Exercise extreme caution when you make changes to the php.ini file. Errors could result in non-functional PHP scripts. Only advanced users should edit this file.

Each PHP version has its own php.ini file. When you customize a php.ini file, these edits do not transfer from one PHP version to another. When you upgrade to a new PHP version, you must edit the new version’s php.ini file to add your customizations. The file resides in the following directory:

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

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also
Close