Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Why do I keep getting a 500 Internal server error?

by defyance (Curate)
on Dec 04, 2001 at 01:47 UTC ( #129198=perlquestion: print w/replies, xml ) Need Help??

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://129198]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-07-03 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (103 votes). Check out past polls.

    Notices?