Install and configure webalizer on Ubuntu
- install webalizer
If webalizer is not found, you have to add sources in /etc/apt/sources.list: can comment the universe sources.
sudo apt-get install webalizer
- Enable the apache2 hostname resolution: go into /etc/apache2/apache2.conf: Change
- By default webalizer is not well configured: it does not check in the good log. In /etc/webalizer.conf: Change
- Test webalizer:
If you get a warning like warning: Truncating ...
It is because you did not put the hostnameLookup. If afterward, you get this message, it can be because you are attacked by a virus...
- Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:
and add the line:
sudo crontab -e
With that line, every hour webalizer is run
0 * * * * webalizer