apt-get install awstats
# repeat the configuration process for each domain you want to monitor
/usr/share/doc/awstats/examples$ perl awstats_configure.pl

set /awstats-icon/ and restart apache:

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

Edit the awstats' domain configuration file you just created /etc/awstats/awstats.full-domain-name.conf to have LogFormat=1. Default "LogFormat=4" does not show Browsers, OS, keywords, etc. Do make sure that the parameter SiteDomain has a value of the domain tomonitor.

program run:

chmod o+r /var/log/apache/access.log
#/usr/lib/cgi-bin/awstats.pl -config=awstats.full-domain-name.conf

online view: http://full-domain-name/cgi-bin/awstats.pl?config=full-domain-name

cron job:

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

prerotate job:

/var/log/apache/*.log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 644 root adm
    sharedscripts
    prerotate
    /usr/lib/cgi-bin/awstats.pl -config=ghaint.no-ip.org -update
    endscript
    postrotate
    if [ -f /var/run/apache.pid ]; then \
    if [ -x /usr/sbin/invoke-rc.d ]; then \
    invoke-rc.d apache reload > /dev/null; \
    else \
    /etc/init.d/apache reload > /dev/null; \
    fi; \
    fi;
    endscript
}