• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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