CGI magic help

Jeremy C. Reed plug-discuss@lists.plug.phoenix.az.us
Tue, 3 Jun 2003 18:02:20 -0700 (PDT)


On Tue, 3 Jun 2003, Don Calfa wrote:

> ErrorLog /Volume2m/Websites/Logfiles/website3.com/error_log
> LogLevel debug
> ScriptAlias /cgi-bin/ "/Volume2m/Websites/website3.com/cgi-bin/"
> </VirtualHost>
>
> I have the scripts located in the correct directory, permissions are set
> to read and execute.
> All I get is:
>
>
>   Server error!
>
>     The server encountered an internal error and was unable to complete
> your request.
>
>     Error message:
> Premature end of script headers: test2.pl

If using an sh-bang interpreter (like #!/usr/bin/perl) make sure it
has the right path.

Also check the log file to see if it has better error description.

If using suexec, then look at your suexec.log (or cgi.log). It is usually
very informative.

   Jeremy C. Reed
   http://www.reedmedia.net/