Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Marble Head <Marble.Head@nospam.guacamole.com>
Subject: Re: Apache and Perl scripts . . .
Date: 2000/11/13	[thread overview]
Message-ID: <3A100FC0.8B731EB2@nospam.guacamole.com> (raw)
In-Reply-To: 7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com

Try running this script instead:

#!/usr/bin/perl
print "Content-type: text/html\n";
print "\n\n";
print "<html><body>\n";
print "<h1>This is a test of CGI</h1>\n";
print "</body></html>\n";

The Content-type lines are crucial.
If that doesn't work, go to www.apache.org and read the FAQ about the http
server.

"Stephen S." wrote:

> I hope I aksing in the right place.  Probably not but . . . I'm
> running an alpha linux web server here and everything seems ok until I
> started running some perl / cgi-bin scripts.  At first I didn't have
> access.  That was easy.  No it gives an internal server error.  The
> error logs says it has encountered a "Premature end of script
> headers".  The script run fine at the command line and the syntax is
> correct.  I am kinda new to both web servers and perl.  I imagine
> something in the httpd.conf file might be wrong but I don't see
> anything that sticks out.  Any help would be appreciated.




  parent reply	other threads:[~2000-11-13  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-09  5:00 Apache and Perl scripts . . Stephen S.
2000-11-10  5:00 ` Edward Valencia
2000-11-11  5:00   ` Stephen S.
2000-11-13  5:00 ` Marble Head [this message]
2000-11-15  2:24   ` Stephen S.
2000-11-30  1:54     ` Pixelised
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox