Page 1 of 1

Update apache and php for NXI5.6.2

Posted: Mon Aug 05, 2019 10:27 pm
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!

Re: Update apache and php for NXI5.6.2

Posted: Tue Aug 06, 2019 7:33 am
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.

Re: Update apache and php for NXI5.6.2

Posted: Tue Aug 06, 2019 4:37 pm
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.

Re: Update apache and php for NXI5.6.2

Posted: Tue Aug 06, 2019 4:45 pm
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

Re: Update apache and php for NXI5.6.2

Posted: Thu Sep 05, 2019 9:50 pm
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~!

Re: Update apache and php for NXI5.6.2

Posted: Fri Sep 06, 2019 7:36 am
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