WHM EasyApache 4 PHP missing

CloudLinux PHP versions missing in PHP Selector

On a Cpanel server running CloudLinux, PHP Selector did not show all PHP versions.

cloudlinux php selector

I reinstalled EasyApache profile “CloudLinux + All PHP Options + OpCache + mod_lsapi”.

WHM EasyApache 4  PHP missing

Even after installing EasyApache profile with all PHP versions, PHP 7.2 and PHP 7.4 was missing on this server.

To fix, the problem, i run

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 https://gist.github.com/serverok/ba97370b3184b480e29cf22c89dc69c3 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