Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 88123 invoked by uid 500); 26 Jan 2003 08:53:50 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 88112 invoked from network); 26 Jan 2003 08:53:50 -0000 Received: from unknown (HELO squarehosting.com) (12.158.191.98) by daedalus.apache.org with SMTP; 26 Jan 2003 08:53:50 -0000 Received: from mars.uni ([12.158.191.98]) by squarehosting.com (8.11.6/8.11.6) with SMTP id h0Q8qHx14466 for ; Sun, 26 Jan 2003 03:52:17 -0500 Date: Sun, 26 Jan 2003 04:05:01 -0500 From: Jurgen To: users@httpd.apache.org Message-Id: <20030126040501.1c624758.apache@squarehosting.com> In-Reply-To: <20030126090953.A13793@willwilliams.homeunix.net> References: <20030126075822.N12361@willwilliams.homeunix.net> <20030126023645.75ac1c74.apache@squarehosting.com> <20030126090953.A13793@willwilliams.homeunix.net> X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Premature end of script headers Hi, can you execute it from the command line? Do you have any other messages right before or afterwards in the log file, which might belong to the problem? Can you write a very simple script and run it without problems? Jurgen On Sun, 26 Jan 2003 09:13:25 +0100 (CET) Will Williams wrote: > Hi Jurgen, > > Yes my CGI executables have the #!/usr/bin/... line and they also have the > "content-type..." here is an example of my CGI for smokeping: > Smokeping.cgi) > ****************** > #!/usr/local/bin/speedy -w > # -*-perl-*- > > use lib qw(/usr/local/smokeping/lib); > > use Smokeping 1.16; > > Smokeping::cgi("/usr/local/etc/smokeping/config"); > > > BEGIN { > if ($ENV{SERVER_SOFTWARE}) { > $SIG{__WARN__} = sub { print "Content-Type: > text/plain\n\n".(shift)."\n"; }; > $SIG{__DIE__} = sub { print "Content-Type: > text/plain\n\n".(shift)."\n"; exit 1 } > }; > } > *************** > I use VI, Pico or KDE editor to edit my files, never have used a MS > windows editor. Anxious to here your ideas on how to fix. > > > Will Williams > williamsw@willwilliams.homeunix.net > +49-178-806-7966 > > On Sun, 26 Jan 2003, Jurgen wrote: > > > Hi, > > > > Do you have something like > > #!/usr/bin/perl > > on top of the executable file and there is really a perl executable existing? > > Do they have a line like > > print "Content-type:text/html\n\n"; > > before any other output starts? > > Do you edit the files on windows with any editor? > > > > Jurgen > > > > > > On Sun, 26 Jan 2003 07:59:24 +0100 (CET) > > Will Williams wrote: > > > > > > > > I have read what the FAQ has to say about subject...but really could use > > > some more help. It seems none of my installed ports that require CGI work > > > (smokeping or Nagios), they all error out with the above subject listed in > > > the httpd-error-log. > > > > > > Can someone point me in the right direction? > > > > > > Regards, > > > > > > Will Williams > > > williamsw@willwilliams.homeunix.net > > > +49-178-806-7966 > > > > > > --------------------------------------------------------------------- > > > The official User-To-User support forum of the Apache HTTP Server Project. > > > See for more info. > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > > " from the digest: users-digest-unsubscribe@httpd.apache.org > > > For additional commands, e-mail: users-help@httpd.apache.org > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server Project. > > See for more info. > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > " from the digest: users-digest-unsubscribe@httpd.apache.org > > For additional commands, e-mail: users-help@httpd.apache.org > > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org