• Quickly disable/enable Owncloud maintenance mode using command line


Using the occ command we can control Owncloud in many ways. Very useful for situations where you can’t access the web frontend due to a broken upgrade or application.

The occ command is available from Owncloud 7 and later.

To disable maintenance mode, from the ownCloud root folder we run:

sudo -u "webuser" ./occ maintenance:mode --off

And to turn it on we use:

sudo -u "webuser" ./occ maintenance:mode --on

This article was last modified: May 31, 2016, 1:51 p.m.


Please log in to leave a comment.

Add or change tags.

A comma-separated list of tags.


Hacker News