Apache build problem
We have been setting up what will be our new webserver, but I have just run into a very annoying problem.
I had built apache from source, only statically building in a few modules. I configured httpd.conf to load a whole lot of modules dynamically, and the web server was working fine.
However, we decided we needed to build mod_perl as a DSO, and when we went to do this, it said we needed to reconfigure apache with the LIBS=-lpthread environment variable set (at least, this is what I interpreted it to mean after googling "LIBS=-lpthread"). I did this, then rebuilding apache with the same configuration directives.
Now, when I try to run apache using "apachectl start", it is giving me errors like this:
"module access_module is built-in and can't be loaded"
This appears to be happening for pretty much every module that I previously had configured as a DSO, as if I go through commenting out all the "LoadModule" lines one-by-one, the errors for each preceding module disappear. I've done an "apachectl -l" and it shows that most of the modules are statically compiled in.
I have no idea why it has done this. I'm using the same source that I originally used to build apache, I've tried doing a "make clean" on the source directory, tried completely removing the installed apache directory /usr/local/apache2 and re-installing, and I've tried building a minimal apache install using "./configure --prefix=/usr/local/apache2", but it still gives me the same error every time.
I can comment out the LoadModule lines and and it works, but it doesn't explain to me why it has started doing this, and besides, we would prefer to have most of these modules loaded as DSO's to minimise the footprint of the httpd processes.
The configure directive I used for apache is:
./configure \
--prefix=/usr/local/apache2 \
--enable-so \
--enable-auth-digest \
--enable-rewrite \
--enable-setenvif \
--enable-mime \
--enable-deflate \
--enable-ssl \
--with-ssl=/usr/local \
--enable-headers
Any help with this would be appreciated!
|