Update to 13 - "Nextcloud is in maintenance mode"


There are two ways to set Maintenance Mode on or off:

  1. via config.php

    • go to your nextcloud folder and then open config/config.php
    • search for 'maintenance' => true,
    • change true to false
    • save your changes
    • reload your web page
  2. via “occ” command on the command line

    • find out the user which runs the web server (usually www-data, http or apache)
      • if you don’t know how, copy and paste the following command and execute it:
        ps -ef | grep -Ei "apache|nginx" | grep -Ev "grep|root" | awk '{print $1}' | sort | uniq
    • go to your nextcloud folder with cd (example: cd /var/www/nextcloud )
    • as root user run the following command and replace WEBUSER with the username you just discovered:
      sudo -u WEBUSER php occ maintenance:mode --off
      (for example: sudo -u www-data php occ maintenance:mode --off )