THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Products » Nagios XI » Documentation » Advanced Topics

PHP 7.2 to 7.4 Upgrade Instructions for RHEL 8 & Oracle 8

Purpose

This document is intended for use by Nagios Administrators who wish to update their version of php 7.2 to php 7.4 on a RHEL 8 or Oracle 8 systems. 

RHEL 8/Oracle 8 PHP Upgrade process:

From the command line on the XI server:

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module list php

 

Disable the 7.2 module that is enabled:

dnf module reset php:7.2
dnf module list php
dnf module enable php:remi-7.4
dnf install php php-imap php-opcache php-devel php-gd php-ldap php-mbstring php-pdo  php-pdo-dblib php-mysqlnd php-pgsql php-pear
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar zxf xi-latest.tar.gz
cd /tmp/nagiosxi
rm -rf /etc/php.d/sourceguardian.ini
./init.sh
sed -i '/^PHP script/d' xi-sys.cfg
sed -i '/^1)/d' xi-sys.cfg
sed -i '/^2)/d' xi-sys.cfg
sed -i '/^3)/d' xi-sys.cfg
./install-sourceguardian-extension.sh

 

Restart httpd/php-fpm: 

systemctl restart httpd php-fpm


Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
SNMP Traps - Standard Handler vs Embedded Handler
Viewed 16468 times since Mon, Oct 24, 2016
Nagios XI - Receiving SNMP Traps From Nagios Network Analyzer
Viewed 8742 times since Mon, Oct 17, 2016
Nagios XI - Scheduling Reports and Pages
Viewed 5335 times since Thu, Jan 28, 2016
Automatic Nagios Core Migration to Nagios XI
Viewed 18017 times since Fri, Nov 13, 2020
Nagios XI - Migrating From Nagios Core
Viewed 7890 times since Thu, Jan 28, 2016
Nagios XI - Configuring Core Contacts to Use XI’s phpmailer SMTP Settings
Viewed 8689 times since Wed, Jan 27, 2016
Nagios XI - Profile Build Failed
Viewed 15035 times since Tue, Aug 2, 2016
How To Download Files From The Nagios Exchange Using WGET
Viewed 15844 times since Tue, Aug 2, 2016
Database Storage Engine and High CPU usage in Nagios XI
Viewed 6331 times since Thu, Mar 4, 2021
Nagios XI - Understanding the Nagios XI Directory Structure
Viewed 8043 times since Thu, Jan 28, 2016