cPanel PHP Upgrade from PHP 7.4 to PHP 8.1


Last modified: December 9, 2022

Overview

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

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

Important:

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

Build information

  • Tier: NEXT 11.110.0
  • Build Number: 11.110.0.0
  • Release Date: XX/XX/2023

Upgrade details

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

Software Initial version Upgrade version
cPanel PHP 7.4 8.1.11
SourceGuardian 12.1 13.0.3
ionCube 11.0 12.0.1
phpMyAdmin 4.9.7 5.2.0
phpPgAdmin 5.6.0 7.13.0
Roundcube 1.5.2 1.6.0

PHP paths

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

Directories

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

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

Libraries

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

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

Binaries

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

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

The php.ini file

Important:

If you edit the php.ini file directly, the system will overwrite your changes. Use the PHP section of the Tweak Settings interface to edit cPanel & WHM’s internal php.ini files.

The php.ini file resides in the following directory:

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

Additional Documentation