Change the language of webalizer statistics on Debian and Ubuntu Linux

Friday, September 18, 2009 posted by Till

The language of the generated webslizer statistics is statically compiled into the webalizer binary. To change the language, webalizer has to be recompiled. In the following example, I will recompile webalizer to change the language to german.

Uninstall webalizer and install the GD library:

apt-get remove webalizer
apt-get install libgd2-xpm-dev

Download the latest webalizer sources and uncompress the tar archive:

cd /tmp
wget http://archive.mgm51.com/mirrors/webalizer-files/webalizer-2.01-10-src.tgz
tar xzf webalizer-2.01-10-src.tgz
cd webalizer-2.01-10

Reconfigure and compile webalizer

./configure --with-language=german
make
make install

Create a symlink so that other applications find the webalizer binary in the common place

ln -s /usr/local/bin/webalizer /usr/bin/webalizer

Cleanup

rm -f /tmp/webalizer-2.01-10-src.tgz
rm -rf /tmp/webalizer-2.01-10

Thanks to planet_fox for this FAQ.

Be Sociable, Share!



One Response to “Change the language of webalizer statistics on Debian and Ubuntu Linux”

  1. teeshop says:

    Hi,
    this one really does not work. there are sytax errors on this site and the setup creates itself a symlink:

    root@www:/tmp/webalizer-2.01-10# make install
    /usr/bin/install -c webalizer /usr/local/bin/webalizer
    /usr/bin/install -c -m 644 webalizer.1 /usr/local/man/man1/webalizer.1
    /usr/bin/install -c -m 644 sample.conf /etc/webalizer.conf.sample
    rm -f /usr/local/bin/webazolver
    ln -s /usr/local/bin/webalizer /usr/local/bin/webazolver

    Also the folder /man1 does not exist,you must create it yourself.

    But the language did not change at all to german.

    greetz

    teeshop

Leave a Reply