H
H
Hazrat Hajikerimov2016-12-29 22:23:47
Apache HTTP Server
Hazrat Hajikerimov, 2016-12-29 22:23:47

Apache 2.4.18 Ubuntu 16.04 not enabling HTTP/2 module?

Many times I come across that in Apache 2.4.18 there is no http2 module, while the official source says that the module is available from version 2.4.17 and higher.
During installation, it displays an error message:

sudo a2enmod http2
ERROR: Module http2 does not exist!

I searched in the information, according to the link on stackoverflow , the user Jordi had the same problem.
The suggested solution is to update apache to 2.4.25 from the following repository:
$ sudo add-apt-repository -y ppa:ondrej/apache2
$ sudo apt-key update
$ sudo apt-get update

$ sudo apt-get --only-upgrade install apache2 -y
$ sudo a2enmod http2

And yes, it really works, but!
After this update, I often get "An error was detected in the system program."
Got into /var/crash, and there is error data in apache:
_usr_sbin_apache2.0.crash
The link contains the full text of the error.
And also got into the Apache logs, there is such a picture:
[Thu Dec 29 21:37:01.689196 2016] [mpm_prefork:notice] [pid 3518] AH00169: caught SIGTERM, shutting down
[Thu Dec 29 21:37:01.878387 2016] [mpm_prefork:notice] [pid 3606] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2j configured -- resuming normal operations
[Thu Dec 29 21:37:01.878458 2016] [core:notice] [pid 3606] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 29 21:38:33.239717 2016] [mpm_prefork:notice] [pid 3606] AH00169: caught SIGTERM, shutting down
[Thu Dec 29 21:38:33.411289 2016] [mpm_prefork:notice] [pid 3817] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2j configured -- resuming normal operations
[Thu Dec 29 21:38:33.411361 2016] [core:notice] [pid 3817] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 29 21:39:36.094163 2016] [mpm_prefork:notice] [pid 3817] AH00169: caught SIGTERM, shutting down
[Thu Dec 29 21:39:52.104885 2016] [mpm_prefork:notice] [pid 4052] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2j configured -- resuming normal operations
[Thu Dec 29 21:39:52.104953 2016] [core:notice] [pid 4052] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 29 21:39:54.949610 2016] [mpm_prefork:notice] [pid 4052] AH00169: caught SIGTERM, shutting down
[Thu Dec 29 21:39:55.218622 2016] [mpm_prefork:notice] [pid 4103] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2j configured -- resuming normal operations
[Thu Dec 29 21:39:55.218692 2016] [core:notice] [pid 4103] AH00094: Command line: '/usr/sbin/apache2'

Advise whether it is worth updating Apache on the production server in this way to enable http2?
I've read that these kinds of bugs are minor, and a couple of times they even lower the bug level in Apache itself to stop such bugs from popping up.
And yet, how can you enable http2 without risks?
SSL certificates from Let's Encrypt
Server installed LAMP
sudo apt-get install lamp-server^

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question