mod_http2.so missing in ubuntu 16.04 apache2

Asked by Alvaro Figueroa

I have just installed Ubuntu 16.04 server daily from yesterday, and upgraded any packages after install.

I install apache2 and then:
$ sudo a2enmod http2
$ sudo /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
 failed!

After checking on journalctl I get this error:

Apr 07 17:11:14 1604srv apache2[3186]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/http2.load: Cannot load /usr/lib/apache2/modules/mod_http2.so into server: /usr/lib/apache2/modules/mod_http2.so: cannot open shared object file: No such file or directory

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Alvaro Figueroa (alvaro-greencore) said :
#1

I've just recompiled the debian package for apache2 with the libnghttp2-dev package installed.

This package should be added to the build-dep for the apache2 package in order to include the mod_http2.so module.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#2

I suggest you report a bug with your compiled files (ideally a deb) as a solution.

Revision history for this message
Alvaro Figueroa (alvaro-greencore) said :
#3

Thanks actionparsnip, that solved my question.