500 Internal Server Error (417)

4 Name: !WAHa.06x36 2005-02-21 18:01 ID:FqgLpoAw (Replies) [Del]

Third, what to do when you get Internal Server Errors?

  • Look at error_log. Internal Server Errors often generate two or more lines in the log file, make sure you read them all.
  • Try the Perl test script:


    print "Content-Type: text/html\n\n";
    print "<html><body><h1>Perl is working!</h1></body></html>";

    If this doesn't run, work with the server config until it runs, and only when it does, get to work on Wakaba.

  • If you are sure you've got the permissions and hashbang right, ask your admin about what you need to do to get CGI scripts running.

8 Name: !WAHa.06x36 : 2005-12-22 05:16 ID:Heaven [Del]


Perhaps you should try reading >>1-4?

21 Name: dmpk2k!hinhT6kz2E : 2006-02-22 22:03 ID:Heaven [Del]

Does the test perl script in >>4 work?

IIRC, Apache takes a couple of configuration steps to run CGI, not just one.

30 Name: !WAHa.06x36 : 2006-04-08 19:06 ID:Heaven [Del]


Did you try the test script in >>4, outside cgi-bin and inside it?

Also, some hosts only allow you to run CGI scripts in cgi-bin, but then don't let you access normal files in there. Yet other hosts don't let you run perl scripts in directories that are writeable.

You need to gather some more information about what exactly you have and haven't done before we can really help you. Also, look at your server's error_log and see what it says (and remember that you may have several different problems).

263 Name: Anonymous : 2009-05-04 19:54 ID:Heaven [Del]

did you try the test script (>>4)?

Name: Link:
Leave these fields empty (spam trap):
More options...