Upgrade to Nextcloud 18 manually

Upgrade to Nextcloud 18 manually

You don’t want to wait any longer? No worries – just upgrade to Nextcloud 18 manually. But backup your server first! Then switch into the privileged user mode:

sudo -s

Change your directory:

cd /var/www

Move your current Nextcloud folder:

mv nextcloud nextcloud17

Download the new (latest) Nextcloud release:

wget https://download.nextcloud.com/server/releases/latest.tar.bz2

Extract the binaries and remove the download:

tar -xjf latest.tar.bz2 -C /var/www && chown -R www-data:www-data /var/www/ && rm -f latest.tar.bz2

Copy your Nextcloud configuration back:

sudo -u www-data cp nextcloud17/config/config.php nextcloud/config/

Perform the upgrade to Nextcloud 18:

sudo -u www-data php /var/www/nextcloud/occ upgrade

Finally optimize your Nextcloud database:

sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
sudo -u www-data php /var/www/nextcloud/occ db:convert-filecache-bigint

Congrats, you are on Nextcloud 18 already!

My twins, my wife and me do really appreciate any donation!
My twins, my wife and me do really appreciate any donation!

Carsten Rieger

Carsten Rieger is a senior system engineer in full-time and also working as an IT freelancer. He is working with linux environments for more than 15 years, an Open Source enthusiast and highly motivated on linux installation and troubleshooting. Mostly working with Debian/Ubuntu Linux, Nginx and Apache web server, MariaDB/MySQL/PostgreSQL, PHP, Cloud infrastructure (e.g. Nextcloud) and other open source projects (e.g. Roundcube) and in voluntary work for the Dr. Michael & Angela Jacobi Stiftung for more than 7 years.