in reply to Perl CGI errors to apache/error_log

CGI::Carp was designed specifically for this. I use a configuration identical to yours and have not had problems with this technique. Perl CGI errors invariably end up in the error logs as desired (or in the browser for those cases where I specify fatalsToBrowser).

Is this just not working for you?

  • Comment on Re: Perl CGI errors to apache/error_log

Replies are listed 'Best First'.
Re: Re: Perl CGI errors to apache/error_log
by ismail (Acolyte) on Mar 30, 2002 at 18:41 UTC
    Yeah, it's not working. Tailing the error_log will give "Premature End of Script Headers" errors but not, for instance, DBI errors, or specific perl errors. It's very odd -- I've never seen anything like this. It's like there is a 2>&1 somewhere in the mix. Everything was set up by ApacheToolbox, but I haven't been able to find this issue there, nor the apache lists, nor the perl lists. Thanks, Ismail
      Have you isolated it to Apache?
      What happens when you run the script from the command-line and redirect stderr to a file?

      Are you running mod_perl? If so, try it with straight mod_cgi and see if that works okay.