• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved How to hide shutdown link in settings?

King555

Regular Pleskian
I just upgraded to Plesk Onyx 17.8 (from 17.5) and now I have a "Shutdown server" link under "Tools & settings". How can I hide this? It's very risky for me, because I have to pay a lot if I shutdown the server accidentally and my provider has to manually restart it.

The first link under "Plesk" in "Tools & settings" ("Settings for custom view") is not the solution, there I already disabled the shutdown button.

Please note that all mentioned setting names may differ in the English version of Plesk, because I translated them from the German version for this posting.
 
Hi,

It is only disabled in the Power User view if you do it over Settings for custom view, as the admin in service provider view should always have full access to all the tools:
How to hide server management buttons like Restart and Shut Down in Plesk

As a workaround, you can install the extension "Hide Custom Buttons", to add custom CSS code to the panel:

So basically:
  1. Download the Extention to your PC: Plesk Help Center
  2. Login over SSH to the server
  3. Edit the /usr/local/psa/admin/conf/panel.ini file
  4. Add there:
    Code:
    [ext-catalog]
    extensionUpload = true
  5. Login to Plesk panel
  6. Go to Extensions > My Extensions > Upload Extension
  7. Upload the extension that you did download in step 1 and press OK
  8. Go back to SSH and edit the file /opt/psa/admin/htdocs/modules/hide-maincustombuttons-maindashboard/global.css or /usr/local/psa/admin/htdocs/modules/hide-maincustombuttons-maindashboard/global.css
  9. Replace or add there the content with:
    Code:
    #buttonShutdownServer {
      display: none !important;
    }

Before:
upload_2019-1-4_14-30-44.png
After:
upload_2019-1-4_14-31-26.png

If you want to hide the reboot too add to the code:
Code:
#buttonRebootServer {
display: none !important;
}

for reference:
How to remove Custom Buttons section in Plesk?
How to install Plesk extension?

Best Regards,
 
Last edited:
Thanks, that worked!

I edited the panel.ini with the extension "Panel.ini Editor". For the future it would be nice if also the CSS file could be edited within the "Hide Main Custom Buttons Section" extension.
 
For the future it would be nice if also the CSS file could be edited within the "Hide Main Custom Buttons Section" extension.

This extension "Hide Main Custom Buttons Section" was a quick script just to make the changes to the CSS update proof.
As the "Hide Main Custom Buttons Section" is not an official extension, there is also no further changes planned on it.

I was done with the intent of avoiding editing the /usr/local/psa/admin/htdocs/theme/css/custom.css file as it may lose the configuration on some update.

Best Regards,
 
I just installed the new Plesk version (fresh install) and I wanted to use this little extension again. Unfortunately the download link does not work anymore. Is it possible to restore the extension from my old server? Is there a file I could download and upload to the new Plesk installation?
 
Hi King555!

I've created a small helper extension that allows you to easily add/modify global CSS and JS rules (see attachment ext-global_v1.0.0-1.zip).

1) Download the extension and upload within your Plesk instance (see description above)
2) Add your CSS rules to this file: /usr/local/psa/admin/htdocs/modules/global/global.css (same procedure for JavaScript - file global.js)

That's it. Have success!
 

Attachments

  • ext-global_v1.0.0-1.zip
    2.6 KB · Views: 26
Back
Top