• 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

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