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
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 XI - Empty Screen for Wizard, Component, Dashlet
Viewed 4390 times since Wed, Jan 27, 2016
Nagios XI - Core 4 Load Spikes on 1.75 and 7 Hour Intervals
Viewed 2824 times since Mon, Jan 25, 2016
Nagios XI - mysql_error out of range value for column
Viewed 4024 times since Tue, Aug 14, 2018
Nagios XI - SourceGuardian Errors 2009R1.2C
Viewed 2795 times since Tue, Feb 2, 2016
Nagios XI - Debugging Bandwidth Performance Graphs
Viewed 10246 times since Tue, Jan 27, 2015
Nagios XI - Error while converting SVG
Viewed 2604 times since Thu, Aug 3, 2017
Nagios XI - Notifications Not Sending In XI 5.3.0
Viewed 3105 times since Tue, Oct 4, 2016
Nagios XI - Scheduled Reports Not Running
Viewed 3499 times since Thu, Aug 10, 2017
Nagios XI - Status Information Cut Off At 256 Characters
Viewed 4616 times since Thu, Feb 25, 2016
Nagios XI - Problems with $ Signs in the Check Command
Viewed 5050 times since Tue, Jan 26, 2016