How to change language in Awstats?

Refers to:

  • Plesk for Windows
  • Plesk for Linux

Created:

2016-11-16 13:18:51 UTC

Modified:

2016-12-21 20:26:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change language in Awstats?

Question

How to change the Awstats statistics page language?

To change the statistics page language for the exact domain

  1. Open configuration file:

    Linux:

    /usr/local/psa/etc/awstats/awstats.domain.tld-http.conf

    Windows:

    %plesk_dir%\\Additional\\AWStats\\wwwroot\\cgi-bin\\domain.tld.conf

    set the Lang="auto" parameter to desired language:

    Albanian=al
    Bosnian=ba
    Bulgarian=bg
    Catalan=ca
    Chinese (Taiwan)=tw
    Chinese (Simpliefied)=cn
    Croatian=hr
    Czech=cz
    Danish=dk
    Dutch=nl
    English=en
    Estonian=et
    Euskara=eu
    Finnish=fi
    French=fr
    Galician=gl
    German=de
    Greek=gr
    Hebrew=he
    Hungarian=hu
    Icelandic=is
    Indonesian=id
    Italian=it
    Japanese=jp
    Korean=ko
    Latvian=lv
    Norwegian (Nynorsk)=nn
    Norwegian (Bokmal)=nb, Polish=pl
    Portuguese=pt
    Portuguese (Brazilian)=br
    Romanian=ro
    Russian=ru
    Serbian=sr
    Slovak=sk
    Slovenian=si
    Spanish=es
    Swedish=se
    Turkish=tr
    Ukrainian=ua
    Welsh=cy

    or update all the conf files:

    # sed -i 's/Lang="auto"/Lang="de"/g' /usr/local/psa/etc/awstats/*
  2. Regenerate statistics data by executing the following command:

    Windows:

    "%plesk_bin%\\"statistics.exe --generate-domain-webstat domaint.tld

    Linux:

    /usr/local/psa/admin/bin/statistics --generate-domain-webstat --domain-name domaint.tld

To change the statistics page language for all new domains.

  1. Edit the following configuration file:

    Windows:

    %plesk_dir%\\Additional\\AWStats\\wwwroot\\cgi-bin\\awstats.model.conf

    Linux:

    /etc/awstats/awstats.conf
  2. Then run the command to regenerate statistics data:

    Windows:

    "%plesk_bin%\\"statistics.exe --generate-all-webstat

    Linux:

    /usr/local/psa/admin/bin/statistics --generate-all-webstat
Have more questions? Submit a request
Please sign in to leave a comment.