How to change PHP version for a domain on cPanel

cPanel supports multiple versions of PHP. This article explains how to change the PHP version in cPanel and use the CloudLinux PHP selector for advanced PHP configurations.

cPanel PHP

cPanel maintains its own PHP versions, which start with ea-phpXX (e.g., ea-php83). If PHP is set to inherit, it will use the default PHP version used by cPanel. Consequently, the PHP version will change automatically when the default cPanel version is updated. To prevent this, choose the fixed PHP version you prefer.

Steps to Change the cPanel PHP Version:
  1. Log into cPanel
  2. Under Software click MultiPHP Manager
  3. Make a note of your current version!
  4. Select an updated version of PHP and click Apply
  5. Visit your site to confirm that the change has not broken your site.
  6. If the site is broken, you can switch back to the previous PHP version

CloudLinux Alternative PHP

CloudLinux maintains its own PHP versions for security patches, even for outdated PHP versions. These versions start with alt-phpXX (e.g., alt-php83).

Steps to Use Alt PHP Versions by CloudLinux:

  1. Log into cPanel
  2. Under Software click MultiPHP Manager
  3. Select inherit version of PHP and click Apply
  4. Under Software click Select PHP Version
  5. Select an updated version of PHP and click Apply
  6. Visit your site to confirm that the change has not broken your site.
  7. If the site is broken, you can switch back to the previous PHP version
  • cPanel, PHP Version, cPanel PHP
  • 726 Users Found This Useful
Was this answer helpful?

Related Articles

How to Change your cPanel Password

Reset Password from cPanel Login to cPanel. Click on the "change password" icon under the...

How to install WordPress on cPanel

Please find the following tutorial which will guide you regarding WordPress installation process...

Adding an A Record

Step 1 : First, log into your cPanel account and click on the Simple DNS Zone Editor icon...

Powered by WHMCompleteSolution