Bug 201955 - www/apache24: mod_ssl won't load after 2.4.16 update
Summary: www/apache24: mod_ssl won't load after 2.4.16 update
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-apache (Nobody)
Depends on:
Reported: 2015-07-29 00:39 UTC by freebsd
Modified: 2015-08-02 00:21 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (apache)


Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2015-07-29 00:39:12 UTC
mod_ssl works fine with v2.4.12, but when trying to upgrade apache24 to 2.4.16 as suggested by pkg, I get this message when starting Apache:

httpd: Syntax error on line 135 of /usr/local/etc/apache24/httpd.conf: Cannot load libexec/apache24/mod_ssl.so into server: /usr/local/libexec/apache24/mod_ssl.so: Undefined symbol "ap_map_http_request_error"

Googling this message doesn't suggest anything worthwhile.
Comment 1 Mark Felder freebsd_committer 2015-07-29 16:10:49 UTC
I just did a clean install of apache24-2.4.16 on FreeBSD 10.1-RELEASE-p16, edited httpd.conf to uncomment LoadModule ssl_module..., uncomment Include ... httpd-ssl.conf, generated self-signed cert, and started apache24 service.

I received this error:

  SSLSessionCache: 'shmcb' session cache not supported (known names: ). 
  Maybe you need to load the appropriate socache module (mod_socache_shmcb?).

Ok, maybe 2.4 needs the sample config updated a bit. I had to uncomment "LoadModule ...mod_socache_shmcb.so"

Started apache again, and these are the log entries:

[Wed Jul 29 11:01:28.869219 2015] [ssl:warn] [pid 3026] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Jul 29 11:01:28.877969 2015] [mpm_prefork:notice] [pid 3026] AH00163: Apache/2.4.16 (FreeBSD) OpenSSL/1.0.1l-freebsd configured -- resuming normal operations
[Wed Jul 29 11:01:28.878219 2015] [core:notice] [pid 3026] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'

Looks to be working, I can hit it with my browser, SSL looks normal in Firefox, log entires showing up in /var/log/httpd-ssl_request.log

Any further details about your particular setup?
Comment 2 freebsd 2015-08-01 21:46:49 UTC
Hey Mark,

Weirdly enough, this seems to only break when I used apachectl graceful to try to restart the service and start using the new version.

When I upgraded again after switching to debug logging to try to get more data, and used apachectl restart (instead of apachectl graceful), everything worked just fine, and now both restart and graceful work with no problems.

Sorry for the weird report.
Comment 3 Mark Felder freebsd_committer 2015-08-02 00:21:16 UTC
No problem. Thanks for the update!