Why does updater not check PHP version before updating?

Steps to reproduce

  1. visit your installation of previous ownCloud version
  2. Update to 10.3.2
  3. Find this error message:

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

Expected behaviour

The updater tells upfront that the installed PHP version is not sufficient

Actual behaviour

It simply blocks my installation and leaves me with no way of reverting to the previous checkpoint (I don’t have console access to my webspace)

Is there any way to restore the previous checkpoint only with browser and/or replacing files?

Server configuration

Operating system:

Web server:
Apache with FPM/FastCGI


PHP version:

ownCloud version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):
doesn’t work because of error message

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.


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/…

Are you using encryption: yes/no

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

Client configuration

Browser: Firefox 75

Operating system:
Windows 10 1909


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) ...


i did the following search: https://github.com/owncloud/updater/search?q=check+php&type=Issues and found the following feature requested to the updater app developers:

From what i know you currently have two possibilities:

  1. Update PHP to a newer version (which i personally would prefer) to keep the most recent ownCloud version
  2. Upload the older ownCloud version via FTP and keep the older ownCloud release with a few known issues / bugs already fixed in 10.4.0.
1 Like

Thanks for looking up the existing issue.

I found what I believe to be the checkpoint data in ./data/updater-data/checkpoint

Can’t I simply use that data and copy it into the existing installation?

I fully agree to your question “Why does updater not check PHP version before updating?”
I updated php to the version that is necessary for oC 10.4. All seems to be ok but nevertheless the update fails. It would have been very bad for me without a complete backup of the oC-directory.


Thank you for looking upto this issue.
My update was also failing.


Note also that each PHP version is only supported for 3 years (https://www.php.net/supported-versions.php). It should be a good practice to update this roughly once a year so you are safe.

1 Like