- 08 Feb 2023
- 1 Minute to read
- Print
- DarkLight
How to change site PHP version using cPanel (CloudLinux)
- Updated on 08 Feb 2023
- 1 Minute to read
- Print
- DarkLight
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.