Cette publication est également disponible en :
Français (French)
Cpanel interface
Connect to your Cpanel.
In the Software section you will find :

“MultiPHP Manager allows you to set the “EasyApache PHP or CloudLinux PHP” version through Cpanel.

“Select PHP Version” allows you to set the PHP version of CloudLinux on which you can manage PHP extensions and options.
NB: EasyApache is available up to version php 7.4, while the CloudLinux version is available up to version 8.1.
In practice
I want to install a new version of Joomla which requires a minimum version of php7.2.5 but recommends using php8.0 or higher.
In this case, we’ll be using a php8.1 version of CloudLinux. (in order to manually manage php options and extensions.
MultiPHP Manager
First of all, we need to specify in the MultiPHP Manager that we want to use Cloudlinux (alt-phpxx) and not EasyApache (ea-phpxx), if you haven’t already done so:
- Select the desired domain or sub-domain
- Click on the drop-down menu
- Choose the php version you want (PHP8.1(alt-php81) in our case)
- Click on “Apply

Then you can see that the PHP version has changed:

Select PHP Version
We will now define the use of php via CloudLinux :

In our case, we’ll click on“native (5.6) (current)” and then on version“8.1“.

Then click on“set as current“.

On my domain, I see that the PHP version is still not managed by CloudLinux :

To apply our CloudLinux configuration, we need to click on “Use PHP Selector”.

Then confirm the action:

Now we have the CloudLinux logo:

Extensions
From the extensions menu you can manage the add-ons for the php version you are currently using:

You’ll need to check for errors such as “extension php-zip is missing” during installation. This is where you activate the module concerned.
Options
In this category, you can manage various parameters to help you correct errors or modify settings such as “memory_limit” or “upload_max_filesize”.
