Nextcloud docs - upgrading

Upgrading nextcloud

Currently, upgrading nextcloud is a manual process.

sudo -u www-data php /var/www/nextcloud/updater/updater.phar

Log from the process is in /var/www/nextcloud/updater.log

Backups from the upgrade is kept in /var/www/updater-xyz/backups/

Upgrading from php7 to php8

If you are going from a php7 to a php8 environment.

apt install php8.1-curl php8.1-xml php8.1-pgsql php8.1-mbstring php8.1-gd php8.1-redis php8.1-intl php8.1-gmp php8.1-bcmath libapache2-mod-php8.1 php8.1-fpm
a2enmod php8.1
systemctl disable php7.4
systemctl disable php7.4-fpm.service
systemctl enable php8.1-fpm.service --now
a2enmod proxy_fcgi setenvif
a2disconf php7.4-fpm
systemctl restart apache2

Updating .htaccess

This updates the /var/www/nextcloud/.htaccess

cd /var/www/nextcloud/
sudo -u www-data php occ maintenance:update:htaccess