On Tue, 7 Apr 1998, Timothy Ayodele wrote:

> I get this error when I tried to run a cgi script on RH4.2 with apache 1.2.0
> 
> access to /home/httpd/cgi-bin/webannouncer.cgi failed reason: Premature end
> of script headers
> 

Well it's hard to tell from the information you have given. There are
several reasons you may be getting that error. First, you may have an
error (syntax) in the script itself. A good way of checking is to look at
the error log file (probably found in /var/log/htppd/error_log). Second,
the script might not be producing any output. If it's producing html
make sure you are printing the appropriate httpd header before you send
any output, ie (Content-type: text/html). If you still have problems, send
me specifics and I can help.

-Ulrich

/*****************************************************
 * Ulrich Czekalla                                   *
 * University of Toronto                             *
 * Software Engineering       Bachelor of Commerce   *
 * [EMAIL PROTECTED]                          *
 *****************************************************/



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to