AWStats for one or more domains

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
(you may need to find the awstats.pl script, on debian /usr/lib/cgi-bin/awstats.pl)

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!)

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

The apache configuration for debian:

Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch

Similar Posts:




No Comments


You can leave the first : )