How to change PHP version from cPanel? Print

  • 0

The latest version of cPanel/WHM (58.3.x) is shipped with the EasyApache 4.0. It allows you to install and run multiple versions of PHP side by side. If your WHM server is running with WHM 58.3.x or later version, you can install multiple PHP versions, and allow individual cPanel user to select/change PHP version of their website right from their cPanel account. The following tutorial will assist you to change the PHP version of your website and add a custom php.ini file via cPanel.


Change the PHP Version from cPanel

To change the PHP version of all domains in cPanel, follow these steps:

Step 1. Log in to your cPanel account.

Step 2. In the "Software" section, click on the "Select PHP Version" icon.

Step 3. On the "Select PHP Version" page, select the desired PHP version from the drop-down menu.

Step 4. Click the "Set as current" button to apply the changes.

You have successfully changed the PHP version on the account level.

 

How to Change PHP Versions for a Website Using MultiPHP Manager in cPanel?

What is MultiPHP Manager?

The MultiPHP Manager in cPanel is a tool that allows you to manage the PHP version your websites. With this tool, you can set the PHP version for each of your domains individually.

To change the PHP version of multiple domains in cPanel, follow these steps:

Step 1. Log in to your cPanel account.

Step 2. In the "Software" section, click on the "MultiPHP Manager" icon.

Step 3. On the "MultiPHP Manager" page, select the domains you want to modify from the list.

Step 4. From the "PHP Version" drop-down menu, select the desired PHP version for the selected domains.

Step 5. Click the "Apply" button to apply the changes.

Note: Make sure that the PHP version you are switching to is compatible with your website and any extensions or plugins you are using. If your website relies on any deprecated functions or features, switching to a newer PHP version may cause issues.

After changing the PHP version, it is important to thoroughly test your website to ensure that everything is working as expected. This may include checking for any error messages or issues with specific features or functionality.

Some hosting providers may have a different process for changing the PHP version. If the above steps do not work for you, you may need to contact your hosting provider for assistance.

 


Was this answer helpful?

« Back

chat