How to Upgrade PHP Version in cPanel/WHM Server?

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 into WHM via root user.
2. Search EasyApachebt from the top left search bar. You will see EasyApache (Apache Update) option under the Software section.

3. Click on EasyApache (Apache Update). This will open the new window as following.

4. On the next screen, you will see the current Apache configuration (current profile) under Previously Saved Config; hover the mouse over the gear icon Customize Profile under the Action column.

5. You will see the Apache version screen, as shown below. Select the Apache version you want to build and click Next Step. If you just want to upgrade the PHP version, keep the Apache radio button as is.

6. At the next stage, you will see a screen to select the PHP Versio

7. Select the PHP version you would like to upgrade and click on Next Step.


8. Since we are just upgrading the PHP version, there is no need to make any changes at the next 2 stages, Short Options List and Exhaustive Options List.

9. Go to Next Step for Save and Build.

→ Want to upgrade PHP in your Windows Server? Check out our article with easy steps to upgrade PHP version in Windows Server.

→ Looking to enable/disable PHP extension from cPanel? Please refer to enable/disable PHP for more details.

→ Looking to change PHP Version in cPanel? Please refer to the change PHP version for more details.

Was this answer helpful?

« Back