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.
Upgrade PHP (using Nagios XI OVA
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Upgrade PHP (using Nagios XI OVA
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:
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.
Re: Upgrade PHP (using Nagios XI OVA
Code: Select all
Download ixed.5.6.1 into /usr/lib64/php/modules
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Upgrade PHP (using Nagios XI OVA
@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
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.