The language of the generated Webalizer 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 ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-08-src.tgz
tar xzf webalizer-2.23-08-src.tgz
cd webalizer-2.23-08

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.23-08-src.tgz
rm -rf /tmp/webalizer-2.23-08

Thanks to planet_fox for this FAQ.

Facebooktwittergoogle_plusredditlinkedinmail
Tagged on:     

One thought on “Change the language of webalizer statistics on Debian and Ubuntu Linux

  • March 11, 2010 at 9:39 pm
    Permalink

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

    [email protected]:/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

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *