Apache::ErrorReport - Error Reporting under mod_perl


In your Apache configuration file:

  PerlModule Apache::ErrorReport
  PerlSetVar ErrorReportHandler email

In your perl code

  eval {


Reports warnings and fatal errors to screen or e-mail. Includes detailed information including error message, call stack, uri, host, remote host, remote user, referrer, and Apache handler.

If ErrorReportHandler is set to display, errors will be displayed on the screen for easy debugging. This should be used in a development environment only.

If ErrorReportHandler is set to email, errors will be e-mailed to the site adminstrator as specified in the Apache ServerAdmin configuration directive. This should be used on a production site.

This modules uses $SIG{__WARN__} to display warning messages and the fatal method to display fatal messages.


T.J. Mather (


Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005 AnIdea Corporation. All rights Reserved. PageKit is a trademark of AnIdea Corporation.


This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Ricoh Source Code Public License for more details.

You can redistribute this module and/or modify it only under the terms of the Ricoh Source Code Public License.

You should have received a copy of the Ricoh Source Code Public License along with this program; if not, obtain one at