Forum Moderators: phranque

Message Too Old, No Replies

Enabling modules in Apache 2.2.x

moving from 1.3 and not sure about changes

         

Mabu

9:03 pm on Sep 24, 2006 (gmt 0)

10+ Year Member



I'm playing around with a 2.2.3 version of Apache under FreeBSD. I've compiled and installed the software and have it running, but I am not sure how to enable extra modules, specifically ssl and mod_rewrite or mod_php.... I can't find much info in the docs on how to enable/download/compile modules in this version. Is it exactly the same as 1.3? It looks like ssl compatibility is built into apache 2.0 but it isn't running even when conf/extras/ssl.conf has the engine turned on.

Can anyone give me some info on how to add/enable modules in Apache 2.2.x? I did the --enable_module=#*$!x in the configure but that doesn't seem to work and the help file is buggy -- some of it's conventions are not valid (like using spaces to delineate specified modules).

Thanks for any help!

BjarneDM

6:36 am on Sep 25, 2006 (gmt 0)

10+ Year Member



Apache 2.2.x has a completely new structure regarding the modules. Both how they are invoked in the conf file, the ones available and where the same functionality is found.

I'm using this this to configure under Mac OS X:


./configure \
--with-mpm=prefork \
--enable-layout=ServLog \
--enable-mods-shared=all \
--with-z=/darwinports \
--with-ssl=/darwinports \
--enable-ssl \
--enable-dav \
--enable-cache \
--enable-proxy \
--enable-shared \
--enable-logio \
--enable-suexec \
--disable-static \
--disable-unique-id \
--disable-ipv6

# --enable-auth-ldap


I haven't been able to to get auth-ldap to work yet :-(
As far as I can see, you'll have to explicitly enable ssl in your configure options. Look at ./configure --help

A short introduction can be found here: [httpd.apache.org...]

As to mod_php, that comes from PHP - not Apache; so if you want PHP you'll have to download and install that too.

--enable-mods-shared=all will also mean that you'll have to add a few extra configuration files in conf/extra : dbd , rewrite

[edited by: BjarneDM at 6:44 am (utc) on Sep. 25, 2006]

Mabu

6:29 pm on Sep 25, 2006 (gmt 0)

10+ Year Member



Thanks for the info!

I've figured out that there are a number of modules included in the source dist, but I can't find a clear list of those modules and their functions. Obviously there are other modules that are external, but modules.apache.org is confusing... Any additional resources would be helpful.

BjarneDM

4:41 pm on Oct 9, 2006 (gmt 0)

10+ Year Member



Sorry I'm a bit late in answering - got very busy.

A complete list of the modules included with the source can be found here:
[httpd.apache.org...]
There are a lot of 3rd party modules. Those are the ones found at [modules.apache.org...] - not the ones distributed with the Apache source. They have to be added to Apache in the ways specified by the module authors.

The options to ./configure are explained here:
[httpd.apache.org...]

After you've installed Apache 2.2, you can get a list of the
- compiled in modules : httpd -l
- loaded modules : httpd -M
If you are missing any, you'll have to enable them explicitly as parameters to .configure

Also, when you start Apache, take a good notice of the output from apachectl start and observe carefully what's written in the error_log file.