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.



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