CGI Perl scripts debugging (solve 500 Internal Server Error)

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

When you run your perl scripts in browser you would get "500 Internal Server Error" when something goes wrong. There would be several reasons of this but one thing to be done is to check if your perl script contains errors. To do it login to server you're running perl script (I hope you use Linux ;] ) and execute command:

/usr/bin/perl -w /path/to/script.cgi

It will show debug information and it would be much easier to find and solve the problem.

Good luck!

You may also be interested in:
Access to sqlite3 database through perl (script example)

Share This
Related posts:
Access to sqlite3 database through perl (script example)
Can’t find usable shell script encryption solution…
FAQ: How to set up atomatic Linux reboot if kernel panic occurs?
Tiny perl script for UDP flooding
FAQ: static routes after restart/reboot in Fedora/RedHat/CentOS
 
 
 
Your Ad Here


0 Responses to “CGI Perl scripts debugging (solve 500 Internal Server Error)”


  1. No Comments

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word