article php error_log file growing due to deprecated messages

Example log messages:

 

[02-Jun-2010 14:29:51] PHP Deprecated: Function split() is deprecated in C:\Program Files\uptime software\uptime\GUI\classes\protocol\ProtocolParser.inc on line 30

[02-Jun-2010 14:29:51] PHP Deprecated: Function split() is deprecated in C:\Program Files\uptime software\uptime\GUI\classes\protocol\ProtocolParser.inc on line 30

[02-Jun-2010 14:29:51] PHP Deprecated: Function split() is deprecated in C:\Program Files\uptime software\uptime\GUI\classes\protocol\ProtocolParser.inc on line 30

 

These messages have no functional impact on up.time operation.  To suppress these deprecated entries from the php log, make the following change:

  • Edit the //apache/php/php.ini file.
  • Change the following line from: error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING to: error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED.
  • Save the changes to the php.ini file.
  • Restart the up.time httpd / web server service to apply the change.  After the web server has restarted, tail the php log to verify the change.

Related Articles


Apache access.log file size keeps growing

RatingViews
article

For web servers that are very heavily loaded with many users making many requests, the "access.log" file will continue to grow in size until it is removed. Simply removing it while Apache is...

By: uptime Support | Date Created: 10-1-2009 | Last Modified: 5-4-2012 | Index: 377

  6836

Resolving uptimeagent Daemon Messages

RatingViews
article

By: uptime Support | Date Created: 6-13-2006 | Last Modified: 10-28-2011 | Index: 081

  5675

phperror.log file filled with "File does not exist" errors

RatingViews
article

The default error logging level in is ALL messages. This can cause a number of messages to be registered in the phperror.log, causing it to grow to very large sizes. Some example messages are:...

By: uptime Support | Date Created: 8-13-2010 | Last Modified: 8-13-2011 | Index: 478

  2116

Suppress Connection Warnings from the Agent in /var/adm/messages

RatingViews
article

In some Linux/Unix/Solaris configurations, you may notice that the up.time agent is repeatedly logging connection warnings in the /var/adm/messages log. This is usually normal behaviour as...

By: uptime Support | Date Created: 7-6-2013 | Last Modified: 7-26-2013 | Index: 596

  1898

/var/adm/messages kernel: cdrom: open failed

RatingViews
article

On some agent server configurations these types of log messages may appear whenever the up.time monitoring station attempts to contact the agent Jun 25 19:19:20 server1 kernel: cdrom: open...

By: uptime Support | Date Created: 12-31-1969 | Last Modified: 8-31-2011 | Index: 307

  4769

User Comments



No comments have been posted.

Copyright © 2021 IDERA, Inc.   Legal   Privacy Statement