http://www.perlmonks.org?node_id=196910


in reply to 500 Internal Server Error defies debugging

Anon,

What happens when you run the script from the command line?

The shebang line is for windows, which web server are you running? IIS, Apache or another? IIS needs messing with to get taint working (Taint with Perl on NT/IIS), and doesn't have very useful script/error logging.

Assuming you have good error logs, and you can read them, what do they say?

Why are messing with $ENV, CGI.pm is normally the best way to go for parsing CGI input and generating basic HTTP/HTML output. It has been standard with perl for quite a while, it's well regarded, and well tested. See the famous use CGI or die;.


--
ajt
  • Comment on Re: 500 Internal Server Error defies debugging