← Back to team overview

enterprise-support team mailing list archive

[Bug 1568087] [NEW] Apache2 package missing mod_http2.so for HTTP/2 on 16.04

 

Public bug reported:

With a fresh installed ubuntu server, you try to enable the http2
module, apache fails after restarting.

$ sudo a2enmod http2
$ sudo service apache2 restart


Viewing the logs I get:
Apr 08 12:23:30 1604srv apache2[21683]: 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

Checking why this file is missing from the package, so I downloaded the
source of the ubuntu package for 16.04

$ sudo apt-get source apache2

IF you install the package libnghttp2-dev before recompiling, the
mod_http2.so file is generated properly, and after installing my locally
compiled package, I can use HTTP/2 without any problem.

Note: When testing you might need to enable SSL and add "Protocols h2
http1.1" to the virtualhost. I added examples in this report.

My suggestion would be to add the libnghttp2-dev package to the build-
dep for the apache2 package.

Please note that this bug would affect the global adoption of HTTP2 if
the LTS distro is released with the module missing.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apache2 2.4.18-2ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-17.33-generic 4.4.6
Uname: Linux 4.4.0-17-generic x86_64
Apache2ConfdDirListing: False
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
Date: Fri Apr  8 12:20:47 2016
InstallationDate: Installed on 2016-04-07 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Beta amd64 (20160407)
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apache2
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apache2.apache2.conf: [modified]
modified.conffile..etc.apache2.sites.available.000.default.conf: [modified]
modified.conffile..etc.apache2.sites.available.default.ssl.conf: [modified]
mtime.conffile..etc.apache2.apache2.conf: 2016-04-08T10:44:21.140224
mtime.conffile..etc.apache2.sites.available.000.default.conf: 2016-04-08T11:34:18.200930
mtime.conffile..etc.apache2.sites.available.default.ssl.conf: 2016-04-08T12:09:09.053943

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1568087

Title:
  Apache2 package missing mod_http2.so for HTTP/2 on 16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1568087/+subscriptions


Follow ups