The binary distribution that comes with Red Hat Linux includes the mod_auth_db.so module, and is enabled in the sample httpd.conf. To get started with these scripts, add the text in Example 1 to httpd.conf.
If you build your own Apache from sources, here are some notes on how to build and enable the DB module.
You first unpack the archive, then change into the directory (chdir), and run the "configure" script with some options. Then you issue commands to compile and install the httpd daemon and associated files.
The simplest form of the configure command for our purposes would be:
This causes the DB authentication module to be built as a shared object.
You can see all available switches with the command configure --help. If you want to install Apache in a nonstandard place, then check out the options.
The Apache project (at www.apache.org) has excellent online documentation to explain the meaning of the configuration switches. A full copy of the documentation in HTML form is included in a standard Apache installation, too.
The remaining commands are the ever-popular:
If it's your first time through, then the make install step will install completely new configuration files. If Apache is already installed on your system, the command will not overwrite your carefully tuned files. In this case, after installing take a look at the new httpd.conf.default file. It will have new lines that look like this:
If you're upgrading your existing installation youîll need to add these lines to your httpd.conf file to get it to load the new module. --BW