Page 1 of 1

Nagiosxi php7.2

Posted: Wed Jun 23, 2021 8:25 am
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

Re: Nagiosxi php7.2

Posted: Wed Jun 23, 2021 3:34 pm
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

Re: Nagiosxi php7.2

Posted: Thu Jun 24, 2021 1:56 am
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

+++++++++++

Re: Nagiosxi php7.2

Posted: Thu Jun 24, 2021 10:04 am
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