Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Perl CGI errors to apache/error_log

by Fastolfe (Vicar)
on Mar 30, 2002 at 03:15 UTC ( [id://155389]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://155389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found