- Install awstats package
- Edit a file called /etc/awstats/awstats.hostname.conf where hostname is the hostname. Put something like this in it:
LogFile="/var/log/apache/access.log"
LogFormat=1
DNSLookup=1
DirData="/var/cache/awstats/"
DirCgi="/cgi-bin"
DirIcons="/icon"
SiteDomain="hostname"
AllowToUpdateStatsFromBrowser=1
AllowFullYearView=3 - Make a directory called /var/cache and chmod it 777 so it can be used from the web server
- Copy icons to web directory:
cp -r /usr/share/awstats/icon /var/www/icon
- Run this to update databases:
/usr/lib/cgi-bin/awstats.pl -config=hostname -update
- In your web browser, go to the url:
http://hostname/cgi-bin/awstats.pl?config=hostname
- Study the stats in quiet awe
- Edit crontab to update stats automatically every night:
crontab -e
0 1 * * * /usr/lib/cgi-bin/awstats.pl -config=hostname -update
Blog by abdza. Open Source, Computers, Gadgets, Life, Love and everything in between.
Thursday, April 3, 2008
Setting up awstats in ubuntu
Finally my server at abdullahsolutions.com has awstats after delaying to install it for so long. The steps I follow were found at here http://www.petersblog.org/node/697 . Here they are:
Subscribe to:
Post Comments (Atom)
Is Blogging No Longer a Thing?
As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...
-
My blogs' name is High-Tech Rojak but I don't recall ever talking about food. So here's a first. Just recently I got some free t...
-
Yesterday went to Low Yat to buy my cousin a sub RM 1500 notebook. Of course with that kind of price tag it would have to be a netbook jelah...
-
I have been suffering from sleep apnea for quite a few years already. It started to show when I was still with OSCC some 6 years back when I...
No comments:
Post a Comment