My HP

18th May, 2020 | WHM |

How to change PHP versions on your cPanel server within WHM

WHM allows you to easily switch between PHP versions used by the cPanel accounts on your server, as well as the default PHP version that the server will use.

In this guide we will show you several methods for adjusting the PHP version on your cPanel server. Please continue reading, or use one of the quick links below to skip straight to a section.

Changing the default system PHP versionChanging the PHP version of multiple cPanel accountsChanging the PHP version of a single cPanel account

Changing the default system PHP version:

Firstly, log into your server / WHM account. If you are unsure on how to do this, please view the following help article - 'How to log into WHM'

Once logged in, from your WHM home screen type in 'PHP Manager' within the search box, located in the top left of your WHM area, then click on 'MultiPHP Manager'


On the MultiPHP Manager page you will be able to see what is currently set as the 'System PHP Version'

This will be the default PHP version used by all cPanel accounts that are created, and any existing cPanel accounts that have their PHP version set as 'Inherit'.

To change the system default, click on the 'Edit' button to the right of the PHP version.


This will then switch to a drop down selection box.

Click on the drop down box and select the PHP version that you would like to switch to

Once selected, click on the 'Apply' button to save the changes.


WHM will then apply the new system default PHP version.

Once done it will also show a green 'Success' notice in the top right corner of the page to confirm that the change of PHP Version is complete.


Changing the PHP version of multiple cPanel accounts:

Firstly, log into your server / WHM account. If you are unsure on how to do this, please view the following help article - 'How to log into WHM'

Once logged in, from your WHM home screen type in 'PHP Manager' within the search box, located in the top left of your WHM area, then click on 'MultiPHP Manager'


On the MultiPHP Manager page you will see a list of all of the cPanel accounts, along with what PHP version they are currently set to.

If the PHP version shows 'Inherit', this means it will automatically use the PHP version set as the system default.

To adjust multiple accounts at once - select all of the cPanel accounts that you would like to change the PHP version for, by ticking the box to the left of each domain name.

Then in the 'PHP Version' drop down box, select the PHP version you would like to change them to.

Once selected, click on the 'Apply' button.


WHM will then apply the PHP version to the selected cPanel accounts.

To the right of each cPanel account you will see the system show 'Updating PHP Version' whist this is carried out.

Once done, WHM will show a green 'Success' notice in the top right of the page to confirm that the PHP version has been updated.


Changing the PHP version of a single cPanel account:

Firstly, log into your server / WHM account. If you are unsure on how to do this, please view the following help article - 'How to log into WHM'

Once logged in, from your WHM home screen type in 'PHP Manager' within the search box, located in the top left of your WHM area, then click on 'MultiPHP Manager'


On the MultiPHP Manager page you will see a list of all of the cPanel accounts, along with what PHP version they are currently set to.

If the PHP version shows 'Inherit', this means it will automatically use the PHP version set as the system default.

Next, locate the cPanel account that you would like to adjust the PHP version for, then click on the 'PHP Version' drop down box to the right of the account.

From this drop down box, select the PHP version you would like to change the account to.


WHM will then apply the PHP version to the cPanel account you have selected.

To the right this account you will see the system show 'Updating PHP Version' whist this is carried out.

Once done, WHM will show a green 'Success' notice in the top right of the page to confirm that the PHP version has been updated.

Comments