• 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.

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