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 - Missing localhost Alerts
Viewed 4094 times since Sun, Nov 5, 2017
Nagios XI - SNMPTT Service generates Cannot find module errors
Viewed 3373 times since Sun, Apr 9, 2017
Viewed 3806 times since Thu, Nov 16, 2017
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 4592 times since Wed, Jun 1, 2016
API changes in Nagios XI 5.7
Viewed 1027 times since Tue, Feb 23, 2021
Nagios XI - HTTP 500 Error / White Screen After Login
Viewed 2985 times since Mon, Feb 29, 2016
CCM says unapplied changes exist, but none listed
Viewed 2849 times since Mon, Feb 27, 2017
Nagios XI - Resolving "Cannot connect to database" Error - Core Config Manager
Viewed 4355 times since Mon, Jan 25, 2016
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 5850 times since Tue, Jul 26, 2016
Nagios XI - Notification Problems
Viewed 18212 times since Tue, Jan 27, 2015