Is it possible to shutdown / restart from the web interface?

Is it possible to shutdown and/or restart Nextcloud from the web interface as an admin? I can’t seem to find this in the docs or menus.

1 Like

fir what purpose ?

The best thing, as nextcloud rely on php, it to restart your aoache2 or nginx deamon.

Beacuse you can’t restart it, it’s just PHP.

OS updates and upgrades. I am looking for terminal access and permission control via the UI.

Sorry I wasn’t clear. I am referring to a dedicated server running NC where SSH access is not a possibility. A full terminal from the UI would be interesting to have in NC, integrated to its permissions / users access controls.

That would be a nice feature for Nextcloud indeed.

But you can install Webmin which has that feature installed.

just keep in mind webmin will be accessible with your browser on a LOCAL network.
The actual 1.890 restric networks.

This is just a matter of configuration.

actually, even if you specificaly set a remote, v 1.890 is broken…

There are other tools for that and for security that is really critical. So in general, you don’t want this in such an application and if you have a dedicated tool for that, you can secure it (only access via VPN or something like that). But the best is still to just use ssh.

Check this for your Server:

If you run Debian:

https://packages.debian.org/stretch-backports/cockpit

Maybe you are looking for something like NextcloudPlus?`It allows you to update, reboot and shutdown your server and much more.

https://ownyourbits.com/nextcloudpi/

I am using Cayenne. Easy to install. Web and app interface.
https://mydevices.com/cayenne/features/

That is clearly out of scope! If you need a shell in your browser, you may check out “Shell in a box”: GitHub - shellinabox/shellinabox: Official-ish Fork of Shell In A Box

To use that with Apache, you need some rewriting rules - for example if you run the service with access on port 4200 and you want to access it at https:///shell/:

RewriteEngine On
RewriteCond %{SERVER_PORT} 443
RewriteRule ^shell/(.*)$ http://localhost:4200/$1 [P,L]
RewriteCond %{SERVER_PORT} 443
RewriteRule ^shell$ https://%{HTTP_HOST}/shell/ [L]