Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where are CGI error messages?

Status
Not open for further replies.

stillflame

Programmer
Jan 12, 2001
416
Hey,
i write perl cgi scripts for an apache webserver, but to debug them, i always have to do it on the command line, as i do not know how to access their error messages from apache. i make a subroutine &dienice for anytime i have to exit from within my script, but general perl errors don't use this, and so don't show up. i only get apache's version of what the error is put into error_log.
is there a value i can set to 'loglevel' in httpd.conf that would make them show up?
thanks for any help. "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
You should be able to access the script errors in Apache's Error log. The error log's location is set in the httpd.conf with the Errorlog directive.
 
yeah, i know where the errorlog is, the problem is that the error messages are not the exact ones that show up when the script is run on the command line. specifically, when the script is set up to display warning messages, i don't see them. "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top