Need help upgrading php

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Need help upgrading php

Post by rkennedy »

hqnguyen wrote:I will deploy a RHEL 7 VM and install Nagios XI from source. Is this a supported configuration?
Yes - the issue is getting the PHP version up to 5.6 without the repositories. While it's possible, it goes against the repositories which is what we depend on.

Where are you seeing 5.6 in the official repositories?

I just tested on Centos 6.8, and it looks like PHP is still utilizing 5.3.3 -

Code: Select all

[root@localhost libexec]# cat /etc/*release*
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
cpe:/o:centos:linux:6:GA
[root@localhost libexec]# rpm -qa | grep php
php-pdo-5.3.3-48.el6_8.x86_64
php-mysql-5.3.3-48.el6_8.x86_64
php-ldap-5.3.3-48.el6_8.x86_64
php-php-gettext-1.0.11-12.el6.noarch
php-common-5.3.3-48.el6_8.x86_64
php-bcmath-5.3.3-48.el6_8.x86_64
php-process-5.3.3-48.el6_8.x86_64
php-tidy-5.3.3-48.el6_8.x86_64
php-tcpdf-dejavu-sans-fonts-6.2.11-1.el6.noarch
php-mcrypt-5.3.3-5.el6.x86_64
php-cli-5.3.3-48.el6_8.x86_64
php-pgsql-5.3.3-48.el6_8.x86_64
php-gd-5.3.3-48.el6_8.x86_64
php-mbstring-5.3.3-48.el6_8.x86_64
php-xml-5.3.3-48.el6_8.x86_64
phpMyAdmin-4.0.10.17-2.el6.noarch
php-5.3.3-48.el6_8.x86_64
php-snmp-5.3.3-48.el6_8.x86_64
php-tcpdf-6.2.11-1.el6.noarch
php-pear-1.9.4-5.el6.noarch
php-mssql-5.3.3-5.el6.x86_64
On CentOS 7 it appears to be php-5.4.16

Code: Select all

[root@centos7x64 ~]# cat /etc/*release*
CentOS Linux release 7.2.1511 (Core)
Derived from Red Hat Enterprise Linux 7.2 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)
cpe:/o:centos:centos:7
[root@centos7x64 ~]# rpm -qa | grep php
php-cli-5.4.16-36.3.el7_2.x86_64
php-snmp-5.4.16-36.3.el7_2.x86_64
php-pecl-ssh2-0.12-1.el7.x86_64
php-pdo-5.4.16-36.3.el7_2.x86_64
php-xml-5.4.16-36.3.el7_2.x86_64
php-mysql-5.4.16-36.3.el7_2.x86_64
php-pgsql-5.4.16-36.3.el7_2.x86_64
php-mbstring-5.4.16-36.3.el7_2.x86_64
php-ldap-5.4.16-36.3.el7_2.x86_64
php-pear-1.9.4-21.el7.noarch
php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-mssql-5.4.16-5.el7.x86_64
php-mcrypt-5.4.16-5.el7.x86_64
php-common-5.4.16-36.3.el7_2.x86_64
php-5.4.16-36.3.el7_2.x86_64
php-process-5.4.16-36.3.el7_2.x86_64
php-gd-5.4.16-36.3.el7_2.x86_64
Former Nagios Employee
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Need help upgrading php

Post by avandemore »

Yes installation from source on CentOS/RHEL 6/7 is supported. Here is our document:

Manual Installation Instructions

RHSCL packages are not supported by Nagios. That beginning said, other users have reported success using PHP 5.6.

It is not tested or vetted in any official manner from our end, nor can we help if problems arise as a result of switching to PHP 5.6.
Previous Nagios employee
hqnguyen
Posts: 12
Joined: Fri Apr 22, 2016 9:38 am

Re: Need help upgrading php

Post by hqnguyen »

Thank you, you can close the ticket now.
Locked