Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to change the service plan for a subscription in Plesk?
Answer
-
Go to Subscriptions and select subscription(s) for which a service plan should be changed.
-
Select a service plan from the drop-down list and click OK.
Connect to the Plesk server via SSH and apply the following steps:
-
to move a subscription to a service plan with the name 'New Plan', run:
# plesk bin subscription --switch-subscription example.com -service-plan "New Plan"
To switch a reseller with the login 'john_doe' to a service plan named 'New Reseller Plan', the following command can be used:
# plesk bin reseller --switch-subscription "john_doe" -service-plan "New Reseller Plan"
-
to switch all domains on a particular service plan to another (Linux only):
Note: The only
OLD_SERVICE_PLAN
andNEW_SERVICE_PLAN
values are subject to change.# export OLD_SERVICE_PLAN="Old_service_plan_name_to_switch_from"
export NEW_SERVICE_PLAN="Service_plan_name_to_switch_to"
# 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
0 comments
Please sign in to leave a comment.