in reply to [Solved] Internal Server Error

The simple most thing you can do is to start your script on the command line, and paste the output of the header here. Then we can see what's wrong with it. (Maybe you even see it yourself).

I know this is a big mystery to many CGI programmers, but yes, you can run CGI scripts from the command line.

Replies are listed 'Best First'.
Re^2: Internal Server Error
by sasdrtx (Friar) on Sep 30, 2008 at 11:41 UTC

    True, but in many cases, that requires hacking up a driver script to build the necessary environment -- particularly for a form processor.

    Re the original question: I suppose it's unlikely you would have missed them, but if Perl croaks, those error messages will precede the "500 Server Error" message in the log.


    sas
      True, but in many cases, that requires hacking up a driver script to build the necessary environment -- particularly for a form processor.
      Funny, many of my CGI scripts emit HTTP headers before they start processing some forms.

      And if you use CGI, it is often as simple as providing GET parameters on the command line.