Page 1 of 1

Nagios XI error after upgrading PHP to 8.06

Posted: Wed May 26, 2021 8:46 pm
by klausonline
Hi,

I have an Nagios XI version 5.8.3 working with php 7.2. Due to security reasons the php need to upgraded to version 8.

After upgrading php to version 8.0.6, there is an error as shown in the attached screenshot. I followed the instruction to put the extension in the right directory and updated the php.ini file(sourceguardian.ini). After restart php-fpm, the NagiosXI login page failed to load. I found the php errors as below in the logs.

tail /var/log/php-fpm/www-error.log
[27-May-2021 01:26:10 UTC] PHP Fatal error: SourceGuardian Loader - This protected script was not encoded for version 8.0.6 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

Can you please advise how to fix the issue?

Thanks.
Klaus

Re: Nagios XI error after upgrading PHP to 8.06

Posted: Thu May 27, 2021 4:21 pm
by vtrac
Hi Klaus,
Hope you are having a good day!! ... :-)

I searched our knowledge base and found the below KB on PHP upgrade.
However, based on the KB Nagios XI is compatible with the following versions of PHP.

5.3, 5.4, 5.5, 5.6 | 7.0, 7.1, 7.2 (XI 5.5+) | 7.3 (XI 5.6.8+) | 7.4 (XI 5.7.0+)

https://support.nagios.com/kb/article/n ... 7-860.html

I'm very sorry, but you might have to downgrade your PHP to version 7.4

Best Regards,
Vinh