Page tree
Skip to end of metadata
Go to start of metadata


The mod_http2 Apache module provides HTTP/2 support for the Apache HTTP server. 


Most browsers only support HTTP/2 via encrypted (https) connections. 


This module can increase the loading speed and security of your web pages. To obtain these benefits, you must adjust your server's configuration.


HTTP/2 is resource intensive and can increase your server's memory usage.

You can edit the mod_http2 Apache module's .conf file at the following location:


For more configuration information, read Apache's mod_http2 documentation


This module requires EasyApache 4 and Apache 2.4.  


The mod_http2 Apache module is not compatible with 32-bit CentOS 6 systems or with the following modules:

  • mod_mpm_itk

  • mod_mpm_prefork (the Prefork MPM)

On new installations of cPanel & WHM, the system installs the Prefork MPM by default. To check the MPMs that your system uses, run the following command:

rpm -qa | grep mpm

The output may resemble the following example:


How to install or uninstall mod_http2

In the interface

Install or uninstall the mod_http2 Apache module with WHM's EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4). 

On the command line

You must manually uninstall the MPM Prefork or MPM ITK modules in order for the mod_http2 Apache module to work correctly. To do this, run either of the following commands before you install the mod_http2 Apache module:

yum remove ea-apache24-mod_mpm_prefork
yum remove ea-apache24-mod_mpm_itk

To install the  mod_http2 Apache module in EasyApache 4, run the following command on the command line:

yum install ea-apache24-mod_http2 

To uninstall the mod_http2 Apache module in EasyApache 4, run the following command on the command line: 

yum remove ea-apache24-mod_http2

Additional documentation