Update apache and php for NXI5.6.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Update apache and php for NXI5.6.2

Post by axvers »

Hi Support,

I have tested that updating rpms in Nagios XI server through "yum update" is okay (From previous post).

But the version of httpd and php does not meet the client's need.

So, we tried these steps:
1. Update apache from 2.4.6 to 2.4.39 via CodeIT repo. (Centos repo does not provide such a new version of apache.)
2.a. Update PHP from 5.4.16 to 5.6.40 via rpms.remirepo.net.
2.b. Also tried updating PHP from 5.4.16 to 7.0.4 via rpms.remirepo.net.

And some problems occurred:
1. check php version by "php -v" will display error message:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.6ts.lin' - /usr/lib64/php/modules/ixed.5.6ts.lin: undefined symbol: _zend_hash_index_update_or_next_insert in Unknown on line 0
(note: PHP 5.6.40 said Unable to load "ixed.5.6ts.li"; and PHP 7.0.3 said Unable to load "ixed.7.0ts.lin")

2. Naigos XI 5.6.2 Web UI shows DB connection Error
3. After tried to execute "repair_database.sh" still have same error.

The question is:
- How to update to apache 2.4.39 version and PHP 5.6.40 (or 7.0.3) on Nagios XI server?
Or, What is the max sub-version of apache and PHP can be updated in a Nagios XI 5.6.2 server?

Thanks!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Update apache and php for NXI5.6.2

Post by eloyd »

Those are some big upgrades, and there's a reason why PHP 7 is not included with CentOS. CentOS is a very conservative server OS. If you want (or your customer needs) more "bleeding edge," then you may want to try a different distribution like Ubuntu Server or another Debian-based (as opposed to RHEL-based) distro.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Update apache and php for NXI5.6.2

Post by cdienger »

We'll support/test the packages that are from official OS repos, so your best bet if the client is insisting on the latest is to change distro's as @eloyd pointed out. That said, if you do try to install newer PHP packages on a Cent machine then make sure to also upgrade the sourceguardian file as well - https://support.nagios.com/kb/article/n ... s-816.html.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Update apache and php for NXI5.6.2

Post by benjaminsmith »

How to update to apache 2.4.39 version and PHP 5.6.40 (or 7.0.3) on Nagios XI server?
As Eric mentioned, it maybe be just as easy to migrate to Ubunter Server as it will be easier to maintain compatibility with future upgrades. At Nagios, we don't choose which version of Apache or php to use as those decisions are made by the distribution vendor. Keep in mind that RHEL / CentOS does backport with security fixes. For example, they will take the code from say PHP 7.2 and apply the security vulnerability fixes from that version to the shipped version, in the case of RHEL 7, PHP 5.4.16.

https://access.redhat.com/security/updates/backporting

That said, take a look at the following thread for a solution to upgrading to PHP 7.x:

https://support.nagios.com/forum/viewto ... de#p286827
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Update apache and php for NXI5.6.2

Post by axvers »

We eventually updated all PHP&httpd rpms found from third-party site to the latest version.

All works fine. And web response time seems to be a little bit quicker.

Thanks~!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update apache and php for NXI5.6.2

Post by scottwilkerson »

axvers wrote:We eventually updated all PHP&httpd rpms found from third-party site to the latest version.

All works fine. And web response time seems to be a little bit quicker.

Thanks~!
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked