Upgrade Marketplace Nextcloud Install To Debian 11
I tried to upgrade my Linode with Nextcloud from the Marketplace to Debain 11 and it did not go well. After the upgrade all I saw when I went to my Nextcloud was the PHP config page and nothing else.
Is there a way to do this? Also does Linode provide a way to do upgrade their Marketplace installs to a newer OS version?
Thank you for your help!
✓ Best Answer
Marketplace Apps are handy installation tools to get a fresh configuration on a new server up and running quickly. They are not currently designed to perform upgrades, but I'll be happy to pass along feedback to the team.
The version of NextCloud installed by the Marketplace App for NextCloud at the time of this writing (Feb 4, 2022) is 23.0.1 - 184.108.40.206.
The software versions this version of NextCloud uses are:
- mysql 10.3.31
- PHP 7.3.31-1-deb10u1
I examined an older installation of NextCloud (21.0.7 - 220.127.116.11) and found it was using the same software versions.
Took me a few hours, but I was able to recreate the problem and recover. I needed to use a third party repository that provides PHP 7.3 for Debian 11.
I had to follow the instructions here to install PHP 7.3:
- https://www.itzgeek.com/how-tos/linux/debian/how-to-install-php-7-3-7-2-7-1-on-debian-10-debian-9-debian-8.html (it worked for Debian 11, be extra diligent about changing the PHP version numbers from what they show in the examples.)
I then had to install the missing PHP modules necessary for NextCloud:
apt install php7.3-gd php7.3-curl php7.3-mbstring php7.3-intl php7.3-imagick php7.3-xml php7.3-zip
I had to enable PHP 7.3 in Apache:
a2enmod php7.3 a2dismod php8.1 a2dismod php7.4 systemctl restart apache2