This page summarizes how to perform a basic installation of AWStats  on CentOS 5.  This tutorial assumes you are either logged in as root or  have sudo. 
   Install
   Add RPMForge Yum Repository
     Install & Configure Prerequisites
  - Configure Apache to start on boot - /sbin/chkconfig --levels 345 httpd on
 
- Configure iptables to allow Apache traffic - /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
- /etc/init.d/iptables save
- /etc/init.d/iptables restart
 
 Install  & Configure AWStats
  - Modify AWStats Apache Configuration  - Edit /etc/httpd/conf.d/awstats.conf
 
Alias /awstats/icon/ /var/www/awstats/icon/
ScriptAlias /awstats/ /var/www/awstats/
       DirectoryIndex awstats.pl
       Options ExecCGI
       order deny,allow
       allow from all
 - Edit the following lines in the default awstats configuration  file - /etc/awstats/awstats.localhost.localdomain.conf
 
SiteDomain="."
HostAliases=""
 - Rename config file - mv /etc/awstats/awstats.localhost.localdomain.conf  /etc/awstats/awstats...conf
 
- Update Statistics (Note: By default, statistics will be updated  every hour.) - /usr/bin/awstats_updateall.pl now -confdir="/etc"  -awstatsprog="/var/www/awstats/awstats.pl"
 
 Verify Install