LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-30-2006, 04:35 PM   #1
czamora
Member
 
Registered: May 2006
Posts: 52

Rep: Reputation: 15
Installing apache modules


Hi,

I have just installed apache (web server) from source but when I try to start it, it complains about the following line in my httpd.conf file:

LoadModule access_module modules/mod_access.so

I need to control acces to directories through the Allow and Deny directives, so I need the access module, right?

The error message is exactly:

httpd: Syntax error on line 185 of /var/httpd/conf/httpd.conf: Cannot load /var/httpd/modules/mod_access.so into server: /var/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory

There is indeed no files in /var/httpd/modules

I've tried to recompile apache adding the following to ./configure:
--enable-modules=mod_access
It accepts it, but once built and installed I get again the same error when trying to start the server.

Can anyone please let me know how to install the mod_access (or any other) module into the apache web server?

Thanks a lot for any help.
 
Old 05-31-2006, 11:47 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
What version of Apache do you have installed? It might sound like a stupid question, but whether you have 1.3, 2.0, or 2.1 makes a difference here.

The short answer might be that if you are compiling mod_access in as a static module, you don't need the line LoadModule to load it as a dynamic module. Try commenting the line out.

To check what modules you have, try
Code:
httpd -l
That should give you a list of the modules that are compiled in.
 
Old 06-02-2006, 06:44 AM   #3
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
The Apache version is 2.0:
$ httpd -v
Server version: Apache/2.0.40
Server built: Feb 25 2003 05:01:56

And the access module does not seem to be included:
$ httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
 
Old 06-02-2006, 10:08 AM   #4
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
To get it compiled in, try
Code:
--enable-module=access
See if that makes a difference.
 
Old 06-04-2006, 04:59 PM   #5
czamora
Member
 
Registered: May 2006
Posts: 52

Original Poster
Rep: Reputation: 15
No, that didn't work, but I found, by reading the manual thoroghly, a way that did:

--enable-access=shared

Thanks.
 
  


Reply

Tags
apache, configure, install, modules


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
Problem installing Apache Modules Vantasticman777 Linux - Newbie 2 12-01-2005 01:14 AM
Installing apache modules dominant Linux - Newbie 0 07-21-2004 04:48 AM
Looking for apache modules dominant Linux - Newbie 2 07-21-2004 02:26 AM
Where are my apache-2.0.48 modules tharris Linux - Software 1 02-23-2004 06:06 PM
Apache Modules raptor Linux - Software 0 08-26-2003 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 PM.

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