I carelessly upgraded the Nextcloud installation on my shared server account on Bluehost to NC version 22. Bluehost does not support MySQL version 8 for accounts with shared hosting. This rendered the NC version 22 upgrade inoperable. For my original install I used setup-nextcloud.php. Unfortunately this installer script is hard coded to grab only the latest NC version.
To roll back to NC version 20 using setup-nextcloud.php I performed the following -
- Navigated to https://download.nextcloud.com/server/releases/ and found the latest NC 20 that is version: 20.0.13.
- Changed the following line of code in setup-nextcloud.php
$error .= Setup::getFile(‘https://download.nextcloud.com/server/releases/’.NC_VERSION.’.zip’,'nc.zip’);
$error .= Setup::getFile(‘https://download.nextcloud.com/server/releases/latest-20.zip’,'nc.zip’);
- FTP’d the revised installer to my hosted server and installed NC version 20 without issue.