Question
How to manage subscription permissions and resources on Plesk Web Admin Edition?
Answer
By design, all subscriptions created on Plesk Web Admin edition are assigned to Admin Simple service plan. Despite the fact that Service Plans tab is not visible, it is possible to manage Admin Simple service plan via the command line and via Tools & Settings > Custom View Settings.
If another Plesk edition was previously used on the server, the following operations might be useful:
- Assign all subscriptions to admin user:
# for i in $(plesk bin subscription --list); do plesk bin subscription --change-owner $i -owner admin; done
- Switch all subscriptions to Admin simple service plan:
# for i in $(plesk bin subscription --list); do plesk bin subscription --switch-subscription $i -service-plan 'Admin simple'; done
- Unlock all subscriptions:
# for i in `MYSQL_PWD=\`cat /etc/psa/.psa.shadow\` mysql -u admin psa -sNe"select name from domains where webspace_id=0"`; do /usr/local/psa/bin/subscription --unlock-subscription $i; done
Note: Admin simple service plan permissions (but not resources) can be managed via Tools & settings > Custom view settings.
- Set all resources of Admin simple plan to unlimited:
# plesk bin service_plan -u "Admin Simple" -max_dom_aliases -1 -disk_space -1 -disk_space_soft -1 -max_traffic -1 -max_traffic_soft -1 -max_box -1 -mbox_quota -1 -max_wu -1 -max_subftp_users -1 -max_db -1 -max_maillists -1 -max_webapps -1 -max_subdom -1 -max_site -1
- Sync all subscriptions with the service plan after resource update:
# for domain in `MYSQL_PWD=\`cat /etc/psa/.psa.shadow\` mysql -u admin psa -sNe"select name from domains where webspace_id=0"`; do /usr/local/psa/bin/subscription --sync-subscription $domain; done
Comments
0 comments
Please sign in to leave a comment.