• 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

disable "allow overuse"

A

Ali Raza

Guest
How I disable "allow overuse" for all 900 domains at once?
 
Hi,

You can use the CLI utility for that -- domain_pref with "overuse" option. Here's the guide:
http://download1.parallels.com/Plesk/PPP9/Doc/en-US/plesk-9.2-unix-cli/index.htm?fileName=37982.htm

List of all domain for script you can get, for instance, from the "domains" table in plesk database.

Something like this should get the job done in one command:

mysql -Ns -uadmin -p<plesk_admin_password_here> psa -e "select name from domains" | awk '{printf("/usr/local/psa/bin/domain_pref --update %s -overuse block\n", $1)}' | sh
 
Back
Top