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 - Display All Scheduled Reports
Viewed 7250 times since Wed, Oct 12, 2016
Nagios XI - Common Upgrade Failures And Solutions
Viewed 17679 times since Thu, Jun 29, 2017
NRPE - Agent and Plugin Explained
Viewed 80409 times since Fri, Jul 14, 2017
Nagios XI - MRTG Reports SNMP_Session Errors
Viewed 8954 times since Wed, Jul 27, 2016
Nagios XI - Hosts Pending/Gray
Viewed 14598 times since Tue, Jan 6, 2015
Nagios XI - Configuration Applies, No Changes Take Place
Viewed 11298 times since Tue, Jan 27, 2015
Nagios XI - Troubleshooting Reports
Viewed 10212 times since Wed, Dec 5, 2018
Nagios XI - Host Still Visible After Deletion (Ghost Hosts)
Viewed 15131 times since Tue, Jan 27, 2015
Web Browser Reports 330 Error Content Encoding
Viewed 10755 times since Tue, Mar 7, 2017
Nagios XI - Installing XI Fails To Install Dependency pymssql
Viewed 11215 times since Mon, Oct 17, 2016