• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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