# Version advancement problem

**URL:** <https://help.nextcloud.com/t/version-advancement-problem/217362>\
**Category:** ℹ️ Support\
**Tags:** nc25, raspberrypi\
**Created:** [February 12, 2025, 10:30pm UTC](https://help.nextcloud.com/t/version-advancement-problem/217362 "2025-02-12T22:30:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemo87](https://help.nextcloud.com/letter_avatar/nemo87/32/6_449c533f586939b6e5f246632a46421f.png) [@nemo87](https://help.nextcloud.com/u/nemo87)\
**Post date:** [February 12, 2025, 10:30pm UTC](https://help.nextcloud.com/t/version-advancement-problem/217362/1 "2025-02-12T22:30:50Z")

</div>

I’m trying, following this guide:

[https://docs.nextcloud.com/server/latest/admin\_manual/maintenance/manual\_upgrade.html](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/](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?

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [February 13, 2025, 12:14pm UTC](https://help.nextcloud.com/t/version-advancement-problem/217362/2 "2025-02-13T12:14:06Z")

</div>

Hi @nemo87

> [@nemo87](#):
>
> Could you tell me where/what I’m doing wrong?

You are not doing anything wrong. The message:

> [@nemo87](#):
>
> This version of Nextcloud requires at least PHP 8.0  
> You are currently running 7.4.33. Please update your PHP version

… 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

- [the → **php-updater** ← script](https://help.nextcloud.com/t/php-updater-a-script-to-upgrade-php-in-a-safe-way/180215)

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](https://github.com/nextcloud/server/wiki/Releases-and-PHP-versions). 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

---

<div class="post-metadata">

**Author:** ![nemo87](https://help.nextcloud.com/letter_avatar/nemo87/32/6_449c533f586939b6e5f246632a46421f.png) [@nemo87](https://help.nextcloud.com/u/nemo87)\
**Post date:** [February 16, 2025, 12:01am UTC](https://help.nextcloud.com/t/version-advancement-problem/217362/3 "2025-02-16T00:01:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [May 17, 2025, 12:02am UTC](https://help.nextcloud.com/t/version-advancement-problem/217362/4 "2025-05-17T00:02:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
