Awstats on Debian for Website Trackking

February 26, 2008 at 12:27 pm 1 comment

Website traffic trackking is one of the most important tasks for webmaster, hosting company and the related peoples to know the traffic pattern, bandwidth utilization, access information as well as others. Awstats and Webalizer are two common and widely uses software for this purpose. Here i have described configuration of Awstats on Debian.

1) Download the awstats for debian
apt-get install awstats

Two new directory will exists after the installation
– /etc/awstats = configuration directory
– /usr/share/doc/awstats/examples

Create a directory awstats under /usr/local and copy all the files from /usr/share/doc/awstats/examples to /usr/local/awstats.
As well as create the folder wwwroot/cgi-bin and copy awstats.model.conf to here.

Now run It will ask for the location of apache configuration file, domain name and other stuffs. Fill accordingly.
Add this on aliases sections to view images of awstats.

Alias /awstats-icon/ /usr/share/awstats/icon/
<Directory /usr/share/awstats/icon>
Options None
AllowOverride None
Order allow,deny
Allow from all

Now edit /etc/awstats.conf file to change the location of log file and domain name.
Change the permission of log file of access.log under /var/log/httpd/access.log by issuing
chmod o+r access.log

Now issue a command /usr/lib/cgi-bin/ -config=awstats.full-domain-name.conf
Entry the following command in crontab

3,33 * * * * www-data [ -x /usr/lib/cgi-bin/ -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/ -config=full-domain-name -update >/dev/null

Now its works.
check on http://ip of the server/cgi-bin/



Entry filed under: Linux. Tags: , .

Horde/IMP in Linux OpenLDAP as Address Book Server

1 Comment Add your own

  • 1.  |  August 28, 2014 at 7:50 am

    Just wish to say your article is as surprising.
    The clarity in your post is simply great and i can assume you’re an expert on this subject.
    Fine with your permission let me to grab your feed to keep updated with forthcoming
    post. Thanks a million and please keep up the enjoyable work.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

About Me


February 2008
    Mar »

Blog Stats

  • 25,327 hits

%d bloggers like this: