# Nextcloud upgrade not allowed : PHP not supported

**URL:** <https://forum.yunohost.org/t/nextcloud-upgrade-not-allowed-php-not-supported/27783>\
**Category:** Support apps\
**Tags:** french, english\
**Created:** [December 28, 2023, 8:57am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-not-allowed-php-not-supported/27783 "2023-12-28T08:57:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FugazziPL](https://forum.yunohost.org/user_avatar/forum.yunohost.org/fugazzipl/32/398_2.png) [@FugazziPL](https://forum.yunohost.org/u/FugazziPL)\
**Post date:** [December 28, 2023, 8:57am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-not-allowed-php-not-supported/27783/1 "2023-12-28T08:57:30Z")

</div>

Hello every one. 🙂

### My YunoHost server

**Hardware:** online server  
**YunoHost version:** 11.2.9.1  
**I have access to my server :** Through the webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : i don’t think so  
**If your request is related to an app, specify its name and version:** :  
YNH\_APP\_CURRENT\_VERSION: 25.0.6~ynh1  
YNH\_APP\_ID: nextcloud  
YNH\_APP\_INSTANCE\_NAME: nextcloud  
YNH\_APP\_INSTANCE\_NUMBER: ‘1’  
YNH\_APP\_MANIFEST\_VERSION: 27.1.4~ynh1  
YNH\_APP\_PACKAGING\_FORMAT: ‘1.0’  
YNH\_APP\_UPGRADE\_TYPE: UPGRADE\_APP  
YNH\_ARCH: amd64  
YNH\_CWD: /var/cache/yunohost/app\_tmp\_work\_dirs/app\_jj5qfmns/scripts  
YNH\_DEBIAN\_VERSION: bullseye  
YNH\_INTERFACE: api  
YNH\_STDRETURN: /tmp/tmp1f3cbsue/stdreturn  
error: “Une erreur s’est produite durant l’ex\xE9cution du script de mise \xE0 niveau  
\ de l’application”  
interface: api  
operation: app\_upgrade  
parent: null  
related\_to:

- 
  - app
  - nextcloud  
success: false

### Description of my issue

First, i should say thank you for your time. 🙏

I tried to run an upgrade of my Nextcloud Instance 25.0.6 to 27.1.4 but it failed. Logs say

> datadir=/home/yunohost.app/nextcloud/data  
> 2023-12-28 09:26:11,465: DEBUG - + ‘[’ UPGRADE\_APP == UPGRADE\_APP ‘]’  
> 2023-12-28 09:26:11,546: INFO - [#############+…] \> Upgrading Nextcloud…  
> 2023-12-28 09:26:11,546: DEBUG - + source upgrade.d/upgrade.last.sh  
> 2023-12-28 09:26:11,547: DEBUG - ++ next\_version=27.1.4  
> 2023-12-28 09:26:11,547: DEBUG - ++ nextcloud\_source\_sha256=bec65f2166b82c9303baf476c1e424f71aa196dad010ffe4c0c39d03990d594c  
> 2023-12-28 09:26:11,547: DEBUG - + last\_version=27.1.4  
> 2023-12-28 09:26:11,547: DEBUG - + last\_major\_version=27  
> 2023-12-28 09:26:11,547: DEBUG - + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data  
> 2023-12-28 09:26:13,830: DEBUG - + exec\_occ -V  
> 2023-12-28 09:26:13,833: DEBUG - + ‘[’ 25 = last ‘]’  
> 2023-12-28 09:26:13,834: DEBUG - + ‘[’ 25 -ge 24 ‘]’  
> 2023-12-28 09:26:13,834: DEBUG - + NEXTCLOUD\_PHP\_VERSION=8.2  
> 2023-12-28 09:26:13,834: DEBUG - + cd /var/www/nextcloud  
> 2023-12-28 09:26:13,834: DEBUG - + ynh\_exec\_as nextcloud php8.2 --define apc.enable\_cli=1 occ --no-interaction --no-ansi -V  
> 2023-12-28 09:26:13,834: DEBUG - + local user=nextcloud  
> 2023-12-28 09:26:13,835: DEBUG - + shift 1  
> 2023-12-28 09:26:13,835: DEBUG - ++ whoami  
> 2023-12-28 09:26:13,835: DEBUG - + [[nextcloud = root]]  
> 2023-12-28 09:26:13,835: DEBUG - + sudo -u nextcloud php8.2 --define apc.enable\_cli=1 occ --no-interaction --no-ansi -V  
> 2023-12-28 09:26:13,929: DEBUG - This version of Nextcloud is not compatible with PHP\>=8.2.  
> You are currently running 8.2.14.+ ynh\_exit\_properly

So, i went see my tools on my webadmin interface. I can see this versions :

- php 7.4 [(Why ? O\_o)](https://www.php.net/supported-versions.php)
- php 8.0 (again, why ? O\_o)
- php 8.1 (ok)
- php 8.2 (good)

No php 8.3.

I went on Nextcloud website to look, and [PHP 8.2 should work](https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html). Like 8.1 or 8.3.

Bonus question : Should i deactivate old PHP versions ?

Thank you again for your time. 🥰

---

<div class="post-metadata">

**Author:** ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)\
**Post date:** [December 28, 2023, 9:06am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-not-allowed-php-not-supported/27783/2 "2023-12-28T09:06:30Z")

</div>

You should try to update to Nextcloud 26.0.10 first. (there is a bug that should be fixed hopefully soon when trying to update from 25 to 27/28 version)

```auto
sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/oldstable

```

---

<div class="post-metadata">

**Author:** ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)\
**Post date:** [December 28, 2023, 9:08am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-not-allowed-php-not-supported/27783/3 "2023-12-28T09:08:08Z")

</div>

> [@FugazziPL](#):
>
> Bonus question : Should i deactivate old PHP versions ?

It depends on the applications you have installed on your server.  
Each application installs its own version of PHP

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [January 12, 2024, 9:08am UTC](https://forum.yunohost.org/t/nextcloud-upgrade-not-allowed-php-not-supported/27783/4 "2024-01-12T09:08:31Z")

</div>

Closed on January 12, 2024, 9:08am UTC

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