• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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