cPanel PHP Upgrade from PHP 7.3 to PHP 7.4
Last modified: July 13, 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.
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
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/74/etc
- 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’sphp.ini
file. - This is the cPanel & WHM
php.ini
file. For information on EasyApache 4’sphp.ini
files, read the EasyApache 4 section of our How to Edit Your php.ini File documentation.