Here is a full guide for linux in a few very simple steps :
first you will need a shell access, the most popular program is putty (ssh emulator) download one if you dont have it, login as a root user and folow the instructions:
1) you need to install awstats, the best way to install it is using awstats rpm, so run this command first.
# wget http://easynews.dl.sourceforge.net/sourceforge/awstats/awstats-6.4-1.noarch.rpm
if you want to use other version of rpm find url first and replace this one.
2) to install run this command
# rpm -ivh awstats-6.4-1.noarch.rpm
3) then you will need to setup awstats_configure.pl run:
# cd /usr/local/awstats/tools
and
# ./awstats_configure.pl
i)It will ask for domain name
ii) press enter as default path will be /etc/awstats
4) vi /etc/awstats/awstats.www.yourdomain.com.conf
LogFormat:”%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-agent}i\”” combined
CustomLog:
Update frombrowser=1
5) Restart httpd
6) update stats using
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.yourdomain.com
7)add the above command in cron to update automatically
8)http://domain.com/awstats/awstats.pl?config=www.yourdomain.com
Hi,
Excellent.Nice knowledge sharing. Thanks for same.
Comment by Rahul — November 19, 2009 @ 11:15 pm