Nagiosxi php7.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Nagiosxi php7.2

Post by mejokj »

Hello,

currently we are running nagios 5.6.6 and php5, because of the security vulnerability we need to update the php version to php7 is these php version is compatible with nagios 5.6.6
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagiosxi php7.2

Post by ssax »

Your XI version is compatible with PHP up to and including 7.2.X.

What OS/version is it running?

Code: Select all

uname -a
cat /etc/*release
If you're running RHEL/CENT/ORACLE, you can follow this guide:

https://support.nagios.com/kb/article/n ... 7-860.html
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Nagiosxi php7.2

Post by mejokj »

Its centos 7


After doing the mentioned steps in the document. I am facing the below error.

++++++++

[Wed Jun 23 14:49:15.010751 2021] [php7:error] [pid 24316] [client 192.168.0.105:62501] PHP Fatal error: SourceGuardian Loader - This protected script was not encoded for version 7.4.20 of PHP. Please re-encode or contact the author of the script regarding this problem. Error code [07] in /usr/local/nagiosxi/html/includes/dbl.inc.php on line 2

+++++++++++
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagiosxi php7.2

Post by ssax »

You went to PHP 7.4 which your XI version doesn't support. From my previous response:
Your XI version is compatible with PHP up to and including 7.2.X.
You'll need to remove PHP 7.4 and go to PHP 7.2:

Code: Select all

https://support.nagios.com/kb/article/nagios-xi-upgrading-to-php-7-860.html
Instead of this line:

Code: Select all

yum-config-manager --enable remi-php74
You would use:

Code: Select all

yum-config-manager --enable remi-php72
Locked