After recent updates to my primary master Icinga2 server, I’m receiving the following error when trying to access the web interface (regardless of browser used):
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.2.9”. You are running 7.1.30. in /usr/share/icinga-php/ipl/vendor/composer/platform_check.php on line 24
I’m assuming this would be resolved simply by upgrading PHP. Would this require that I delete the current version of PHP and replace it with 7.2.9? Would doing so cause any other issues with my existing icinga2 implementation? Not sure the best way to go about this. Would appreciate any suggestions.
** Icinga Web 2 version: 2.12.1
** Web browsers used: Firefox, Chrome, Edge
** Icinga 2 version used (icinga2 --version): 2.14.0-1
** PHP version used (php --version): 7.1.30
** Server operating system and version:CentOS 7
After recent updates to my primary master Icinga2 server, I’m receiving the
following error when trying to access the web interface (regardless of browser
used):
Fatal error: Composer detected issues in your platform: Your Composer
dependencies require a PHP version “>= 7.2.9”. You are running 7.1.30.
in /usr/share/icinga-php/ipl/vendor/composer/platform_check.php on line
24
I’m assuming this would be resolved simply by upgrading PHP. Would this
require that I delete the current version of PHP and replace it with
7.2.9?
Instead of deleting PHP and installing another version, I would recommend
simply using your package manager (you don’t say which Linux distro you’re
running this on) to upgrade PHP in the same way as (presumably, hopefully) you
upgraded Icinga.
Thanks for the response. My original post states I’m running CentOS 7. Unfortunately, when trying to upgrade PHP using my package manager, it states there are no packages marked for update.
Does CentOS have a facility to tell it to install a specific version of a
package (I know Debian does this, but I’m not familiar with RPM-based
systems)?
If it does, I would simply do that (ie: do not manually uninstall any previous
version). Either the package manager will uninstall the old version and
replace it with the new one or (more likely in my opinion, with PHP) it will
simply install the new version as well, and both will be available to anything
which needs to use them.
Thanks for the suggestion. I attempted to install the specific PHP version and discovered it was already installed just never started/enabled. I stopped the previous PHP package and started the latest one and can now access the web interface!
Considering the older version was never removed by yum, should I delete?