Site Tools


linux:ubuntu:awstats

This is an old revision of the document!


AWStats

Installation

sudo apt-get install awstats

Configuration

Logrotate

Copy this in “/etc/logrotate.d/awstats

/var/log/apache2/*_log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 644 root root
    sharedscripts
prerotate
        /usr/local/awstats/tools/awstats_updateall.pl now > /dev/null
endscript
postrotate
        /etc/init.d/apache2 reload > /dev/null
endscript
}

Troubleshooting

No refs, no OS info

Description:

The list of refs and OS info is empty because of a wrong perl version. Error occurs with perlversion above 5.10.0 Check your version with:

perl -v

Reason:

Perl changed some things which mess up the awstats perl file

Fix:

Controlpanel → useraccounts → useraccounts → useraccountcontrol on or off
Remove the check and ok
Windows will notice that you turned the controls off and you get notifications because you have deactivate it… thanks Windows…

You can deactivate the notifications in controlpanel → security → securitycenter. On the left side select “change the security notificationmethode” and select in the next window “no notifications and no symbol”.

linux/ubuntu/awstats.1446717209.txt.gz · Last modified: 2017/03/01 12:50 (external edit)