From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,76f807944566b52e X-Google-Attributes: gid111c93,public From: Marble Head Subject: Re: Apache and Perl scripts . . . Date: 2000/11/13 Message-ID: <3A100FC0.8B731EB2@nospam.guacamole.com>#1/1 X-Deja-AN: 693429914 Content-Transfer-Encoding: 7bit References: <7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@nose.shr.dec.com X-Trace: nose.shr.dec.com 974131138 1148807 16.129.14.83 (13 Nov 2000 15:58:58 GMT) Organization: Organization? Yes, please. Mime-Version: 1.0 NNTP-Posting-Date: 13 Nov 2000 15:58:58 GMT Newsgroups: comp.os.linux.alpha Try running this script instead: #!/usr/bin/perl print "Content-type: text/html\n"; print "\n\n"; print "\n"; print "

This is a test of CGI

\n"; print "\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.