• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Batch change webalizer and awstats setting for many/all domains

nforde

Basic Pleskian
In Plesk 9 we could do a batch update of lots of domains for particular hosting settings like webalizer and awstats.

Where is this same functionality in Plesk 10?

We have over 300 domains and want to turn off webalizer and awstats for *all* of them.

Obviously we don't want to manually do it 300 times...
 
Try to use following scripts:

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/admin/sbin/webstatmng --unset-configs --stat-prog=webalizer --domain-name=$i; done

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/admin/sbin/webstatmng --unset-configs --stat-prog=awstats --domain-name=$i; done
 
It's a shame that handy (many would say 'required') functionality like that has been dropped since Plesk 9, but thanks for the solution.
 
Back
Top