AWStats for one or more domains

Posted on June 23rd, 2008 in Coding, Work by abdallah

The documentation is per http://awstats.sourceforge.net/docs/awstats_setup.html

Here’s quick HOWTO, where I assume you have installed awstats using apt-get or rpm:
Copy the file /etc/awstats/awstats-dist.conf to /etc/awstats/awstats.mydomain.com.conf and changed the domain name there to fit the new site.

Then run the following command:
[root@funinc ~]# perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mydomain.com -update

Awstats creates a new set of files for the new site in its database.

Added the following line to your crontab file:
12 00 * * * perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mydomain.com

basically this will tell awstats to generate a new set of reports for the mydomain.com site daily (at 12 noon!)

Basically that’s it, go to http://mydomain.com/awstats/awstats.pl?config=mydomain.com

Comments are closed.