Upgrade PHP (using Nagios XI OVA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Upgrade PHP (using Nagios XI OVA

Post by RwynneZAS »

PHP upgrade

I am using the Nagios OVA Installation. I note that the latest available version of PHP in the repository it came configured with it 5.3.3, which is very out of date.

For security compliance, I would like to upgrade this to 5.6.36 (at least). Are there complications I will need to be aware of if I, for instance, add the REMI repository to get more current versions? Or is there another repository that is advised to get PHP to a more secure version.

(I looked through the forums, but I was finding inconsistent information, so I wanted to ask directly. Thank you.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Upgrade PHP (using Nagios XI OVA

Post by npolovenko »

Hi, @RwynneZAS. We don't support and never fully tested PHP upgrades on the Nagios OVA. If you're going to do this please make a snapshot of your VM beforehand so that if something comes up you could always revert everything back.

An easy way to upgrade php is using yum plugin-replace:

Code: Select all

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum upgrade
yum install yum-plugin-replace
yum replace php-common –replace-with=php56w-common (ignore error)
Download ixed.5.6.1 into /usr/lib64/php/modules 
Modify /etc/php.d/sourceguardian.ini replace ixed.5.3.1 with ixed.5.6.1
Run: service httpd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RwynneZAS
Posts: 22
Joined: Thu Mar 15, 2018 4:21 pm

Re: Upgrade PHP (using Nagios XI OVA

Post by RwynneZAS »

Code: Select all

Download ixed.5.6.1 into /usr/lib64/php/modules 
From where?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Upgrade PHP (using Nagios XI OVA

Post by npolovenko »

@RwynneZAS, Pick the right ixed module from the archive and place it in the correct directory.
http://www.sourceguardian.com/loaders/d ... _64.tar.gz
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked