1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

disable "allow overuse"

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Ali Raza, Oct 9, 2009.

  1. Ali Raza

    Ali Raza Guest

    How I disable "allow overuse" for all 900 domains at once?
  2. GreedyGopher

    GreedyGopher Guest


    You can use the CLI utility for that -- domain_pref with "overuse" option. Here's the guide:

    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