[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with Apache running perl scripts
Well, certainly don't give out too much info, like how your index.shtml
looks like, or the ncounter.pl file :). Anyhow, since it gives a
'premature blah blah' notice it means that the script runs, but it
probably doesn't pass a proper header. The easiest way to achieves this
whole thing would be to use the CGI module (you may want to qw(:html),
and print header, start_html, etc. Adding -w to the shell line at the
top won't hurt either, and of course running it from the command line
(in that case you may want to add -no_debug to the use statment).
BTW, you may want to get the CGI FAQ too, just
echo send usenet/news.answers/www/cgi-faq | mail
mail-server@rtfm.mit.edu
Oded Arbel wrote:
>
> hello .
> I need some help with setting up SSI on apache to run perl scripts.
> I've tried to put a simple counter script in my cgi-bin directory, and tried
> to make it work from my index.shtml file.
> when I access it through a web browser, it doesn't seem to be executed, and
> i get this text in httpd's error.log :
> [Sun Apr 25 21:41:03 1999] access to /home/httpd/cgi-bin/ncounter.pl failed
> for
> my.ip.here, reason: Premature end of script headers
>
> I looked up the apache FAQ, but it was no help . i didn't understand what
> the problem was or how to fix it ..
> can any one give me a hint ?
>
> Oded
> --
> ----------------------------------------------------
> The man who does not read good books has no advantage over the man who
> cannot read them.
> -- Mark Twain
--
Omer Efraim
!- Software: Making your computer come alive so it can attack you -!
Dave Barry in Cyberspace (probably using Windows)