Page 1 of 1
PHP upgrade on Nagios server
Posted: Thu Sep 28, 2017 4:15 am
by jyoti22
Due to some vulnerability on Nagios server, there is a need to upgrade PHP and for this upgrade we have 2 choices
either to upgrade it to PHP 5.6.30 or to upgrade to PHP 7.0.10
Kindly let me know if Nagios core is compatible with these PHP versions and if this upgrade has any implications on Nagios core. Also, please provide if there is any nagios documentation available for upgrading PHP.
Thanks.
Re: PHP upgrade on Nagios server
Posted: Thu Sep 28, 2017 11:23 am
by bolson
If your Core is running on a vm and you can take a snapshot, do so. Otherwise, backup your configuration. Then run the following:
Code: Select all
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php --replace-with=php56w
service nagios restart
You will now be running Nagios Core with PHP 5.6.31
Cheers!
Re: PHP upgrade on Nagios server
Posted: Fri Nov 03, 2017 6:48 am
by tacolover101
as a side note to this, be aware of what is happening when you install the 'custom' webtactic repo, and that you will need to 'back out' of this down the road if / when the main packages are upgraded. the 'yum replace' will work once again here.
if your security team is complaining about PHP vulns, then they may also care about additional repos.
if you have another server team managing your OS's, you could 'break' some of their patching down the road.
i saw an issue like this happen, on a whole rack of physical machines. not fun to clean up.
Re: PHP upgrade on Nagios server
Posted: Fri Nov 03, 2017 9:56 am
by npolovenko
@jyoti22, Can we go ahead and close this thread as resolved?