## Restore the database.
## Set permissions and ownership to binaries directory structure.
# Now do the usual upgrade process (i.e. via the browser GUI). The upgrade "should" complete successfully. ‘’’DO NOT’’’ '''DO NOT''' login to Nextcloud yet.
# Copy the original “index.php” and “version.php” files from the "known" location in to the “owncloud” directory, replacing the existing copies (this will overwrite the modified version.php).
# After the copying of the PHP files, restart the Apache server or reboot.