How to change expirarion date for all subscriptions to unlimited?

Refers to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Windows
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Created:

2016-11-16 13:05:21 UTC

Modified:

2016-12-21 19:55:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change expirarion date for all subscriptions to unlimited?

Symptoms

How to set expiration date for all subscriptions to unlimited in back end?

Resolution

You can do it using command line as below:

For Windows:

  1. Retrieve domain names from database

    cd %plesk_dir%
    cd MySQL/bin/
    mysql -uadmin -p -P8306 psa -Ne"select name from domains where webspace_id=0;" > С:\\webspaces_list.txt
  2. Run the following command to set expiration date of all subscriptions to unlimited:

    for /f %i in (C:\\webspaces_list.txt) do "%plesk_cli%\\subscription_settings.exe" -u %i -expiration -1

For Linux:

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select name from domains where webspace_id=0;" | grep -v "name" > /tmp/webspaces.list
# while read l; do /usr/local/psa/bin/subscription_settings -u $l -expiration -1; done < /tmp/webspaces.list
Have more questions? Submit a request
Please sign in to leave a comment.