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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to debug CGI program 1

Status
Not open for further replies.

rubis

Programmer
Jun 21, 2001
54
GB
I have got "500-Internal Server Error" but I don't know what the error is. So I'm wondering how to debug it.

Well, I cannot run "perl code.cgi" coz of the configuration of the server I'm using. I have to run it through CGI only.
 
try adding the following after the shebang line in your code:

use CGI::Carp qw(fatalsToBrowser);

That usually gives you more verbose meanings behind script errors.

HTH,
Barbie. Leader of Birmingham Perl Mongers
 
You could also check the error logs .
The logs would usually contain among other data , the error code and a short description of error. This should (hopefully) give you clues .


C "Brahmaiva satyam"
-Adi Shankara (788-820 AD)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top