# Debian 9 PHP version too old for Nextcloud 16

**URL:** <https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973>\
**Category:** ℹ️ Support\
**Created:** [May 26, 2019, 5:08pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973 "2019-05-26T17:08:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![schnappi](https://help.nextcloud.com/letter_avatar/schnappi/32/5_5575768a8748004e209b776fc1b2916d.png) [@schnappi](https://help.nextcloud.com/u/schnappi)\
**Post date:** [May 26, 2019, 5:08pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/1 "2019-05-26T17:08:29Z")

</div>

Debian 9 PHP version (7.0.33-0+deb9u3) too old for Nextcloud 16. If Nextcloud 16 can reduce PHP version requirement that would be helpful.

---

<div class="post-metadata">

**Author:** ![stratege1401](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratege1401/32/7570_2.png) [@stratege1401](https://help.nextcloud.com/u/stratege1401)\
**Post date:** [May 26, 2019, 5:21pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/2 "2019-05-26T17:21:19Z")

</div>

false …

php7.2 available.  
php7.3 available.

You just need to update.

Nextcloud don’t need to reduce requirement, you need to update to newer/stronger/secure php version.

as simple as:

apt-get install php7.2 php7.2-common php7.2-cli php7.2-fpm

check if version is well installed

php -v  
should get

PHP 7.2.x ( i used 7.3, dont know witch 7.2 is latest )

a2dismod php7.0  
php7.0 extinction

a2enmod php7.2  
php7.2 enabling

service apache2 restart

Be sure check installed **PHP modules** or reinstall them all  
apt-get install libapache2-mod-php7.2 php7.2-cgi php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pspell php7.2-readline php7.2-soap php7.2-xml

of course, some twitching for the ini will be needed  
/etc/php/7.x/apache2/php.ini  
/etc/php/7.x/cgi/php.ini  
/etc/php/7.x/fpm/php.ini  
/etc/php/7.x/mods-available/php.ini

---

<div class="post-metadata">

**Author:** ![schnappi](https://help.nextcloud.com/letter_avatar/schnappi/32/5_5575768a8748004e209b776fc1b2916d.png) [@schnappi](https://help.nextcloud.com/u/schnappi)\
**Post date:** [May 26, 2019, 5:38pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/3 "2019-05-26T17:38:50Z")

</div>

The usual pleasant response from the Nextcloud community.

Debian 9 Stretch does not have PHP 7.2 in official repository.

[https://packages.debian.org/stretch/php](https://packages.debian.org/stretch/php)

PHP 7.2 can be installed but it is done using repositories other than official.

---

<div class="post-metadata">

**Author:** ![stratege1401](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratege1401/32/7570_2.png) [@stratege1401](https://help.nextcloud.com/u/stratege1401)\
**Post date:** [May 26, 2019, 5:43pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/4 "2019-05-26T17:43:15Z")

</div>

false.

Backport in sourcelist.

---

<div class="post-metadata">

**Author:** ![stratege1401](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratege1401/32/7570_2.png) [@stratege1401](https://help.nextcloud.com/u/stratege1401)\
**Post date:** [May 26, 2019, 5:45pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/5 "2019-05-26T17:45:41Z")

</div>

to mitagate my answer, this is normal, 7.2 is not a real package, as it is now 7.3  
[https://tracker.debian.org/pkg/php7.3](https://tracker.debian.org/pkg/php7.3)

---

<div class="post-metadata">

**Author:** ![schnappi](https://help.nextcloud.com/letter_avatar/schnappi/32/5_5575768a8748004e209b776fc1b2916d.png) [@schnappi](https://help.nextcloud.com/u/schnappi)\
**Post date:** [May 26, 2019, 5:59pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/6 "2019-05-26T17:59:54Z")

</div>

@stratege1401 is right about backports. Some don’t use backports though for the same reason that use Debian.

On another note the Nextcloud community (both here and GitHub) is usually like this, curt and rude, for those reading this in the future. It’s the MO of the project and its disappointing.

---

<div class="post-metadata">

**Author:** ![danb35](https://help.nextcloud.com/letter_avatar/danb35/32/5_5575768a8748004e209b776fc1b2916d.png) [@danb35](https://help.nextcloud.com/u/danb35)\
**Post date:** [May 26, 2019, 6:51pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/7 "2019-05-26T18:51:13Z")

</div>

> [@schnappi](#):
>
> usually like this, curt and rude,

But “please rewrite your work to be compatible with an unsupported version of PHP for perceived compatibility with my distribution” is perfectly acceptable. And despite having received a correct answer within an hour, you complain about the tone.

---

<div class="post-metadata">

**Author:** ![stratege1401](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratege1401/32/7570_2.png) [@stratege1401](https://help.nextcloud.com/u/stratege1401)\
**Post date:** [May 27, 2019, 1:13pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/8 "2019-05-27T13:13:54Z")

</div>

no time to be gentle, nice and used a flowrish language here or in any forum. Fast, acurate and next. You can’t take a quick normal answer with a pre-engineered solution, too bad !!!

you ask to have a php 7.0 support, witch is no more planned due to obsolescence:  
Current Stable PHP 7.3.5, old stable is 7.2.19.

Does nextcloud need to address now deprecated php, why not. So, what about having php 5. or even php 3.2 or even older … see my point.  
I prefer nextcloud to focus on real-live php support !

Php7.0 is not even any more available or supported on [php.net](http://php.net) …

Maybe you need a special window 3.1 update ?? \<-- Just in case you feel my arsh tone here, this is a joke.

---

<div class="post-metadata">

**Author:** ![schnappi](https://help.nextcloud.com/letter_avatar/schnappi/32/5_5575768a8748004e209b776fc1b2916d.png) [@schnappi](https://help.nextcloud.com/u/schnappi)\
**Post date:** [May 27, 2019, 9:29pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/9 "2019-05-27T21:29:12Z")

</div>

The Nextcloud community at their finest above…

It is total oversight to release software that doesn’t take Debian Stable into account.

---

<div class="post-metadata">

**Author:** ![stratege1401](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratege1401/32/7570_2.png) [@stratege1401](https://help.nextcloud.com/u/stratege1401)\
**Post date:** [May 27, 2019, 10:49pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/10 "2019-05-27T22:49:19Z")

</div>

In a few weeks, the actual Debian stable will become the old-stable. My bet is on July 2019. The 17th maybe… Clearly around.

---

<div class="post-metadata">

**Author:** ![MeiRos](https://help.nextcloud.com/user_avatar/help.nextcloud.com/meiros/32/8211_2.png) [@MeiRos](https://help.nextcloud.com/u/MeiRos)\
**Post date:** [May 27, 2019, 11:11pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/11 "2019-05-27T23:11:54Z")

</div>

Official repos are many times years behind. When I started to use linux, I didn’t want to use any other repos than officials. Finally I got tired to wait new versions and started to use other repos too. That was propably the best decision I have made in the world of Linux.

---

<div class="post-metadata">

**Author:** ![schnappi](https://help.nextcloud.com/letter_avatar/schnappi/32/5_5575768a8748004e209b776fc1b2916d.png) [@schnappi](https://help.nextcloud.com/u/schnappi)\
**Post date:** [May 27, 2019, 11:51pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/12 "2019-05-27T23:51:02Z")

</div>

Arch is my desktop. One doesn’t use Arch for servers.

---

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [May 28, 2019, 7:40am UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/13 "2019-05-28T07:40:52Z")

</div>

> [@MeiRos](#):
>
> best decision

my best decision was to start using docker. (to get out of this distro/package dilemma.)

---

<div class="post-metadata">

**Author:** ![yostral](https://help.nextcloud.com/letter_avatar/yostral/32/5_5575768a8748004e209b776fc1b2916d.png) [@yostral](https://help.nextcloud.com/u/yostral)\
**Post date:** [May 28, 2019, 8:10am UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/14 "2019-05-28T08:10:11Z")

</div>

Why not Arch for server ? I manage my own server with nextcloud and other services for few years, and it’s on Arch. No problem at all.

It’s better to use the system you know, the one you use daily, than another one you don’t really know and you complain about.

---

<div class="post-metadata">

**Author:** ![MeiRos](https://help.nextcloud.com/user_avatar/help.nextcloud.com/meiros/32/8211_2.png) [@MeiRos](https://help.nextcloud.com/u/MeiRos)\
**Post date:** [May 28, 2019, 8:42am UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/15 "2019-05-28T08:42:13Z")

</div>

I need to learn to use docker first. I know only some basic things about docker. But you’re right. It feels very handy. Maybe it will be my best decision. 😉

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [May 28, 2019, 9:07am UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/16 "2019-05-28T09:07:56Z")

</div>

> [@stratege1401](#):
>
> no time to be gentle, nice and used a flowrish language here or in any forum. Fast, acurate and next.

One’s high self-esteem should neither lead to bending the facts nor to ignoring the [NC Community Guidelines](https://nextcloud.com/code-of-conduct/)

> [@stratege1401](#):
>
> false …
> 
> php7.2 available.  
> php7.3 available.
> 
> You just need to update.

This seems to be debatable …

1. [php7.0 - Debian Package Tracker](https://tracker.debian.org/pkg/php7.0)
2. [php7.1 - Debian Package Tracker](https://tracker.debian.org/pkg/php7.1)
3. [php7.2 - Debian Package Tracker](https://tracker.debian.org/pkg/php7.2)
4. [php7.3 - Debian Package Tracker](https://tracker.debian.org/pkg/php7.3)

AFAIK there is PHP 7.0 for Debian 9 stable and PHP 7.3 in [buster (testing)](https://packages.debian.org/buster/php) but no stretch-backports.

Politeness could help, I presume.

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [May 28, 2019, 9:18am UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/17 "2019-05-28T09:18:14Z")

</div>

> <https://github.com/nextcloud/server/issues/12021>

One may refer to the a.m. issue for _background information_ on the **PHP evaluation** in the Nextcloud team.

---

<div class="post-metadata">

**Author:** ![alfred](https://help.nextcloud.com/letter_avatar/alfred/32/5_5575768a8748004e209b776fc1b2916d.png) [@alfred](https://help.nextcloud.com/u/alfred)\
**Post date:** [May 28, 2019, 4:21pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/18 "2019-05-28T16:21:16Z")

</div>

The culprits in this case are the people at Debian who made Ondrej Sury refrain from creating backports of newer PHP releases for Debian Stretch. Here you can read more about it:

[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893700](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893700)  
[https://lists.debian.org/debian-backports/2013/12/msg00057.html](https://lists.debian.org/debian-backports/2013/12/msg00057.html)

Anybody complaining that PHP 7.0 which is EoL and Debian Stable not providing something newer through backports (even if the person does all the PHP packaging for Debian and Ubuntu!) should “thank” the Debian folks for not having anything newer available on their repositories. I am not really impressed by them throwing people who could do it under the bus.

---

<div class="post-metadata">

**Author:** ![mjanssens](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mjanssens/32/8529_2.png) [@mjanssens](https://help.nextcloud.com/u/mjanssens)\
**Post date:** [May 28, 2019, 5:44pm UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/19 "2019-05-28T17:44:05Z")

</div>

This is why I keep my current system on NC 15 for now, until Debian Buster is released.  
It’s great that a platform as Nextcloud gives it’s users this choice: running a major version branch which matches your configuration, within support.

Perhaps as a side note for postgresql users on Debian Stretch, when upgrading to Buster:  
[https://www.debian.org/releases/testing/amd64/release-notes/ch-information.en.html#postgresql-reindex](https://www.debian.org/releases/testing/amd64/release-notes/ch-information.en.html#postgresql-reindex)

---

<div class="post-metadata">

**Author:** ![Floreal](https://help.nextcloud.com/letter_avatar/floreal/32/5_5575768a8748004e209b776fc1b2916d.png) [@Floreal](https://help.nextcloud.com/u/Floreal)\
**Post date:** [May 30, 2019, 10:25am UTC](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973/20 "2019-05-30T10:25:10Z")

</div>

Nextcloud 15.x is still supported, you can still use it in debian 9. It’s normal that newer version of Nextcloud are done with currently supported php versions. Debian is not linux, I don’t think it should be taken in account more than orther linux distro. If you say it’s used a lot for servers… Centos 7 also and it has still php 5 in official repos, so… ? 😉

[Next page](https://help.nextcloud.com/t/debian-9-php-version-too-old-for-nextcloud-16/53973.md?page=2)
