How to Change PHP Version Using MultiPHP Manager in cPanel

In cPanel, open MultiPHP Manager, select the domain, choose the PHP version and click Apply. Then confirm the change with a phpinfo() file, and check that PHP Selector or .htaccess is not overriding it.

Share
Switching the PHP version for a website with MultiPHP Manager in cPanel

Unlock the power of cPanel's MultiPHP Manager! Elevate your website's performance and compatibility by effortlessly switching PHP versions with just a few clicks. Stay in control and supercharge your web development journey today!

Steps to Change PHP Version

Accessing cPanel

Log in to your cPanel account provided by your hosting provider. This is usually done by visiting:

  • yourdomain.com/cpanel
  • yourdomain.com:2083

Locate MultiPHP Manager

In cPanel, search for the MultiPHP Manager option. This tool allows you to manage the PHP version for each website.

MultiPHP Manager option in cPanel, the tool that sets the PHP version for each website

Select Your Domain and PHP Version

Select the domain for which you want to change the PHP version, then choose your desired PHP version from the list.

MultiPHP Manager with a domain selected and the required PHP version chosen before clicking Apply

Apply Changes

After selecting the required PHP version, click the Apply button to save your changes.

MultiPHP Manager confirmation that the PHP version was changed for the selected domain
Important Note:
Make sure the PHP version is not being controlled from PHP Selector or the .htaccess file. Otherwise, you’ll need to update it there as well.Change the PHP version from PHP Selector: https://shellsecrets.com/articles/change-php-version-using-php-selector-in-cpanel/Change the PHP version from the .htaccess file: https://shellsecrets.com/articles/change-php-version-in-cpanel-using-htaccess/

Verify the Change

To ensure the PHP version change has taken effect, create a simple PHP file (e.g., info.php) in your website’s root directory (usually the public_html folder or the website’s named folder) with the following content:

<?php phpinfo(); ?>

Now open it in your browser (for example: yourdomain.com/info.php) and check the PHP version displayed.

Delete info.php once you have checked the version, because a public phpinfo page exposes details about your server.

Important Considerations

  • This method only affects the selected website’s PHP version
  • Some PHP versions may have deprecated features or compatibility issues
  • Always test your website thoroughly after changing the PHP version
  • Keep your website updated for better security and performance

Conclusion

Using cPanel’s MultiPHP Manager makes it easy to manage and switch PHP versions without dealing with complex configurations. By choosing the right PHP version, you can improve your website’s performance, security, and compatibility.