HTTP2 easy install on WHM/cPanel EA4

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 ea4-experimental
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

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 site: https://tools.keycdn.com/http2-test


Author: Dean Williams

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

Leave a Reply

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