View Single Post
  #7  
Old 27th May 2006, 02:15
funkyade funkyade is offline
Junior Member
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by feanor
Hi, I've built a script and a template config file for awstats to work automatically with ispconfig/apache2. Just put it in a cron job and let it do the work. It works for me, though I don't use any authentication for the stats themselves.
Also, it needs a template file for awstats.
Last, you need to add a couple of lines in your apache2.conf file to create a logfile that can be used by awstats properly:

-----
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" virtual_combined

# Add this log file for use with Awstats
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/awstats_access_log /var/log/httpd/awstats_access_log_%Y_%m_%d" virtual_combined
-----

Use it at your own risk :-)

Konstantinos
This script looks great!

Just one question, how do I use it?

Do I need to edit the paths inside the script?

I get errors regarding 'localhost' when I run it from the command-line.

cheers...

Last edited by funkyade; 27th May 2006 at 02:18.
Reply With Quote