If you have just purchased your VPS or Dedicated server account, then congratulations you do not need to install HTTP/2 as it is already included. However, if you need to install it then it is a fairly simple process. You will need to have EasyApache 4 please review the instructions and conditions below if you need to install HTTP/2.
Install HTTP/2
The installation of HTTP/2 on a VPS or Dedicated server account requires that you have root access. Make sure that you have also performed a complete backup before continuing.
- Login to SSH as the root user
- Run the following command:
yum install ea-apache24-mod_http2
Enable HTTP/2 in Easy Apache4
- Log into Web Host Manager (WHM)
- Select EasyApache 4
- Beside Currently Installed Packages, select Customize
- Select Apache Modules
- Search “http2”
- Toggle mod_http2 to blue
- Select Yes if you’re prompted to remove conflicting packages such as PHP 7.1 and a Multi-Processing Module (MPM) package, Continue, and select another Apache MPM package
- Select Review at the bottom
- Select Provision
- Select Done
Toggle to install the HTTP/2 Apache module
Important conditions for HTTP/2 installation
You should now be able to install HTTP/2 support on your VPS/Dedicated server account. For further reading on enabling HTTP/2 in Apache, please see How to enable HTTP/2 support in Apache.