PHP support
Posted: Tue Dec 08, 2020 1:48 am
Current version is 2.3.0. Does it support PHP 7.3 or above? If not, which version should it be upgraded to? Can it upgrade offline similar to XI (https://repo.nagios.com/?repo=offline)?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
2.4.1 - 11/21/2019
Updated SourceGuardian loaders to now support PHP versions up to 7.3 -JOCode: Select all
yum -y install yum-utils
PHPTZ=$(grep -s '^date.timezone' /etc/php.ini | awk '{print $3}')
yum -y remove php-*
yum-config-manager --enable remi-php73
yum -y install php php-imap php-opcache php-devel php-gd php-ldap php-mbstring php-pdo php-mysqlnd php-pgsql php-pear php-pecl-ssh2 php-pgsql php-process php-snmp php-xml php-odbc
sed -i "s:;date.timezone =.*:date.timezone = ${PHPTZ}:" /etc/php.ini
cd /tmp
rm -rf /tmp/nagiosna
wget https://assets.nagios.com/downloads/nagiosxi/nagiosna-latest.tar.gz
tar zxf nagiosna-latest.tar.gz
cd /tmp/nagiosna
rm -rf /etc/php.d/sourceguardian.iniCode: Select all
#!/bin/bash
. libinstall.sh
install_sourceguardianCode: Select all
chmod 755 install_sourceguardian
./install_sourceguardianwe recommend and support the version of PHP provided by operating system vendor.