How do i change my default php version in cpanel?

We keep our servers on a recently supported version of PHP, but if you want to change the version of PHP your cPanel account uses, you can follow the steps below to make an adjustment for each domain in your cPanel account.

Who This Affects and How to Check

When we change the default version of PHP on our shared and reseller servers, any domains set to inherit the PHP version will automatically be adjusted as well. This means that only domains with their PHP version set to inherit will be affected in any way by this change. If a site is using up-to-date CMS software such as WordPress or Joomla with up-to-date plugins, modules, etc., there's a strong chance that going from an older version of PHP to a newer one is unlikely to cause issues. You can check the PHP version your domains are using right in your cPanel account.

  1. Start by opening the cPanel MultiPHP Manager interface by navigating to:the Software section of cPanel and then clicking on MultiPHP Manager:
    How do i change my default php version in cpanel?
  2. Once loaded, the MultiPHP Manager will list all of your accounts domains followed by their selected PHP version in the next column. Domains that are set to inherit the default PHP version will look something like this:
    How do i change my default php version in cpanel?
  3. Above the list of domains, on the top of the MultiPHP Manager page, you will find the current default version of PHP on the server. It is referred to as the System PHP Version as shown below:
    How do i change my default php version in cpanel?

If you decide you want to adjust the version of PHP your domain(s) use(s), follow the directions below.

Changing a Domain's PHP Version

You can adjust the version of PHP your sites use separately by domain. Follow these directions to 

We recommend that all of our clients keep their sites up to date and compatible with the latest stable PHP version. Although we are planning to keep legacy PHP versions available on our servers as long as cPanel provides support for them, please use this grace period wisely and update your site software to the latest stable version of PHP as soon as possible to ensure continued site functionality.

  1. Start by opening the MultiPHP Manager interface by navigating to: cPanel >> Software and then clicking on MultiPHP Manager:
    How do i change my default php version in cpanel?

Check the boxes on the row of each domain you want to change in the Set PHP Version per Domain section:

How do i change my default php version in cpanel?

Select the PHP version from the list on the right-hand side of the screen above the domain list, and then click Apply:

How do i change my default php version in cpanel?

The altered domains should now reflect the updated PHP version accordingly in the list:

How do i change my default php version in cpanel?

Further Assistance

As always, if you have any other questions or concerns about this change, or anything else mentioned in this article, please don't hesitate to reach out to our 24/7 Technical Support team via ticket, live chat, or phone call. 

How do I find my PHP version in cPanel?

Viewing Your PHP Version in cPanel.
Log into cPanel..
Under General Information on the right panel, click Server Information..
Under the Item column, find PHP Version..
In the Detail column, note the version number..

How can I change my PHP version?

Changing the PHP version.
Navigate to the Manage Websites page..
Click the Manage button to the right of your domain..
Under the PHP section, click the Modify icon..
Choose a version of PHP from the dropdown menu..
Scroll down and click the Change PHP Version button to save your changes..

How do I change my default PHP version in WHM?

Procedure.
Log into WHM..
Navigate to MultiPHP Manager..
Under System PHP Version, click Edit next to the current system default PHP version..
Select the desired version of PHP..
Click Apply to change the system default PHP version to the selected PHP version. Have more questions? Submit a Request. Related articles..

What is PHP version in cPanel?

The cPanel default profile includes PHP versions 7.4 and PHP 8. EasyApache 4 supports PHP versions 5.4 through 5.6, PHP versions 7.0 through 7.4, and PHP 8.0 through 8.1.