LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache build problem (https://www.linuxquestions.org/questions/linux-software-2/apache-build-problem-302587/)

libsys 03-16-2005 10:57 PM

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!

stickman 03-22-2005 08:48 AM

Did you change anything related to:
--enable-mods-shared
--enable-[insert modname here]=shared

libsys 03-22-2005 05:35 PM

I tried both options, but unfortunately it didn't fix the problem. I assume you meant to include the above options in the configure string? The only thing I didn't try was both in the same configure string, but I don't think it would have worked anyway.

I'm happy to keep trying any other suggestions you might have for as long as it takes to get this working, as this is the server's primary function.

Thanks!


All times are GMT -5. The time now is 05:23 PM.