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

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?

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

1 Like

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:

can anyone tell me what to put in Termnal to fix issue

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get install php7.1

sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm

sudo a2dismod php7.2

sudo a2enmod php7.1

sudo service apache2 restart
1 Like