Update apache and php for NXI5.6.2
Posted: Mon Aug 05, 2019 10:27 pm
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:
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!
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:
(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")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
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!