• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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