Page 1 of 1

PHP support

Posted: Tue Dec 08, 2020 1:52 am
by mansonli
Current version is 4.1.7. 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)?

Re: PHP support

Posted: Tue Dec 08, 2020 4:56 pm
by ssax
There is no offline/RPM installer for Nagios Fusion at this time.

You will need to upgrade to Fusion 4.1.8 first to support PHP 7.3:

Code: Select all

4.1.8 - 12/03/2019

    Updated SourceGuardian loaders to now support PHP versions up to 7.3 -JO
Taken from here:

https://www.nagios.com/downloads/nagios ... hange-log/

Re: PHP support

Posted: Wed Dec 09, 2020 4:13 am
by mansonli
Are instructions to upgrade PHP for Fusion same as those for XI (https://support.nagios.com/kb/article/n ... 7-860.html)?

Re: PHP support

Posted: Wed Dec 09, 2020 6:07 pm
by ssax
Similar (I changed it to use PHP 7.3), if you want 7.2, change this remi-php73 to this remi-php72 in the command below:

Code: Select all

yum -y install epel-release wget
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
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-ldap php-pdo php-devel php-mysqlnd php-mbstring php-cli
rm -rf /etc/php.d/sourceguardian.ini
cd /tmp
rm -rf /tmp/nagiosfusion
wget https://assets.nagios.com/downloads/nagiosfusion/fusion-latest.tar.gz
tar zxf fusion-latest.tar.gz
cd /tmp/nagiosfusion
./upgrade

Re: PHP support

Posted: Wed Dec 16, 2020 3:28 am
by mansonli
Should upgrade PHP first before upgrade fusion?

Re: PHP support

Posted: Wed Dec 16, 2020 12:51 pm
by dchurch
It's probably a good idea to upgrade PHP before updating Fusion. The reason being the updater script may pull in PHP dependencies that Fusion needs that are going to have to match the PHP version installed.