Top articles and links related to Tradebit:

Facebook Integration

Converting files

Affiliate program



Top Sellers on Tradebit

Games Charts
Free Game Trials to download

Sound Effects
One of the largest sound collections on the planet!

Service Manual
Our huge PDF manual collection has more than 30,000 files for your car, bike or electronic device.



Apache Logging into MySQL

On a huge demand of our merchants, I have finished the advanced logging features of Tradebit today. The problem with logging in our case is, that we have serveral thousand merchants hosting files they offer for free and they sell. The statistics for the files on sale is simple, because we can count that with the sales entries. But for the free files, we can NOT dig through serveral text files on different cluster nodes.

The solution: Apache logs with MySQL!

In order to do that, you must follow these steps (on Linux):

  1. install the module for Apache, if not already done
  2. create a central database with the appropriate table (you can switch on “auto” in the module config, which does that for you)
  3. add the lines for logging in your apache httpd.confs

My setup looks like this:

[root@w1 root]# ll /etc/httpd/modules/mod_log*
-rwxr-xr-x    1 root     root        28969 Mar 14  2005 /etc/httpd/modules/mod_log_sql_mysql.so
-rwxr-xr-x    1 root     root        62256 Mar 14  2005 /etc/httpd/modules/mod_log_sql.so
and

[root@w1 root]# grep SQL /etc/httpd/conf/httpd.conf
 LogSQLTransferLogTable access_log
 LogSQLTransferLogFormat AbHhMmRSsTUuv
 

It is important, that you test out the logging manually, before you restart the servers! Log into the database from remote like OutOfOrder shows it in the documentation!

 

del.icio.us Facebook StumbleUpon

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image


spacer spacer spacer
sell downloads, mp3, software sell downloads
Member Login
  Password lost?   Sign up
endGrey
Browse Files Publish/Sell My Purchases Forum Blog Help About
Shopping Cart:
now in your cart
cart (0)
Items