Install AWSTATS CentOS

http://docs.cslabs.clarkson.edu/wiki/Install_AWStats_on_CentOS_5

Install RPM FORGE

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Install awstats
yum install awstats

Edit conf file.

nano /etc/httpd/conf.d/awstats.conf

make it look like this, however change the /dir/structure/ to point to the doc root of your web folder you want to generate stats for

Alias /awstats/icon/ /var/www/awstats/icon/

ScriptAlias /awstats/ /var/www/awstats/

DirectoryIndex awstats.pl
Options ExecCGI
order deny,allow
allow from all

edit conf file
nano /etc/awstats/awstats.localhost.localdomain.conf

SiteDomain="www.server.name.com"
HostAliases="aliasa.server.name.com"

move conf files

mv /etc/awstats/awstats.localhost.localdomain.conf /etc/awstats/awstats...conf

set update profile of awstats (default is 1 hr)

/usr/bin/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"

start web service

/etc/init.d/httpd start

test to see if it works
http://www.server.name.com/awstats/awstats.pl?config=www.server.name.com

Comments are closed.