Change the language of webalizer statistics on Debian and Ubuntu Linux

Last Updated on April 18, 2021 by admin

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.

Leave a Comment