• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

AWStats - regenerate config files

Alban Staehli

Regular Pleskian
Hi,

I followed the following KB to allow country to be identified via GeoIP in AWStats: http://kb.odin.com/en/3080
It works well on one of my domain, but I had to disable first the stats through PLESK Admin, then to reactivate it, so it would regenerate the conf file in /usr/local/psa/etc/awstats/* for a particulair domain.
I then followed this KB to re-calculate all stats with country identification: http://kb.odin.com/en/115476
It works as well.

But now: How can I regenerate all the conf file in /usr/local/psa/etc/awstats/* ? Is there any magic command?

Thx for your help.
 
You can regenerate these configs with

# /usr/local/psa/admin/bin/webstatmng --set-configs --stat-prog=awstats --domain-name=domain.com

Or use this script for all your domains:

#for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/admin/bin/webstatmng --set-configs --stat-prog=awstats --domain-name=$i; done
 
Back
Top