Skip to content
Want to get Premium Web Hosting only at 45₹/Month Signup Now!

How to Change PHP Version in cPanel

Changing the PHP version in your cPanel account is a straightforward process. Follow the steps below to switch to the PHP version that suits your website’s requirements.

Step 1: Log in to cPanel

  • Log in to your hosting account’s cPanel.

Step 2: Find the “MultiPHP Manager” Option

  • Scroll down to the Software section.
  • Click on MultiPHP Manager.

Step 3: Select a New PHP Version

  • On the MultiPHP Manager. page, you will see a dropdown menu with the current PHP version.
  • Click on the dropdown to view all available PHP versions.
  • Select the version you want to use.

Step 4: Apply Changes

  • After selecting your desired PHP version, click the Apply button.

Step 6: Verify the Change

  • To confirm the changes, you can create a phpinfo.php file and check the PHP version.
  • Create a new file in the root of your website directory with the following
<?php
phpinfo();
?>
  • Open the file in your browser (e.g., yourdomain.com/phpinfo.php), and it will display the current PHP version.

Also Read: How to Change the PHP Version via CloudLinux Selector in cPanel

Troubleshooting

  • Error 500 or website malfunction: If your website encounters issues after changing the PHP version, it may be incompatible with that version. Switch back to a previous PHP version and try again.

This guide helps you change the PHP version in cPanel in just a few steps. Make sure to select the PHP version that aligns with your website’s needs, and don’t forget to enable any necessary extensions!

It will take a few seconds, after which your PHP version will reset to the desired version.

Was this article helpful?
YesNo
Back To Top