defyance has asked for the wisdom of the Perl Monks concerning the following question:

I'm an extreme newbie, and I'm just trying to use a pre-written CGI script to get a guestbook onto my webserver. But I keep getting that error when trying to run the script. I thought maybe it was permissions, but I have cgi-bin set to mode 755. I also thought maybe my path to the Perl prog wasn't right, but I ran 'which' and it matches up with what I have.. I need help!
  • Comment on Why do I keep getting a 500 Internal server error?

Replies are listed 'Best First'.
Re: Why do I keep getting a 500 Internal server error?
by kwoff (Friar) on Dec 04, 2001 at 01:52 UTC
    Put use CGI::Carp qw(fatalsToBrowser); near the top, or look at the error_log. Also, run `perl -c yourscript.pl` to make sure it's syntactically correct.
Re: Why do I keep getting a 500 Internal server error?
by Ovid (Cardinal) on Dec 04, 2001 at 02:07 UTC

    Read Appendix 1 of my CGI course (this appendix was written by tachyon). It contains a lot of information about getting CGI scripts working and has extra resource links at the bottom.

Re: Why do I keep getting a 500 Internal server error?
by defyance (Curate) on Dec 04, 2001 at 03:29 UTC
    I figured it out, I had changed the path to perl indirectly, then set my permissions, and forgot to chage the path back...Duh, its working fine now!