main/apache2: worker and itk mpms are built with extra modules
When switching to the itk mpm in /etc/conf.d/apache2 and attempting to start apache, I get the following error:
> sudo /etc/init.d/apache2 start
* Caching service dependencies... [ok]
* apache2 has detected an error in your setup:
httpd.itk: Syntax error on line 150 of /etc/apache2/httpd.conf: module auth_basic_module is built-in and can't be loaded
* ERROR: apache2 failed to start
If I’m not mistaken, this is because:
> /usr/sbin/httpd.itk -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_version.c
itk.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_suexec.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
While:
> /usr/sbin/httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
I’ve been tinkering with the APKBUILD but I’m still scratching my head.
This would also seem to affect the worker mpm, as ‘/usr/sbin/httpd.worker -l’ gives similar output to that of the itk mpm above.
(from redmine: issue id 473, created on 2010-11-11, closed on 2011-03-24)
- Changesets:
- Revision f5f96266 by Matt Smith on 2010-12-09T13:23:18Z:
main/apache2: fix worker and itk mpms, added itk configuration
The trouble I had while debugging this issue had to do with how I was attempting to install packages from aports. Thanks to Timo and Natanael for getting me back on the right track.
Once I was able to successfully install apache2 from aports, I got down to business. I have an updated APKBUILD that seems to fix the issue of having extra modules being compiled in with the alternative "itk" and "worker" MPMs; "{httpd,httpd.itk,httpd.worker} -l" output looks correct, and they all start without modifications to /etc/apache2/httpd.conf, so I believe this issue to be resolved.
I also added the itk configuration to httpd.conf.
fixes #473
- Revision 6f98e9ce by Matt Smith on 2010-12-09T13:27:14Z:
main/apache2: fix worker and itk mpms, added itk configuration
The trouble I had while debugging this issue had to do with how I was attempting to install packages from aports. Thanks to Timo and Natanael for getting me back on the right track.
Once I was able to successfully install apache2 from aports, I got down to business. I have an updated APKBUILD that seems to fix the issue of having extra modules being compiled in with the alternative "itk" and "worker" MPMs; "{httpd,httpd.itk,httpd.worker} -l" output looks correct, and they all start without modifications to /etc/apache2/httpd.conf, so I believe this issue to be resolved.
I also added the itk configuration to httpd.conf.
fixes #473
(cherry picked from commit f5f96266feb28f91e79456046ef2bcf850a00c50)