How to change site PHP version using cPanel (CloudLinux)
  • 08 Feb 2023
  • 1 Minute to read
  • Dark
    Light

How to change site PHP version using cPanel (CloudLinux)

  • Dark
    Light

Article summary

In cPanel hosting environments with CloudLinux, the operating system is providing caged environments (LVE) where by each individual site can have specific PHP versions and PHP extensions. In cases whereby you have CloudLinux, you can use PHP Selector to choose which version of PHP a site is operating under, and which PHP modules you want to use along with it.


1. Login to WHM, and log in to the cPanel for the associated account you want to change the PHP version for by clicking on the cPanel icon next to your domain:

2. Once inside, you need to scroll down to the "Software" heading, and click on "MultiPHP Manager":

3. You will see the following:

This means the site is currently running on the default cPanel supplied server-wide version of PHP, in this case, it's PHP 8.1. The Native version of PHP will use the PHP modules set in EasyApache.

4.  Use the drop-down menu to select the PHP version, and set it using "Set as current", then tick the PHP modules that you want to be available to this site and then click "Save"

You can switch between different versions of PHP, or set this to "inherit" the server wide PHP version.


If you have any issues or difficulties, please contact support for further assistance.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence