• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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