cPanel PHP Upgrade from PHP 7.3 to PHP 7.4


Last modified: February 11, 2022

Overview

In cPanel & WHM version 102, we upgraded internal cPanel PHP from version 7.3 to 7.4. This document details the upgrade and the PHP paths.

We tested internal cPanel PHP’s compatibility with packaged applications, such as phpMyAdmin.

Important:

Third-party plugin developers must verify that their applications function in the new version.

Build information

  • Tier: NEXT 11.102.0
  • Build Number: 11.102.0.0
  • Release Date: 01/17/2022
  • Notes: We now provide the oniguruma regular expression library to support multibyte (non-English) regular expressions. In PHP 7.3, this library was bundled as part of PHP.

Upgrade details

The following table provides the initial and upgraded versions of internal cPanel PHP and its loaders:

Software Initial version Upgrade version
PHP 7.3 7.4
ionCube 10.2 11.0
SourceGuardian 11.2 12.1

PHP paths

Third-party plugin developers should reference the proper paths for internal cPanel PHP 7.4.

Directories

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

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

Libraries

Specific references to PHP libraries or extensions should use the following directory:

/usr/local/cpanel/3rdparty/php/74/lib

Binaries

Specific references to PHP binaries should use the linked binaries in the following directory:

/usr/local/cpanel/3rdparty/php/74/bin/

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/74/etc

Additional Documentation