All Collections
Manage site PHP version via MultiPHP Manager
Manage site PHP version via MultiPHP Manager
Updated over a week ago

It’s recommended to upgrade your websites PHP version to the latest version when possible. Luckily cPanel and WHM makes this very easy and also offers the ability to switch back to the previous version in the event things go wrong.

This guide should walk you through switching your website(s) from one PHP version to another, as well as enabling the capability of updating the PHP handlers and the PHP-FPM configuration.

First, a look at the requirements for this guide:

In order to make use of the MultiPHP Manager and steps within this guide you must:

  • Have EasyApache 4 installed on your server (EasyApache 3 will not work).

  • Already have the necessary PHP versions and extensions installed on the server (Need help with this?).

  • Have an estimated 5-10 minutes of time to perform the few steps required.

Note: If you are still running EasyApache 3 on your server, then we recommend reaching out to our team to perform the update to EasyApache 4.

We have received quite a few support cases in the past with server owners attempting their own EasyApache 3 to EasyApache 4 upgrades, which had been unsuccessful. If unsuccessful, then there is a chance of corruption and a restore needing to be performed. Again, due to the upgrade process, we recommend contacting our team to get this scheduled.

Changing a websites PHP version

There are several ways to change the PHP version of your website. Click the options listed below to view the steps associated with each:

Changing a websites PHP version via WHM

One way to change a websites PHP version is to utilize the MultiPHP Manager feature provided within WHM.

  1.  In the top-left search box in WHM, enter ‘MultiPHP Manager’ and choose the option for MultiPHP Manager.

  3. Scroll down on the page until you find the section labeled Set PHP Version per Domain. You can then use the search box to locate the website in question you wish to update.

   4. To change the PHP version of the website select the drop-down next to the              domain under PHP Version, then choose your desired PHP version for the     website.Note: If a PHP version you are wanting does not show up in the drop-down, then that version is likely not installed on the server. See our guide on installing new PHP versions 4.What is inherit? The option for inherit means exactly what it sounds like, as the website will inherit whatever version of PHP is set as the default for the server. If you expect all of your websites to run the same version of PHP, then it’d be easier to just increase the servers default value than to change each website individually.

  5. That’s it! The website in question should now reflect the new PHP version.

Changing a websites PHP version via cPanel

  1. Login to your websites cPanel interface.

  2. In cPanel find and choose the option for MultiPHP Manager.

   3. Select the checkbox next to the domain that you wish to update the PHP version for, as shown in the screenshot below:

  4. Now with the desired domain selected, click on the drop-down labeled PHP Version. Then select your desired PHP version for the domain(s)

  5. Click the Apply button, also shown in the screenshot above, which will effectively change the PHP version for the domain(s) to the desired value.

Changing the servers default PHP version

The default version of PHP that the server uses is controlled by MultiPHP Manager. If a website does not have a specific version set and instead has it’s MultiPHP value set to inherit, then it will use the servers default PHP version.

If you have a good number of websites on the same server, then it can be easier to just change the servers default PHP version (rather than change each individual websites PHP version manually).

To change the default PHP version of a server please follow the steps outlined below:

  1. Login to your servers WHM interface.

  2. In the top-left search box in WHM, enter ‘MultiPHP Manager’ and choose the option for MultiPHP Manager.

  3. In the section labeled System PHP Version, click the ‘Edit’ button.

  4. You can now select the drop-down and change the PHP Version to the desired value.

  5. Once you select the desired version, click the Apply button to save the new version.

Note: Again, this will only affect sites set to ‘inherit’, which a yellow box with a list of domains should be present in step 4 which will give you an idea of what websites you will be updating the PHP version for by changing the default version.

Did this answer your question?