in reply to Internal server error

Did you look in the apache error log and see what information was there? Often a 500 error will be caused by a compile-time error, or a failure to print HTTP headers as the first output of the script.

I'm sorry, but I'm not sure anyone can help more without some more info (like the relevant parts of the error log)

-- Dan

Replies are listed 'Best First'.
Re: Re: Internal server error
by serambin (Novice) on Sep 03, 2002 at 19:42 UTC

    Here are the results of two attempts.

    [Tue Sep 3 15:16:24 2002] [error] [client 66.19.141.133] File does no +t exist: /home/lhost/public_html/500.shtml [Tue Sep 3 15:16:24 2002] [error] [client 66.19.141.133] Premature en +d of script headers: /home/lhost/public_html/scgi-bin/pdesk.cgi [Tue Sep 3 15:08:48 2002] [error] [client 66.19.141.133] File does no +t exist: /home/lhost/public_html/500.shtml [Tue Sep 3 15:08:48 2002] [error] [client 66.19.141.133] Premature en +d of script headers: /home/lhost/public_html/scgi-bin/pdesk.cgi

    Perhaps this will help. In any case, thanks in advance.

    Stan

    http://ladatahost.com

    Edit Petruchio Wed Sep 4 04:10:58 UTC 2002 - Added markup

      'Premature end of script headers' usually means you didn't send the correct headers to display the output in your web browser. Make sure before you print anything out that you have a line that looks like this:

      print "Content-type: text/html\n\n";

      Alternatively if you are using the CGI module you can use it to print your header:

      print $cgi->header(); # defaults to text/html

      Hope that helps
      Chris

      Lobster Aliens Are attacking the world!