PHP8.1 is not supported in NC yet, but some OS's has transitioned to it, leaving PHP7.4/8.0 behind

Any news for php 8.1 support?
I have updated to 23.0.2 now - further waiting for the php 8.1 support

1 Like

Php >= 8.1-support not before NC24. And as of now I even am not sure that NC24 will support php 8.1

1 Like

FYI this the EOL charts for PHP

Hoping NC will support 8.1.x soon, maybe before his EOL ? no !??!

According to your graph, 8.0 will be EOL by the end of 2024 and 8.1by the end of 2025. I am confident that they will make it until then… :wink:

Who knows … :rofl:

7.4 had active support until 28 Nov 2021 which was 6 months ago.
8.0 has active support until 26 Nov 2022 this is 5 months left.

7.4 has security support until 28 Nov 2022 and
8.0 has security support until 26 Nov 2023

So 7.4 runs on security support and 8.0 will do so befor this year ends.

I assume debian and ubuntu will skip php 8.0 completely.

But why is any of this an issue?

  1. as long as you still get security updates for the PHP version you’re using and Nextcloud still supports the corresponding PHP version everything is fine.

  2. Nobody forces you to upgrade immediately just because a new Ubuntu version is out.

  3. …but If you want to upgrade Ubuntu now, you can, because Nextcloud 24 does support PHP 8.1

  4. If you don’t want to upgrade Ubuntu just yet, you don’t have to, because Nextcloud 24 still supports PHP7.4.

  5. If you don’t want to upgrade to Nextcloud 24 just yet, stay on Ubuntu 20.04 for the time beeing.

  6. There is always the possibility to install a specific PHP version manually

As a system admin with a manual installation of Nextcloud, it is your responsibility to check which PHP versions your OS provides and whether your Nextcloud version does support it. Based on this information you can then decide in which order you need to upgrade the OS and the application.

Nextcloud usually supports at least 2-3 PHP versions and with Ubuntu LTS you theoretically only need to upgrade every 4-5 years. So it is more or less guaranteed that there is at least one supported Ubuntu version at any given time that ships a PHP version that is compatible with a Nextcloud version that is still supported. If you don’t want to keep track of such things, I would recommend using an appliance like Nextcloud AIO.


For you nextcloud might be the center of the world and everything revolves around it. So you choose a system to acommodate nextcloud.

That’s not the case here.
I have a system running and nextcloud has to work on it as every other software does.

BTW: From a software deployment point of view, nextcloud is a nightmare:
I upgraded the system and nextcloud stopped working: php was too new.
I trie to upgrade nextcloud to version 24 but that was not possible because neither web nor occ nor updater.phar worked, because: php was too new. There seems to be no way to migrate the database and the data to a newer installation.
In the end I had to backport php 7.4 to debian testing to „rescue“ nextcloud.

Sorry to say, but from a software deployment point of view upgrading a system without checking if all software components are compatible is a nightmare. That’s really not the fault of nextcloud.


You intentionally and explicitly upgraded it with the sudo do-release-upgrade -d. command. The -d option stands for --devel-release and without this option, it it wouldn’t have offerd you an upgrade to 22.04 just yet, because Ubuntu only actively offers a new LTS release after their first point release. Why do you force a release upgrade, if you don’t really want to deal with the implications?

If you hadn’t actually bothered with it and just kept your system up to date regularly by using apt update && apt-dist-upgrade, while updating Nextcloud whenever it offered you a new update, this wouldn’t have happened to you. And at the time when Ubuntu offerd you the release upgrade, everything would have worked, because by then you would have already had Nextcloud 24 installed.


Besides the fact, that update-notification does not work at all in nextcloud¹, that’s not the point.

Yes, I could have avoided the problem if I had updated nextcloud prior to the system-update, but the problem is, that nextcloud can get you quite easily into a situation, where there is practically no way to rescue your data.

Reminds me of “You are holding it wrong!”

¹ I never got one, ever. Others also:
No Email notification about new updates
Test mail works <> Mail notifications don't work

No, you could have avoided the problem by checking what the system-update does and checking all software you rely on for compatibility. If there are compatibility issues you can either postpone the system update or check if there are ways to resolve those compatibility issues, eg with an update.

If you upgrade your internet connection from cable to fiber you would also check first if your current router/modem/whatever is able to use the new connection or if you need to buy something different, wouldn’t you? You can’t blame your old router for not supporting the new connection.

But nevertheless, I’m glad you resolved the problem and have again a working nextcloud installation.


I’m repeating myself, but this is exactly why there are appliances like the Snap Package or Nextcloud AIO that are based on container technologies. They come with all the dependencies preconfigured in containers, so you don’t have to worry about them as an end user. But if you decide to install and configure all the components yourself, you also have to maintain them yourself afterwards. Nextcloud is of course not perfect and there is always room for improvement but in this specific case there is not much the Nextcloud developers could have done to avoid this.