httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jurgen <apa...@squarehosting.com>
Subject Re: [users@httpd] Premature end of script headers
Date Sun, 26 Jan 2003 09:05:01 GMT
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 <williamsw@willwilliams.homeunix.net> 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 <williamsw@willwilliams.homeunix.net> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message