When you first install CloudLinux in cPanel, you may got issue on php modules and extensions such as ioncube, MySQL extention, etc.
WordPress users may got the message:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
And WHMCS/ionCube users may got the message:
The ionCube PHP Loader needs to be installed.
All the issue will be solved by following the steps below:
1) Login to WHM with root access and go to EasyApache 4 (WHM >> Home >> Software >> EasyApache 4).
2) Look for the default profile (CloudLinux + cPanel Default) profile and click Provision.
3) After provisioning the easyapache profile, go to terminal (WHM >> Home >> Server Configuration >> Terminal) to execute a command.
Write the below code and hit Enter.
yum -y groupinstall alt-php
Wait about 10 minutes here to complete the installation of php packages.
4) After install the CloudLinux hardened php packages, go to multi-php manager (WHM >> Home >> Software >> MultiPHP Manager).
Click “Edit” and select an ea version of php here. ea-php is the cPanel php version, and alt-php is the CloudLinux php version. If you select an alt-php version here then the CloudLinux php selctor will not work. Should be an ea version selected here.
5) Next, go to CloudLinux php selector (WHM >> Home >> Server Configuration >> CloudLinux LVE Manager >> Selector).
6) Make sure the selector is enabled, and select a default php version, also remove the tick mark (un-tick) on native selection.
7) Select each php version and select extensions by panel default, then Save.
After selecting Panel Default you may select more additional extensions as needed.
8) Go to (WHM >> Home >> Packages >> Feature Manager) to edit the all features.
9) Remove/UnTick the 3 features, MultiPHP Manager, MultiPHP INI Editor, PHP Pear Packages. Then click Save.
10) Login to each individual cPanel user account, and select a php version.
Reboot the server and all is fine.
Leave A Comment