Debian package libapache-mod-log-sql
Xen VPS servers
We provide xen hosting on our hight end servers, on which we provide our open source control panel with free setup and support on instant messenging (MSN, Yahoo, Skype, ICQ & AIM). These are available in many countries places Singapore, Australia, USA (California and Florida), Paris, London, Barcelona, Israel, etc.
Dedicated servers

Find out how to get one of the best dedicated server hosting services available on the market. Have a 160GBytes transfer per month server for only $90 a month !
Get one and start reselling.
CALL NOW ! +1.(302)-213-1611
Shared hosting
Shared hosting service with certified bandwidth, your own IP addresses + SSL + CERT for the same site hosted on both sides of the ocean : YES ! GPL.Host makes it possible for less than $5.5/month !

2. Which version to use

MySQL client lib version:

mod_log_sql_mysql uses the mysql C API, as well as mod_php for apache. They both link against the same library using the same function name. Because of that, they have to be both linked against the same libmysqlclient, otherwise apache will crash. This is absolutly normal, and the authors of both php and mod_sql are not to be blamed.

Our debian repository:

Use the closest mirror next to you (florida or singapore):

deb stable main
deb stable main

For this reason, you have to take a particular care about what version to use according to your setup. First, the "old" version of mod_log_sql for woody is still there. Inside our repository you will find both libapache-mod-log-sql and libapache2-mod-log-sql that are for apache 1.3 and apache 2. Those modules have been compiled using MySQL 4.0, which means libmysqlclient12. If you are using MySQL 4.1, you have to recompile it yourself otherwise apache will segfault. Please take care, even if libmysqlclient12 is installed, you can still compile using libmysqlclient14-dev (or the other way arround) and thus produce a non working binary. Note that in current Debian Sarge, it's using libmysqlclient12.

If you are installing from previous DTC version, you might have a package libapache-mod-log-sql2 installed. We switched back to libapache-mod-log-sql and libapache-mod-log-sql-mysql, so you must remove it before you upgrade.

Also, note that you can't use the "normal" mod_log_sql with the new version of DTC (version 0.17.0-R4 and above) because DTC uses new apache directives for real time bandwidth monitoring. You have to use the pached version from GPLHost.

We hope our patch will be integrated in upstream version of mod_log_sql.

Source version:

If you want our patched version of mod_log_sql source code only, it's there:

You can also use our Git master repository command:

git clone

Then simply cd in the directory just created and type dpkg-buildpackage (note: make sure you did apt-get install build-essential). This will produce the necessary debian package. Note that there is also libapache2-mod-log-sql that you can checkout if you are using apache2.

BSD users

Bsd users should simply drop the following scoreboard patch files in /usr/ports/www/mod_log_sql2/files:
patch-mod_log_sql.c - patch-mod_log_sql.h
Then a simple "make install" will install this scoreboard patched version for you. You might need after to add the following directives to your /usr/local/etc/apache/httpd.conf:
LoadModule log_sql_module     libexec/apache/
LoadModule log_sql_mysql_module libexec/apache/

Gentoo users

Gentoo users should follow the following howto: