Library

Docs
Beta

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:

Begin by running these commands from the command line of your 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, and load 7.4

Next, run the following commands:

dnf module reset php:7.2
dnf module list php
dnf module enable php: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 ~
rm -rf nagiosxi xi*.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar zxf xi-latest.tar.gz
cd 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:

Finally, run this command to restart services:

systemctl restart httpd php-fpm
Nagios Enterprises, LLC

© All rights reserved. 2026