==== Nextcloud Upgrades ====
Nextcloud is hosted on a VM at nextcloud.socs.uoguelph.ca. It consists of the following components:
* Nginx webserver
* php-fpm fastcgi extension
* /srv/nextcloud folder for application code
* /srv/nextclouddata is an nfs share from the SoCS central file server with Nextcloud data
Note: All php commands must be run from /srv/nextcloud folder as the nextcloud user
=== To Upgrade ===
* Put Nextcloud into maintenance mode sudo -u nextcloud php occ maintenance:mode --on
* Stop the nginx server systemctl stop nginx
* Download the next major or a point release, which can be found from Download Now on https://nextcloud.socs.uoguelph.ca/settings/admin/overview
* Extract the archive to a temporary location
* Correct the file permissions with: chown -R nextcloud:nextcloud nextcloud
find nextcloud/ -type d -exec chmod 750 {} \;
find nextcloud/ -type f -exec chmod 640 {} \;
* Copy the current versions config.php file to the newly extracted folder
* Back up the current /srv/nextcloud folder (rename to nextcloud-version) and copy the temp folder to /srv/nextcloud
* Run the php upgrade script sudo -u nextcloud php occ upgrade
* Start the nginx server systemctl start nginx
* Disable maintenance mode sudo -u nextcloud php occ maintenance:mode --off
* Review the admin overview page for any security options or settings that must changed/fixed. https://nextcloud.socs.uoguelph.ca/settings/admin/overview