NC mistaken PHP-FPM version 5.4.16 as PHP version

Apache & Varnish Cache & Nginx Reverse Proxy
CentOS 7.4.1708 (Core) - Kernel 3.10.0-693.17.1.el7.x86_64
PHP 5.6.30
PHP-FPM 5.4.16 (fpm-fcgi)
suPHP 0.7.2
Zend Engine v2.6.0 with the ionCube PHP Loader (enabled) + Intrusion Protection from (unconfigured)
MySQL 10.1.30-MariaDB
SEL permitting
Mod Security disabled

NC 12.0.5

Apparently NC is mistaken the PHP-FPM version as actual PHP version. After the successful installation of NC this is being presented

This version of Nextcloud requires at least PHP 5.6.0
You are currently running 5.4.16. Please update your PHP version.

The output from

echo 'Current PHP version: ' . phpversion();


Current PHP version: 5.6.30

How to sort this out or is this a bug of NC?

As far as any resource I could find is concerned php-fpm version === version of php that is used.
So in that case you would in fact be using 5.4.

Did you serve your code example through fpm to check? Because you can have a different CLI version of PHP then your FPM version is.

@SMillerDev you pointed in the right direction of course. :+1:

RH7/CentOS7 official repos only support PHP 5.4.16. In due course of the server installation remnants of this version were not removed and thus caused this confusion for NC.

The solution to get rid of those remnants
yum -y remove php-fpm php-*
systemctl restart httpd nginx