Friday, April 23, 2010

AWStats: how to get stats from Apache on Fedora 10


as root: yum install awstats

to build the the stats:
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost.localdomain -update

Your stats are now available at
http://localhost/awstats/awstats.pl?config=localhost.localdomain

If you need to see the stats not only from your server but from others pc simply edit
/etc/httpd/conf.d/awstats.conf

and replace
Allow from 127.0.0.1
with the ip addresses of your clients or
Allow from all
to open the stats to all ip addresses.

To update the stats just schedule the command as root
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost.localdomain -update
with cron or Gnome Schedule