PHP support

This support forum board is for questions relating to Nagios Fusion.
Locked
mansonli
Posts: 60
Joined: Wed Aug 05, 2020 1:54 am

PHP support

Post 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)?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: PHP support

Post 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/
mansonli
Posts: 60
Joined: Wed Aug 05, 2020 1:54 am

Re: PHP support

Post by mansonli »

Are instructions to upgrade PHP for Fusion same as those for XI (https://support.nagios.com/kb/article/n ... 7-860.html)?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: PHP support

Post 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
mansonli
Posts: 60
Joined: Wed Aug 05, 2020 1:54 am

Re: PHP support

Post by mansonli »

Should upgrade PHP first before upgrade fusion?
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: PHP support

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked