



CPANEL FORCE HTTPS HOW TO
If you like our blog posts, on how to enable HTTP2 on WHM/cPanel with EasyApache 4, we’d appreciate you sharing this post on social networks by using the shortcuts below, or you can post a comment under the share shortcuts. They are available 24/7, and can help you out with any issues or requests that you have.

CPANEL FORCE HTTPS INSTALL
Instead, you can ask our Linux Administrators to install these for you. If you have a VPS with us, there is no need to enable HTTP2 on WHM/cPanel with EasyApache 4 yourself. Please note, most browsers only support HTTP/2 via encrypted (https) connections, so you need to have a valid SSL certificate installed on your website to see the benefits of the HTTP2 protocol. If there is no such file, create it, add the lines above and restart Apache for the changes to take effect: service httpd restart Please make sure that there is a /etc/apache2/conf.d/nf Apache configuration file with the following lines: cat /etc/apache2/conf.d/nf You should see something like this: httpd started successfully. Install 2 Packages (+1 Dependent package) > Processing Dependency: ea-apache24-mpm = forked for package: ea-apache24-mod_cgi-2.4.27-6.6.1.cpanel.x86_64 You can also install mod_http2 Apache module on command line using the following commands: # yum clean all
CPANEL FORCE HTTPS SOFTWARE
Then, go to Home > Software > EasyApache 4 > Customize > Apache modules, search for ‘mod_http2’ module, and enable it: Do you want to proceed with this selection? YesĬlick on ‘Next’, and click on ‘Provision’ to install and enable the ‘mod_http2’ Apache module. Log in to WHM and go to Home > Software > EasyApache 4 > Customize > Apache modules, disable the mod_mpm_prefork if it is enabled, click on ‘review’ to review the changes and click on ‘Provision’. Then, go to Home > Software > MultiPHP Manager and set PHP 7 as default PHP version for your websites. Also, it is a good idea to install the following PHP extensions: php7x-php-bz2Ĭlick on ‘Next’, review the changes and click on ‘Provision’. Log in to WHM at and go to Home > Software > EasyApache 4 > Customize > PHP versions and install php 7.x version (php70, php71 or php72).
