CloudLinux PHP Selector on Cpanel Server

CloudLinux come with PHP Selector, this allow you to select differnt PHP versions. When you enable PHP selector, you should do the following.

Related Posts

Enable CloudLinux PHP lsapi

cpanel server

EasyApache 4 installing PHP 5

Cpanel have removed PHP 7.0 and older version from newer cpanel installations. Existing servers with older version of PHP will continue working.

If you have a new cpanel server, but required older PHP version for some of your site to work, you can download EasyApache 4 profile from another server and upload to your server and provision it to get older PHP version.

I have EA4 profile with Older PHP version available at

To install, run following commands as root

Or save content of gist as serverok-all-php.json, then upload it at

cpanel server

Now login to WHM > EasyApache 4, you will see

EasyApache4 php 5.6

Click on “Provision” to install older PHP versions.

Related Posts

Reinstall EasyApache4
CloudLinux EasyApache 4 Profile Missing
Cpanel Server

WHM php.ini editor

Disable PHP disable_functions on Cpanel Server

On a Cpanel Server using CentOS 7 + php-fpm, site phpinfo() shows few functions are set to disabled in disable_functions.

PHP disable_functions

I checked server wide PHP configuration in WHM for the PHP version the site is using. There is no disable_functions specified.

WHM php.ini editor

This is because in Cpanel server running in PHP-FPM, you need to edit php-fpm pool config file at

Replace ea-php73 with whatever PHP version you selected for this web site.

Remove the line

Restart php-fpm with

See Cpanel Server

Disable 2 Factor Authentication in Cpanel

To disable 2 Factor Autentication for WHM in Cpanel Server, SSH into server as user root, run

Or run

This will create a link for WHM login, using this link won’t require 2 Factor Authentication. After logging into WHM, you can disable 2 Factor Autentication.

If you want 2 FA disabled for a cpanel user, run

Cpanel enable http2

Enable HTTP/2 in Cpanel Server

HTTP/2 only work with mod_worker or mod_event. if you use other mpm modulesm you need to swith to worker or event.

To install http2, login to WHM as user root. Go to

Now under Apache Modules, search for “http2”. Use the selector on right side to install it. Click “Next” until it it reach provision page. Click “Provision”.

Cpanel enable http2

Configuration for http2 located at

You can verify HTTP2 work for your site at

Most browsers only support HTTP2 over SSL, so make sure you have SSL (https://) enabled.

See Cpanel Server

phpMyAdmin missing from WHM after upgrade

On WHM, phpMyAdmin was missing from left menu after Cpanel upgrade.

Verify cpanel-phpmyadmin package insalled on the server.

Since phpmyadmin package was installed, clear WHM cache with commands

After clearning browser cahce, phpMyAdmin started showing in WHM.


Cpanel Server Disk Partition

Many server providers setup server with smaller / partition like 20 GB. This is fine for normal Linux Servers, you will need more disk space on Cpanel Servers. Many use CloudLinux on Cpanel Servers, this will require you to have more free disk space on / partition.

The partition i use for Cpanel Servers are

I don’t create seperate partition for /usr and /var as this will use up more space, may end up one of the partition get filled up while other have lot of free space. Having one partition for /, you don’t need to worry much.

Another partition scheme is give everything to /