Unmaintained

This software is unmaintained.



Free Software

Simple Database Logging for Apache

This Apache 1.3.x module was written to solve the problem of logging multiple virtual hosts to a single database. It is intentionally extremely simple.

top
Requirements

To use this module you'll need a copy of Apache, and a machine running a mysql database. The database doesnt' necessarily have to be upon the same host as the webserver, so long as it is possible for a client to connect to it.

If you wish to build the code from source you'll need the Apache development sources for your Linux platform and the mysqlclient development packages too.

For Debian GNU/Linux systems the following command should be sufficient to install the dependencies:

apt-get install apache-dev libmysqlclient10-dev
top
Options

There are only a few configuration options to play with:

DatabaseHostThe hostname of the database server.
DatabaseUserThe username to connect as.
DatabasePassThe password for the given user.
DatabaseNameThe name of the database to connect to.
DatabaseTableThe name of the table to insert entries into.

Sample configuration would look like this:

   LoadModule mod_log_mysql_simple /usr/lib/apache/1.3/mod_log_mysql_simple.so
   <IfModule mod_log_sql_simple.c>
     DatabaseHost  localhost
     DatabaseUser  username
     DatabasePass password
     DatabaseName  apache
     DatabaseTable requests
   </IfModule>

This would require the database table to be already setup as described in the README.

top
Download

Download the source code for this module from the following URL:

top