Get the mod_benchmark archive (mod_benchmark-2.0.tar.gz) and expand it under
a directory (for example /usr/local/) with the commands
# cd /usr/local
# tar xvfz mod_benchmark-2.0.tar.gz
# cd mod_benchmark-2.0
Run ./configure with at least one of these options:
--with-apxs=[path to apxs] (for Apache 1.x) or
--with-apxs2=[path to apxs] (for Apache 2.x)
If you plan to store the indicator values in a Database (see Concepts),
you must enable one of the following Database interface:
--enable-mysql --with-mysqldir=[dir] --with-mysqllib=[dir]
--enable-sybase --with-sybasedir=[dir] --with-sybaselib=[dir]
--enable-pgsql --with-pgsqldir=[dir] --with-pgsqllib=[dir]
--enable-oracle --with-oracledir=[dir] --with-oraclelib=[dir]
Example:
./configure --enable-mysql --with-mysqldir=/usr/include/mysql \
--with-mysqllib=/usr/lib/mysql --with-apxs=/usr/sbin/apxs
Note: if you plan to use a Sybase Database, we strongly recommend the FreeTDS interface (available at
http://www.freetds.org since the standard Sybase API is not multithreaded.
This software has been successfully tested with FreeTDS version 0.61.
Run make install
apxs will copy the module and the related files (mod_benchmark.so, sysstat2, an optional Database module interface
and benchmark_rt) under the Apache module directory.
The LoadModule/AddModule Apache directives will also be added in the Server
Configuration File:
# for Apache 1.x:
LoadModule benchmark_module modules/mod_benchmark.so
AddModule mod_benchmark.c
# for Apache 2.x:
LoadModule benchmark_module libexec/mod_benchmark.so