Life in code, apps and OS's

Install and configure webalizer on Ubuntu

Posted on: January 16, 2007

 

  1. install webalizer
    sudo apt-get install webalizer

    If webalizer is not found, you have to add sources in /etc/apt/sources.list: can comment the universe sources.

  2. Enable the apache2 hostname resolution: go into /etc/apache2/apache2.conf: Change
HostnameLookups Off

into

HostnameLookups On
  1. By default webalizer is not well configured: it does not check in the good log. In /etc/webalizer.conf: Change
    LogFile         /var/log/apache/access.log.1

    to

    LogFile         /var/log/apache2/access.log
  2. Test webalizer:
    sudo 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…

  3. Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:
    sudo crontab -e

    and add the line:

    0 * * * * webalizer

    With that line, every hour webalizer is run

This tutorial was taken from: http://fontignie.blogspot.com/2006/04/install-and-configure-webalizer-on.html – I do not take any credit for this howto, Im just archiving it for future reference incase the site gets taken down. – Thank you Jacques Fontignie.🙂

4 Responses to "Install and configure webalizer on Ubuntu"

Hi Bobby, I tried to edit apache2.conf , it works by using TEXT editor BUT i can’t save it because of this message…
Could not save the file /etc/apache2/apache2.conf.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.

—————–
FYI,I’m the only one use the PC
Thanks

Hi,

I’d just like to say that enabling HostnameLookups in apache2.conf is a really bad idea. It slows down every single request, and is not necessary.

See here for a better way of displaying hostnames instead of the IPs found in the log files:

http://help.directadmin.com/item.php?id=27

[…] Install and configure webalizer on Ubuntu [Linux] 安裝使用 Webalizer | 小惡魔 Ubuntu Linux […]

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


  • How To Dyndns Ubuntu | Order Goods: […] DynDNS Client Setup on Ubuntu | Life in code, apps and OS’s – May 18, 2008  · 7 Responses to "DynDNS Client Setu
  • lizrandolph10886: Wonderful article! We are linking to this particularly great post on our website.nKeep up the great writing. Click
  • waseem Ahmad: Dear. i have a separate application server and a separate mysql database server. when i want to access the application server to login from the local
%d bloggers like this: