Upgrade Marketplace Nextcloud Install To Debian 11
Hello,
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!
2 Replies
✓ 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 - 23.0.1.2.
The software versions this version of NextCloud uses are:
- Apache/2.4.38
- mysql 10.3.31
- PHP 7.3.31-1-deb10u1
I examined an older installation of NextCloud (21.0.7 - 21.0.7.0) 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
Thank you for the feedback! Now I know what I did wrong for sure. I might just go with a build it myself version then so I have the full control and it will help me learn it all better.