Update problem owncloud 10.13 to nextcloud 25

I’m updating the apps, when I go to give the command: sudo php ./occ upgrade I get this message:

This version of Nextcloud is not compatible with › PHP 7.2. ‹br/›You are currently running 7.4.33.

I currently have php 7.4 installed, (nextcloud 25) I’m migrating from owncloud…
could you tell me how to solve it?

Hi, note php7.2 is without support, actually is php8.3. Therefore, would you suggest to setup fesh install with nextcloud 30.0.4 (php8.3). Otherwise you´ll got problems with updates. It´s my own expirience, hat very long time nextcloud 25, then I´ve got problems with some apps and updates.
Good luck!

yes, as soon as I have completed the migration I will do the updates, only that to complete the migration I have to update the apps, and updating them gives me this error, I don’t know what to do,
owncloud only works with php 7.4, to perform the migration I installed nextcloud 25, it is clear that once the process is completed I will update to the current version of nextcloud with php 8

I´d some trobble, upgrade php7.4 to php8.3 because, it´s possible you have missed moduls, then nextcloud is down. My suggestion is o.m. setup new instance (nextcloud 30.0.4) with enought drive space, then make a golden-backup (in worst case, you have the instance).
I drive my Nextcloud in Virtualbox on Ubuntu24.04 and I make frome time time an apliance export in .ova format. This format can you import in virtualbox on windows, linux and macos; I´ve try it and it works.
One disadvantage of my procedure, you need some drivespace.

I would also follow your advice, the problem is that I can’t access either nextcloud (12.0.12) or owncloud (10.13), I get this error:

This Version of nextcloud is Not compatible with > PHP 7.2.
You are currently Running 7.4.33

I have never had php 7.2 installed, I tried to uninstall and reinstall php but I always get this message…

Nextcloud 12 indeed does not support PHP 7.4

You are migrating to the wrong version though. You need to migrate from owncloud 10.13 to Nextcloud 25(!) (which does support PHP 7.4).

This might help: Migrating from ownCloud — Nextcloud latest Administration Manual latest documentation

I installed nextcloud 25 and gave the commands for the migration again, when I give the command:

pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ upgrade

Cannot write into “config” directory!

This can usually be fixed by giving the web server write access to the config directory.

But, if you prefer to keep config.php file read only, set the option “config_is_read_only” to true in it.

See Configuration Parameters — Nextcloud latest Administration Manual latest documentation

same thing if I type:

pi@raspberrypi:/var/www/nextcloud $ sudo php ./occ upgrade

An unhandled exception has been thrown:

OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

from browser instead:

Mistake

Can’t write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.