Rob Hartill offers the following suggestion for a way
to debug HyperNews, and cgi-bin programs in general.
From: Rob Hartill <hartill@lanl.gov>
Subject: Re: HyperNews and Apache WWW server
Score: 100
First 50 lines:
john@infomatch.com (John Chapman) wrote:
>
>I am wondering if anyone has got the Perl HyperNews message board scripts
>to operate with Apache. We are getting a :
>[Tue Sep 19 10:20:54 1995] access to
>/var/web/cgi-bin/HyperNews/.scripts/system-setup.pl failed, reason:
>malformed header from script
>If you run the script from the CLI it does produce html so I am a tad
>perplexed. Thanks for any info at all..
copy "system-setup.pl" to "nph-system-setup.pl" then telnet to
the server and request it, e.g.
telnet server.name 80
GET /cgi-bin/HyperNews/.scripts/nph-system-setup.pl HTTP/1.0
[blank line here]
What you *should* then see are valid HTTP headers returned by the script, but
what you will (hopefully) see will be some garbage mixed in with the
headers. The garbage being some stray error message or verbose stdout
from a command being called. HTTP headers are terminated by a blank line
(\r\n in reality).
rob
--
http://nqcd.lanl.gov/~hartill/
|