This version of ownCloud requires at least PHP 7.1.0 You are currently running PHP 7.0.33-0+deb9u6. Please update your PHP version

Steps to reproduce

  1. Try to access owncloud
  2. You get an error message
  3. This version of ownCloud requires at least PHP 7.1.0
    You are currently running PHP 7.0.33-0+deb9u6. Please update your PHP version.

Expected behaviour

Tell us what should happen
Owncloud should start

Actual behaviour

Tell us what happens instead
Owncloud replies with an error message
This version of ownCloud requires at least PHP 7.1.0
You are currently running PHP 7.0.33-0+deb9u6. Please update your PHP version.

Server configuration

Operating system:
Debian 9.0 (Stretch

Web server:
apache

Database:
mariadb

**PHP version:**7.0

ownCloud version: (see ownCloud admin page)
10 ?

Updated from an older ownCloud or fresh install:
updated (some time ago)

Where did you install ownCloud from:
deb packages from owncloud website

Signing status (ownCloud 9.0 and above):
not sure

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

not possible

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/…
no

Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
no

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
chrome
Operating system:
win 10

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

The message is very clear. You have to update your PHP version.

Of course the message is clear! But how should I do this? Owncloud is running on Debian Stretch PHP 7.1 is not available on stretch!
On the other hand how could that happen? The only updates I installed were the debian updates. I didn’t touch owncloud.
I could dist-upgrade to buster but im running a postfix mailserver on the same system (I will never do that again) and I don’t want to break that mailserver because of a dist-upgrade.

Is is possible to reeinstall owncloud from the owncloud repo for debian. And keep the database and the user settings? I didn’t use the repo for the original owncloud install.

Thank you for your help!

Hey,

i think you got the new ownCloud version via the Debian updates as well and this new ownCloud version isn’t compatible with your PHP version.

From what i have seen in the past the ownCloud team is announcing such changes / new requirements a long time ahead:

https://doc.owncloud.org/server/10.1/admin_manual/release_notes.html#php-7-0-deprecation-note

Ok. That means debian (not the owncloud repo for debian) is sending me updates for owncloud that are not compatible with the debian version that Iam using???

I can’t believe that, but If it should be true.

How do I get rid of this situation?

Thank you!

Hey,

i think Debian doesn’t include ownCloud server since a few releases.

From what i know ownCloud itself doesn’t do any auto-update so it seems to me that you have either got the update via the owncloud repo for Debian or some one used the built-in updater in ownCloud to update your current ownCloud version to a newer one not compatible with PHP 7.0.

To get rid of this situation i think you could either update to Debian buster (at some point in time you need to do this anyway because Debian stretch will get end of life in the future) or use a 3rdparty repository like https://deb.sury.org/ to get a newer PHP version installed on Debian stretch.

9 posts were split to a new topic: ownCloud PHP upgrade incompatibility