Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-16-2005, 10:57 PM   #1
LQ Newbie
Registered: Dec 2004
Posts: 19

Rep: Reputation: 0
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 \

Any help with this would be appreciated!
Old 03-22-2005, 08:48 AM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Did you change anything related to:
--enable-[insert modname here]=shared
Old 03-22-2005, 05:35 PM   #3
LQ Newbie
Registered: Dec 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2 build system jkratze1 Linux - General 0 08-08-2005 09:48 AM
kernel build problem ludwig W Linux - General 2 01-10-2004 06:02 PM
sendmail build problem budzynm Linux - Software 1 09-10-2003 11:03 PM
Problem with CVS build RecoilUK Linux From Scratch 1 06-24-2002 12:11 AM
Kernel Build problem bataii Programming 5 11-06-2001 02:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration