Home » Categories » Products » Nagios Log Server » Troubleshooting

Nagios Log Server - Upgrading to PHP 7

Upgrading to PHP 7


If your company environment requires upgrading to PHP 7.x, please follow the commands below.

Must be using Nagios Log Server 2.1.6 or higher for PHP 7.4 support.

Before any major upgrade/update, ensure you have a full backup in place.

Example (NLS 2.1.12 and PHP 7.4):


yum -y remove php-*
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php74
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
cd /tmp
rm -rf /tmp/nagioslogserver
wget https://assets.nagios.com/downloads/nagios-log-server/2/nagioslogserver-2.1.12.tar.gz
tar xzf nagioslogserver-2.1.12.tar.gz
cd nagioslogserver
./upgrade
systemctl restart httpd.service crond

Note: The reason you re-run the upgrade is to install the proper SourceGuardian loaders for your new version of PHP.

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
Nagios Log Server - ELK documentation
Viewed 4147 times since Wed, Sep 18, 2019
Upgrading EOL Operating Systems on a Nagios System
Viewed 2422 times since Thu, Apr 29, 2021
Forwarding Logs from Nagios Log Server to Another Destination
Viewed 3905 times since Wed, Sep 16, 2020