The following article will assist you in upgrading the PHP version of the cPanel/WHM server. This article is only applicable to Linux servers with cPanel/WHM. Before upgrading the PHP version, ensure that all your websites/web applications are compatible with the new version of PHP.
1. Log in to WHM via root user.
2. In the top-left search bar, type EasyApache 4. You will see the EasyApache 4 option under the Software section.

3. Click EasyApache 4. This will open the EasyApache 4 interface.
4. On the next screen, you will see the Customized next Currently Installed Packages. Click on it.

5. On the next page, you will see various Easy Apache 4 options. Click on PHP Versions.

6. Select the PHP version you would like to upgrade, select PHP with Extensions or only PHP, and click on Next.


7. Click on Next Step, till Review.

8. Check if the selected version is there or not, and click on Provision to install the PHP version.

→ Want to upgrade PHP in your Windows Server? Check out our article with easy steps to upgrade the PHP version in Windows Server.
→ Looking to enable/disable a PHP extension from cPanel? Please refer to enable/disable PHP for more details.
→ Looking to change the PHP Version in cPanel? Please refer to the change in the PHP version for more details.