Installing Webalizer on Ubuntu (Gusty)
Webalizer is a nice application that can give you plenty of stats about your web server(s)
Read about more great tips at http://install-use-ubuntu.gotdns.com/category/how-to/
Now on to the process!
Run:
root@blaster:~# apt-get install webalizer
There was a problem with webalizer looking in the wrong place for my Apache logs.
root@blaster:~# webalizer
Webalizer V2.01-10 (Linux 2.6.22-14-386) locale: en_US.UTF-8
Error: Can't open log file /var/log/apache2/access.log.1
root@blaster:~# vi /etc/webalizer/webalizer.conf
My apache log file is in access.log, not access.log.1. Make that change and then fire off webalizer. (run /usr/bin/webalizer)
root@blaster:~# webalizer
Webalizer V2.01-10 (Linux 2.6.22-14-386) locale: en_US.UTF-8
Using logfile /var/log/apache2/access.log (clf)
Using default GeoIP database
Creating output in /var/www/webalizer
Hostname for reports is 'blaster'
History file not found...
Generating report for June 2008
Generating summary report
Saving history information...
673 records (11 ignored) in 3.00 seconds, 224/sec
Now open your browser to: http://install-use-ubuntu.gotdns.com/webalizer (or http://localhost/webalizer ...your hostname)
I would suggest adding /usr/bin/webalizer to cron daily to keep the information up to date and if you forget, your logs may roll and you may lose valuable information.
run: crontab -e and put in the last line for webalizer. I am running it at 1:05am each morning.
root@blaster:~# crontab -l
# m h dom mon dow command
30 2 * * * /usr/bin/do_rsync
5 1 * * * /usr/bin/webalizer
About the Author
Unix/Linux Specialist from way back. More helpful tips here!
http://install-use-ubuntu.gotdns.com
The Importance of Good Caravan Repairs
14 years ago
No comments:
Post a Comment