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
Enabling Oracle Linux Optional Repository
Viewed 11561 times since Mon, May 14, 2018
SSL Certificate does not validate properly
Viewed 1737 times since Wed, Jan 20, 2021
Nagios XI - MSSQL Wizards - Adaptive Server connection failed
Viewed 7392 times since Thu, Aug 3, 2017
Nagios XI - Core 4 Load Spikes on 1.75 and 7 Hour Intervals
Viewed 3012 times since Mon, Jan 25, 2016
Nagios XI - Error while converting SVG
Viewed 2765 times since Thu, Aug 3, 2017
Nagios XI - Defining Global Environment Variables
Viewed 7115 times since Thu, Mar 17, 2016
Nagios XI - Resetting The nagiosadmin Password
Viewed 32688 times since Mon, Jan 25, 2016
Nagios XI - CentOS 6 Installation Problems XI 2011R1.7 2011R1.8
Viewed 3206 times since Tue, Feb 2, 2016
Nagios XI - MySQL/MariaDB - Max Connections
Viewed 22167 times since Thu, Jun 2, 2016
Nagios XI - SNMP MIB Upload Problems
Viewed 6005 times since Mon, Apr 10, 2017