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
OpenSSL causes issue with check_nrpe plugin with NSClient++
Viewed 3329 times since Fri, Apr 30, 2021
Nagios XI - Event Data Is Stale
Viewed 3858 times since Wed, Jan 27, 2016
Nagios Core - Nagios did not exit in a timely manner
Viewed 4912 times since Wed, Jan 27, 2016
Nagios XI - Troubleshooting Reports
Viewed 4752 times since Wed, Dec 5, 2018
SSL Certificate does not validate properly
Viewed 2110 times since Wed, Jan 20, 2021
Nagios XI - Status Information Cut Off At 256 Characters
Viewed 5259 times since Thu, Feb 25, 2016
Nagios XI - MySQL/MariaDB - Max Connections
Viewed 26013 times since Thu, Jun 2, 2016
Nagios XI - Common Upgrade Failures And Solutions
Viewed 7478 times since Thu, Jun 29, 2017
Viewed 5079 times since Thu, Nov 16, 2017
Nagios XI - Unable To Login Using Two Factor Authentication
Viewed 4331 times since Tue, Apr 10, 2018