To remove maintenance mode from Nextcloud » History » Version 1
Gareth Eaton, 09/18/2023 12:51 PM
1 | 1 | Gareth Eaton | h1. To remove maintenance mode from Nextcloud, you can follow these steps: |
---|---|---|---|
2 | |||
3 | |||
4 | To remove maintenance mode from Nextcloud, you can follow these steps: |
||
5 | |||
6 | 1. **Access Your Server:** You will need access to your Nextcloud server either through SSH or a direct terminal connection. |
||
7 | |||
8 | 2. **Navigate to the Nextcloud Directory:** Use the command line to navigate to the directory where Nextcloud is installed. This might be something like: |
||
9 | |||
10 | cd /var/www/nextcloud |
||
11 | |||
12 | |||
13 | Replace `/var/www/nextcloud` with the actual path to your Nextcloud installation. |
||
14 | |||
15 | 3. **Disable Maintenance Mode:** To disable maintenance mode, you can use the Nextcloud command-line interface (occ). Run the following command: |
||
16 | |||
17 | |||
18 | sudo -u www-data php occ maintenance:mode --off |
||
19 | |||
20 | Replace `www-data` with the user your web server uses to run PHP if it's different on your server. |
||
21 | |||
22 | 4. **Clear Caches:** After disabling maintenance mode, it's a good practice to clear the cache to ensure that the changes take effect: |
||
23 | |||
24 | sudo -u www-data php occ maintenance:repair |
||
25 | |||
26 | |||
27 | 5. **Restart Web Server:** To make sure everything is applied correctly, you can restart your web server. The command to do this may vary depending on your server setup. For example, on Apache, you can use: |
||
28 | |||
29 | sudo service apache2 restart |
||
30 | |||
31 | |||
32 | On Nginx: |
||
33 | |||
34 | |||
35 | sudo service nginx restart |
||
36 | |||
37 | |||
38 | Use the appropriate command for your web server. |
||
39 | |||
40 | Once you've completed these steps, your Nextcloud instance should be out of maintenance mode, and users should be able to access it as usual. |
||
41 | |||
42 | Please note that it's important to be cautious when making changes to your Nextcloud instance, especially when it's in maintenance mode, as some updates or configurations may require extra attention or troubleshooting. Always make backups before making significant changes. |