Icingaweb2 seeing wrong PHP version

After upgrading Icingaweb2 to 2.11.1 the web interface no longer loads.

The error message is: Fatal error : Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.2.0”. You are running 7.1.30. in /usr/share/icinga-php/ipl/vendor/composer/platform_check.php on line 24

From the command line:

php -v
PHP 7.2.34 (cli) (built: Jun 7 2022 12:37:48) ( NTS )

In httpd:

PHP Version 7.2.34

I’m using httpd to serve icingaweb2 so I have no idea how it could be possibly seeing 7.1.30 if httpd sees 7.2.34

Does anyone know how it is finding the wrong version?

php-fpm was running a different version of PHP than the built in apache module and also the cli. CentOS is so frustrating…

It’s fixed now on my end though, enjoy.

I’ve hit this problem today but I’m not sure where to look? 7.3 is installed…

I hit this issue today too - I can’t see how to resolve it though?

The php version being handled by FPM is different than the PHP version that is the apache module.

You just have to update the FPM version.

Are you saying that all cases of that error message, complete with the version 7.1.30 has to do with php-fpm? Because we don’t have php-fpm on our icinga2 web server and get the exact same error.