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/

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:
  4. path to the config file: /etc/awstats

Automate updating the awstats

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


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

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

To see the stats go to the URL: