Install mod_log_sql

wordpress Hosting

wget http://www.outoforder.cc/downloads/mod_log_sql/mod_log_sql-1.101.tar.bz2
bunzip
tar -xvf
cd

/configure –with-apxs=/usr/local/apache/bin/apxs –with-MySQL=/usr
make
make install

mysql -u root -p
mysql> create database apachelog;

Configuring Apache to log to MySQL using mod_log_sql in httpd.conf

LoadModule log_sql_module /usr/local/apache/libexec/mod_log_sql.so
LoadModule log_sql_mysql_module /usr/local/apache/libexec/mod_log_sql_mysql.so


Cpanel Hosting