keat63

Well-Known Member
Nov 20, 2014
1,961
266
113
cPanel Access Level
Root Administrator
If I install http2 on my server will all domains and apache automatically run using the new protocol or is it confurable as per domain.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello,

It's enabled globally by default after you install the RPM:

Code:
# cat /etc/apache2/conf.d/http2.conf
<IfModule http2_module>
    LogLevel http2:info
    Protocols h2 h2c http/1.1
</IfModule>
However, you can customize it's configuration for individual virtual hosts using the information at:

mod_http2 - Apache HTTP Server Version 2.4

Here's a link with instructions on how to modify individual virtual hosts:

Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation

Thank you.
 

yagami_kira

Member
Mar 7, 2017
21
2
53
Tokyo
cPanel Access Level
Website Owner
Do you have an estimated timeframe of a WHM update wherein this http2 module will be considered completely stable and therefore be enabled by default? This is because I have a VPS server purchased early this year when this module was still in beta testing.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Do you have an estimated timeframe of a WHM update wherein this http2 module will be considered completely stable and therefore be enabled by default? This is because I have a VPS server purchased early this year when this module was still in beta testing.
Hello,

There are currently no plans to enable this module by default, however it's considered stable and can be installed outside of the EA4 experimental repo:

Apache Module: HTTP2 - EasyApache 4 - cPanel Documentation

Thank you.
 

yagami_kira

Member
Mar 7, 2017
21
2
53
Tokyo
cPanel Access Level
Website Owner
The link below shows how http2 can be enabled but it's implying that one should use PHP 7. Does it mean that if I'm using a script that uses Php 5.x , the script will not work?

- Removed -
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello,

You can use HTTP2 with PHP 5.x.

Thank you.
 

yagami_kira

Member
Mar 7, 2017
21
2
53
Tokyo
cPanel Access Level
Website Owner
Another thing, it is known that MPM_PREFORK and DSO+Mod_RUID2 is not compatible with HTTP2. Is there any reason why cPanel refuse to utilize MPM_WORKER and SuPHP as default ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Another thing, it is known that MPM_PREFORK and DSO+Mod_RUID2 is not compatible with HTTP2. Is there any reason why cPanel refuse to utilize MPM_WORKER and SuPHP as default ?
I encourage you to open a feature request if you'd like to see a change to the default EasyApache 4 profile:

Submit A Feature Request

Thank you.