cPanel

cPanel PHP Upgrade from PHP 5.6 to PHP 7.2


Overview

In cPanel & WHM version 76, we updated the internal PHP from version 5.6 to 7.2. This document contains details about the update 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: EDGE 76
  • Build Number: 11.75.9999.199
  • Release Date: 9/20/2018
  • Notes: None.

Upgrade details

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

PHP details

Downgrades

We removed PHP 5.6 from cPanel & WHM version 76, so downgrading from PHP 7.2 is not possible.

Directories

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

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

Binaries

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

/usr/local/cpanel/3rdparty/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/72/etc

Related Articles

Leave a Reply

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

Check Also
Close