Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to change the Service Plan for a Subscription in Plesk?
Answer
- Log in to Plesk.
-
Go to Subscriptions and select subscription(s) for which the service plan should be changed.
-
Select a service plan from the drop-down list and click OK.
- Connect to your Plesk server via SSH (Linux) / RDP (Windows Server).
-
Use the
plesk bin subscriptionutility.Examples:
-
To assign a subscription to a service plan with the name 'New Plan', run:
# plesk bin subscription --switch-subscription example.com -service-plan "New Plan"
-
(Linux only) To assign all domains under a particular service plan to another service plan (Linux only):
Note: Change the values of
OLD_SERVICE_PLANandNEW_SERVICE_PLANto actual names.# export OLD_SERVICE_PLAN="Default Domain"
# export NEW_SERVICE_PLAN="Unlimited"
# plesk db -e "select domains.name from domains join Subscriptions join PlansSubscriptions join Templates where domains.id=Subscriptions.object_id and Subscriptions.id=PlansSubscriptions.subscription_id and PlansSubscriptions.plan_id=Templates.id and Templates.name='${OLD_SERVICE_PLAN}'" -Ns | while read dom ; do echo -e "'Processing ${dom}: Changing \"${OLD_SERVICE_PLAN}\" to \"${NEW_SERVICE_PLAN}\"..."; plesk bin subscription --switch-subscription ${dom} -service-plan "${NEW_SERVICE_PLAN}"; done
-
Comments
Please sign in to leave a comment.