LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing apache modules (https://www.linuxquestions.org/questions/linux-software-2/installing-apache-modules-450020/)

czamora 05-30-2006 04:35 PM

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.

zaichik 05-31-2006 11:47 AM

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.

czamora 06-02-2006 06:44 AM

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

zaichik 06-02-2006 10:08 AM

To get it compiled in, try
Code:

--enable-module=access
See if that makes a difference.

czamora 06-04-2006 04:59 PM

No, that didn't work, but I found, by reading the manual thoroghly, a way that did:

--enable-access=shared

Thanks.


All times are GMT -5. The time now is 01:33 PM.