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 » Troubleshooting » Common Problems

Turning Off PHP Notices and Deprecated Messages

Problem Description

There are PHP notices and deprecated messages filling up the /var/log/httpd/ssl_error_log file.

Resolving The Problem

This problem can be eliminated by updating the php.ini file. The advisory messages do not indicate a fatal error.

To determine the location of your php.ini file, execute the following command:

find /etc -name php.ini

If there are multiple results then the one in the apache directory is the one that needs changing.

The following entry in the php.ini file will disable those notices:

// Turn off Notices and Deprecated Warnings
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING

Remember to re-start Apache after making any changes.

systemctl restart httpd


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!

1 (2)
Article Rating (2 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 XI - Problems with $ Signs in the Check Command
Viewed 11334 times since Tue, Jan 26, 2016
Nagios XI - Resetting The nagiosadmin Password
Viewed 52258 times since Mon, Jan 25, 2016
XI 5.4 monitoring engine not running
Viewed 13593 times since Mon, Feb 6, 2017
Nagios XI - Apply Configuration Fails - Backend login to the Core Configuration failed
Viewed 28159 times since Tue, Aug 2, 2016
Nagios XI - Warning: Duplicate definition found for contact ’xi_default_contact’
Viewed 9177 times since Tue, Jan 26, 2016
Nagios XI - Bandwidth Graphs Showing 0Mb/s in Non-English Systems
Viewed 9317 times since Fri, Dec 19, 2014
VMWare checks timing out or slow
Viewed 5267 times since Fri, Feb 11, 2022
Pages Not Displaying Correctly
Viewed 10210 times since Mon, Jan 25, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 7436 times since Thu, Feb 25, 2016
Nagios XI - mysql_error out of range value for column
Viewed 9137 times since Tue, Aug 14, 2018