Nextcloud update / Upgrade to newest version

To update Nextcloud when automatic updating is disabled in the config.php file from a local machine, you need to use the command line updater (occ upgrade). Here are the steps:
  1. Open a terminal and navigate to the Nextcloud root directory.
  2. Run the following command to start the command line updater:
sudo -u www-data php occ upgrade

To run the occ upgrade command from outside the Nextcloud Docker container named "nextcloud", you can use the docker exec command like this:
sudo docker exec --user www-data nextcloud php occ upgrade
Here's a breakdown of the command:

So, the full command sudo docker exec --user www-data nextcloud php occ upgrade will execute the php occ upgrade command inside the "nextcloud" container as the www-data user, which is the recommended way to perform the Nextcloud upgrade.


Revision #3
Created 2 June 2024 19:50:15 by Danicus
Updated 15 March 2025 23:30:04 by Danicus