Nextcloud shows wrong php version

I’m using a cubitruck wirt armbian (debian stretch).

root@cubietruck:~# update-alternatives --config php
Auswahl Pfad Priorit�t Status

  • 0 /usr/bin/php7.4 74 automatischer Modus
    1 /usr/bin/php7.0 70 manueller Modus
    2 /usr/bin/php7.2 72 manueller Modus
    3 /usr/bin/php7.4 74 manueller Modus

php7.4 is activated, but Nextcloud shows me:
This version of Nextcloud requires at least PHP 7.2
You are currently running 7.0.33-14+0~20191218.25+debian9~1.gbpae1889. Please update your PHP version.

What’s going wrong ???

By the way, I’m on NC15 and try to update to 16.03 or 18

Nothing is going wrong here, but you’re mixing-up two different things. In general two different PHP components are involved here, the web server and the command line component. You’ve only tested the command line (CLI) component. You need to update the web component now too to align both versions.

OK, now it seems I’m totally lost.
I have removed all php files with
‘apt autoremove php’
after reboot I have reinstalled php7.4

php-info in webbrowser shows me:
PHP logo

PHP Version 7.4.1

System Linux cubietruck 4.19.62-sunxi #5.92 SMP Wed Jul 31 22:07:23 CEST 2019 armv7l
Build Date Dec 18 2019 15:03:01
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/7.4/apache2
Loaded Configuration File /etc/php/7.4/apache2/php.ini
Scan this dir for additional .ini files /etc/php/7.4/apache2/conf.d
Additional .ini files parsed /etc/php/7.4/apache2/conf.d/10-opcache.ini, /etc/php/7.4/apache2/conf.d/10-pdo.ini, /etc/php/7.4/apache2/conf.d/20-calendar.ini, /etc/php/7.4/apache2/conf.d/20-ctype.ini, /etc/php/7.4/apache2/conf.d/20-exif.ini, /etc/php/7.4/apache2/conf.d/20-ffi.ini, /etc/php/7.4/apache2/conf.d/20-fileinfo.ini, /etc/php/7.4/apache2/conf.d/20-ftp.ini, /etc/php/7.4/apache2/conf.d/20-gettext.ini, /etc/php/7.4/apache2/conf.d/20-iconv.ini, /etc/php/7.4/apache2/conf.d/20-json.ini, /etc/php/7.4/apache2/conf.d/20-phar.ini, /etc/php/7.4/apache2/conf.d/20-posix.ini, /etc/php/7.4/apache2/conf.d/20-readline.ini, /etc/php/7.4/apache2/conf.d/20-shmop.ini, /etc/php/7.4/apache2/conf.d/20-sockets.ini, /etc/php/7.4/apache2/conf.d/20-sysvmsg.ini, /etc/php/7.4/apache2/conf.d/20-sysvsem.ini, /etc/php/7.4/apache2/conf.d/20-sysvshm.ini, /etc/php/7.4/apache2/conf.d/20-tokenizer.ini

But when I start nextcloud I get this error:
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Such kind of problems are reported on a regular base here. You need to follow the recommendation and check your web server and Nextcloud log files to get an idea of the root cause of the problem. Very often e.g. a php database module hasn’t been installed and Nextcloud cannot be started. If you use the search function of the forum you will find several matches on “The server encountered an internal error”.

Thx, but now I’m getting this

This version of Nextcloud is not compatible with > PHP 7.3.
You are currently running 7.4.1.

OMG !!!

Sorry, due to the fact that you were so focused on PHP 7.4 I thought you would have informed yourself on the system requirements and missed that you tried to upgrade from NC 15 to a newer version.
It is essential that you always check which PHP versions are supported by Nextcloud first, before you’re going to upgrade a server, especially if you’re four versions behind. Due to the fact that PHP 7.4 is extremely new only NC 18 currently supports it.

Nextcloud 15: PHP 7.0, 7.1, 7.2
Nextcloud 16: PHP … . .7.1, 7.2, 7.3
Nextcloud 17: PHP … . .7.1, 7.2, 7.3
Nextcloud 18: PHP … . .7.1, 7.2, 7.3, (7.4)

I would recommend to stay on PHP 7.3 for a while.

Yes, Thx, I’m on the way