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!

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 - Downloading A System Profile
Viewed 8560 times since Wed, Jul 19, 2017
Nagios XI - Running Out Of Disk Space On The Nagios XI VM
Viewed 23873 times since Tue, Jan 27, 2015
Nagios XI - MRTG Reports SNMP_Session Errors
Viewed 5835 times since Wed, Jul 27, 2016
Nagios XI - Some BPI Checks Show "Unknown BPI Group Index" After Upgrade
Viewed 4554 times since Wed, Sep 18, 2019
Nagios XI - Oracle Services Critical After Nagios XI Upgrade
Viewed 6427 times since Wed, Jan 27, 2016
Nagios XI - Missing localhost Alerts
Viewed 6870 times since Sun, Nov 5, 2017
Nagios XI - How To Test Check Commands From The Command-line
Viewed 48904 times since Tue, Jan 26, 2016
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 12545 times since Tue, Jul 26, 2016
Nagios XI - Problems Using Nagios XI With Proxies
Viewed 14496 times since Mon, Jan 25, 2016
Nagios XI - Configuration Applies, No Changes Take Place
Viewed 8632 times since Tue, Jan 27, 2015