If you use Nextcloud software for your home or professional files storage, the update to the newest version is a very good idea. Use of the latest software versions help us to minimize a risk of unstable behavior of the app and minimize risk of unauthorized access to our private files. It could be a topic to another long text. Maybe next time.
Nextcloud recommend to use PHP version higher than 7.4 and lower than 8.2 but to be honest I currently use 8.2.x and everything works well. The only one issue is last part of upgrade process when I reveive an error:
This version of Nextcloud is not compatible with PHP>=8.2.
You are currently running 8.2.xx.
As mentioned before the Nextcloud fully support PHP 8.2.xx so to fix this "issue" just edit
lib/versioncheck.php
and change version check line
// Show warning if >= PHP 8.2 is used as Nextcloud is not compatible with >= PHP 8.2 for now
if (PHP_VERSION_ID >= 80200) {
http_response_code(500);
echo 'This version of Nextcloud is not compatible with PHP>=8.2.
';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(1);
}
to:
// Show warning if >= PHP 8.2 is used as Nextcloud is not compatible with >= PHP 8.2 for now
if (PHP_VERSION_ID >= 85200) {
http_response_code(500);
echo 'This version of Nextcloud is not compatible with PHP>=8.2.
';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(1);
}
Change the PHP_VERSION_ID to 85200 or similar will let you to use Nextcloud with officialy not supported versions.
Ofcourse you have to check if all applications and plugins works well with your PHP version.
The another issue can be missing database indexes so your will receive a proper message in the Adminitration settings
. The solution is to execute simple command in the Nextcloud directory:
sudo -u www-data php occ db:add-missing-indices
This command just add additional indexes to the database and speedup of searching files.
Nextcloud is a really good software for file sharing, don't have a big hardware requirements and can be use with older PC with additional hard disks for files.