Install awstats web site statistics on Fedora

First install awstats with RPM or from the Add/Remove Software menu.

Configure Awstats

Then run the following command to configure awstats

sudo /usr/share/awstats/tools/awstats_configure.pl

You will be prompted to:

  1. supply the path to your /etc/httpd/conf/httpd.conf file.
  2. want to create a new config file? y
  3. name the config: mydomain.com
  4. path to the config file: /etc/awstats

Automate updating the awstats

Finally I added the following to a script file usage.sh and called it from a cron entry every week:

#!/bin/sh

perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=myconfig -update

perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=myconfg -output -staticlinks > awstats.myhost.html

To see the stats go to the URL:

http://localhost/awstats/awstats.pl?config=slyfoxsos

or

http://localhost/awstats/awstats.pl?config=web3us.com

 

Subject