Page 1 of 1

Upgrade PHP (using Nagios XI OVA

Posted: Tue May 01, 2018 12:07 pm
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.

Re: Upgrade PHP (using Nagios XI OVA

Posted: Tue May 01, 2018 12:45 pm
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

Re: Upgrade PHP (using Nagios XI OVA

Posted: Tue May 01, 2018 1:25 pm
by RwynneZAS

Code: Select all

Download ixed.5.6.1 into /usr/lib64/php/modules 
From where?

Re: Upgrade PHP (using Nagios XI OVA

Posted: Tue May 01, 2018 2:49 pm
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