HTTP2 easy install on WHM/cPanel EA4

UPDATED 31/07/2017 – EA4 HTTP/2 has now moved out of Experimental!

I was surprised last night to discover that HTTP2 has come to WHM Experimental and can now be installed with just a few short steps into EasyApache 4. If you dont already use EA4 I strongly suggest you move over to it if possible from within the WHM GUI, it makes rebuilding apache and adding modules far easier than EA3 and also supports multiple PHP versions running together which is a great feature to offer your hosting clients.

Anyway If you have EA4 setup then all you need to do is launch a SSH terminal to your server and run the following commands:

1. run the following commands:

yum install ea-apache24-mod_http2

2. Once install is complete you need to create a file in /etc/apache2/conf.d/http2.conf , I would use nano, ie.

nano /etc/apache2/conf.d/http2.conf

OR open up your WHM Interface and go to Server Configuration > Apache Configuration > Include Editor and add the below code to Pre Main Include / All Versions.

Add the following and save the file:

<IfModule http2_module>
    LogLevel http2:info
    Protocols h2 h2c http/1.1

3. Finally, restart apache and you are done!!


Note: You can check your HTTP2 implementation at the following sites: 




HTTP/2 Experimental Removal

If you followed this guide before the update (31/07/2017) then you will need to first remove the old packages, fortunately this is really easy, before following the above guide please run these two commands first to remove the experimental version.

yum remove ea4-experimental
yum remove ea-apache24-mod_http2


Author: Dean Williams

Professional PHP Web Developer with expertise in OpenCart Web Development, WordPress Web Development, Bespoke Systems - also a seasoned Linux Server Administrator.

3 comment(s) on “HTTP2 easy install on WHM/cPanel EA4

Leave a Reply

Your email address will not be published. Required fields are marked *