Version advancement problem

I’m trying, following this guide:

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html

To upgrade the version from nextcloud 25 (after switching from owncloud) to 26
I downloaded the zip file from here:
https://download.nextcloud.com/server/releases/

unpacked, I renamed the old nextcloud folder to nextcloud-old and copied the new folder to /var/www, once I had done this from the previously renamed folder I copied the data folder and the config.php file, but when I give the command:
pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ upgrade
I receive:
This version of Nextcloud requires at least PHP 8.0
You are currently running 7.4.33. Please update your PHP version
I see this instead:
This version of Nextcloud requires at least PHP 8.0
You are currently running 7.4.33. Please update your PHP version.
if I try to start nextcloud from web…
Could you tell me where/what I’m doing wrong?

Hi @nemo87

You are not doing anything wrong. The message:

… is really clear, isn’t it?

You have to upgrade php to at least 8.0 for it to work.

If your pi is running on a debian derivative, then you can use

to easily migrate the current version 7.4 to a higher one.

Nextcloud 16 requires at least php8.0 and can be run with php8.2 at most. So I would recommend you to switch 7.4 to 8.2, so you can then update to the current Nextcloud version, without further php upgrade.


Much and good luck,
ernolf

with php 8.0 it starts now but I get this error:

  • Can’t write into config directory!This can usually be fixed by giving the webserver write access to the config directory.
    if I give the command:
    sudo chmod 750 /var/www/nextcloud/config

  • Configuration was not read or initialized correctly, not overwriting /var/www/nextcloud/config/config.php
    As I had already said, I copy the config.php file from the nextcloud-old folder