Customizing the User Interface
Since Plesk 7.5.3, in addition to the limits you impose on resource usage, you can restrict user access to specific interface elements of the Plesk control panel. This way you can disallow the control panel users to use the features you don’t want them to use. The users will not even know about them, because you will hide them.
You can choose to hide a set of buttons (such as those related to accessing My.Plesk.com services or all buttons that are grayed out because service is unavailable/not installed), or individual controls on specific screens.
Note
You should not rely on the control hiding capabilities for security, and disable sensitive features by other means existing in Plesk instead of or in addition to hiding controls.
Hiding and Unhiding Individual Interface Elements
-
Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- Select the Show interface management toolbar
check box and click OK. The toolbar will
appear in the bottom right frame.
- Navigate through the control panel to the screen that shows
the interface elements you want to hide/unhide.
- Click the Customize button on the toolbar
to enable the customization mode.
-
Click on the interface element that you want to hide or
show. A drop-down menu will open.
- At this step,
- to hide the element from all control panel users including
yourself, select the Hide option,
- to hide the element from all users except yourself,
select the Admin only option,
- to make the element visible to the users who would normally
be able to see it, select the Show option,
- to discard any customizations you made to the selected
element, select the Default option.
- Click the OK button on the toolbar to submit
the settings. The toolbar will be closed and you will exit
the customization mode.
Hiding and Unhiding Grayed out Buttons
For each service that is not installed in the server’s operating system and therefore is not manageable through the control panel, Plesk shows a grayed out icon and the appropriate message in the context help tips area of the navigation pane.
If you do not want Plesk to show any grayed out controls,
- Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- Select the Hide all grayed out controls by default
check box and click OK.
To make Plesk show the grayed out controls,
- Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- Clear the Hide all grayed out controls by default
check box and click OK.
Hiding and Unhiding Sets of Buttons
If you do not want your customers to access the domain registration and other services provided by My.Plesk.com, you can hide all MPC related control panel elements in a few clicks.
To hide or unhide the controls,
- Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- In the Button sets group, select/deselect the check boxes corresponding to the services you wish to disallow (or allow).
- Click OK to submit the changes.
Hiding and Unhiding from Users the Limits and Permissions
Management Controls They Are Not Allowed to Operate
To hide or unhide from the control panel users all permission management controls that they cannot operate,
- Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- Select/deselect the check box labeled 'Hide from users the
permission management controls they are not allowed to operate'.
- Click OK.
To hide or unhide from the control panel users all resource limit management controls that they cannot operate,
- Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- Select/deselect the check box labeled “Hide from users the limit management
controls they are not allowed to operate”.
- Click OK.
Super Administrative Overrides
The super administrator (root) can define a set of controls that are never shown in Plesk control panel, even to a user with administrative privileges (and even in the Customization mode). To do this,
- Customize the interface through the Plesk control panel.
- Create an empty file with name root.controls.lock and place
it in the directory /usr/local/psa/var/.
- Login to the MySQL database server and retrieve the values describing the state of the hidden controls.
# mysql -uadmin -Dpsa –p
mysql> select page, control from ControlVisibility;
+-------------------------+-------------+
| /server/server.php3 | key_info |
+-------------------------+-------------+
- Add these values to the /usr/local/psa/var/root.controls.lock
file separating them with colons:
/server/server.php3:key_info
- Save the file.
The values you put into this file will override the customizations made through the control panel.
Exporting Your Customization to Other Plesk Servers
To export your customization settings,
- Click the Server shortcut in the navigation
pane, and then click the Interface Management
icon in the Control panel group.
- Click the Export button. A shell script
will be generated and you will be prompted to specify the
location where the downloaded file should be saved.
- Once downloading is completed, upload this file to the Plesk server to which you wish to import the customization settings.
- Run this script as root on the Plesk server. This will import the data into Plesk database, completely overwriting any interface customization settings previously made.
Note
The super-administrative overrides are not exported, but the “Hide all grayed out controls by default” setting and button set states are.