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

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