Occ Upgrade > This version of ownCloud is not compatible with PHP 7.3


#1

I’ve been trying to upgrade Owncloud 8.2.11 to v10.0.10. (Tried to upgrade to v9.0.11 with same result),

When using php occ upgrade command shell states that:

This version of ownCloud is not compatible with PHP 7.3
You are currently running PHP 7.3.1.

Owncloud is running on a managed server which provides several PHP versions. From server backend I can choose which PHP version sholud be used, which i set to 7.1. PHP 7.3.1 is the highest version installed on the server.

It looks like upgrade script ignores that and only search for highest PHP version. Is it possible to ignore the php version check on update?


#2

You have to make sure that the command line interface of php (php-cli) also runs on php-7.1


#3

Thank you very much.
Worked like a charm.

For anyone else who might have the same issue. This website helped me to change php version used in shell:
https://xtracode.me/how-to-change-php-version-in-shell/