Webalizer language in Debian

Discussion in 'Installation/Configuration' started by Davide, Nov 18, 2010.

  1. Davide

    Davide Member


    I have found a lot of old information about Debian webalizer and stats language, saying the only way to change language is compiling from sources. Even it's an entry on FAQ:


    I have researched a little about it, and found that you don't need to compile webalizer for generating stats on your language

    Debian webalizer uses gettext, so it will generate statistics on the default locale of your system.

    With Debian > 4.0 (etch), you can change your locale with:

    update-locale LANG=es_ES.UTF-8
    You can momentarily force generation in another language simply changing your LANG env var:

    export LANG=es_ES.UTF-8; webalizer -c xxxx
    More info:


    I'm sure Debian's stock webalizer + ISPConfig2 are generating statistics in spanish on my server, only having spanish as default system's locale.

    I'm not sure about ISPConfig3. Will try it this night.

    P.S. Please, edit or delete that entry on FAQ, it's guiding users by a hard and no necessary way :)
    Last edited: Nov 20, 2010
  2. Davide

    Davide Member

    After a little investigation, I've found I'm getting spanish statistics on my ISPConfig2 installation because of the following:

    # cat /etc/environment
    /etc/environment is sourced by login and no login shells, so it's sourced too in cron jobs

    So, if you want webalizer statistics to be generated in your language, just add a LANG definition to your locale into this file.

Share This Page