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 X-Google-ArrivalTime: 2000-11-29 17:57:26 PST From: "Pixelised" Newsgroups: comp.os.linux.alpha References: <7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com> <3A100FC0.8B731EB2@nospam.guacamole.com> <3vs31top1a84jlqlr1pqettdbb390v7hvt@4ax.com> Subject: Re: Apache and Perl scripts . . . Date: Thu, 30 Nov 2000 12:54:36 +1100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 203.62.182.22 Message-ID: <3a264eab@news.alphalink.com.au> X-Trace: 30 Nov 2000 12:57:15 GMT, 203.62.182.22 Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!codeine.org!intgwpad.nntp.telstra.net!news1.optus.net.au!optus!news.mel.connect.com.au!news.labyrinth.net.au!news.alphalink.com.au!news.alphalink.com.au Xref: supernews.google.com comp.os.linux.alpha:1343 perhaps this reply is late, an important point about perl/cgi files, they need to be sent as ASCII, otherwise they wont work. Try use ftp and make sure the transfer is set to ASCII "Stephen S." wrote in message news:3vs31top1a84jlqlr1pqettdbb390v7hvt@4ax.com... > Yeah that one worked. It's wierd, if I create a new file and paste > everyhting in, they work OK. If I take someone else's scripts and > copy them to the server over the network they won't work. Any one > wanna guess why?? I would imagine the script would be ok going over > samba. I figured samba can figure out the file is ASCII not binary. > > Anyways thanks, now I should be up and running. > > > On Mon, 13 Nov 2000 10:58:56 -0500, Marble Head > wrote: > > >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. > From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,76f807944566b52e,start X-Google-Attributes: gid111c93,public From: Stephen S. Subject: Apache and Perl scripts . . . Date: 2000/11/09 Message-ID: <7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com>#1/1 X-Deja-AN: 691819340 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 973813141 63.178.207.65 (Thu, 09 Nov 2000 15:39:01 PST) Organization: MASS PC MIME-Version: 1.0 NNTP-Posting-Date: Thu, 09 Nov 2000 15:39:01 PST Newsgroups: comp.os.linux.alpha 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. 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: Edward Valencia Subject: Re: Apache and Perl scripts . . . Date: 2000/11/10 Message-ID: <3A0C5D2A.19D9145E@netcomi.com>#1/1 X-Deja-AN: 692158630 Content-Transfer-Encoding: 7bit References: <7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com> X-Accept-Language: en X-Server-Date: 10 Nov 2000 20:39:59 GMT Content-Type: text/plain; charset=us-ascii Organization: MindSpring Enterprises Mime-Version: 1.0 Reply-To: edward@netcomi.com Newsgroups: comp.os.linux.alpha Check your script alias and make sure that you have that set to the correct cgi-bin in the docroot for you path. edwardv "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. 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: Stephen S. Subject: Re: Apache and Perl scripts . . . Date: 2000/11/11 Message-ID: #1/1 X-Deja-AN: 692508737 Content-Transfer-Encoding: 7bit References: <7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com> <3A0C5D2A.19D9145E@netcomi.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 973978954 206.133.195.104 (Sat, 11 Nov 2000 13:42:34 PST) Organization: MASS PC MIME-Version: 1.0 NNTP-Posting-Date: Sat, 11 Nov 2000 13:42:34 PST Newsgroups: comp.os.linux.alpha Yeah I check that. It is set correctly. I even tried changing it around and got file not found errors. I'm stumped. I asked in the comp.lang.perl group and no luck there yet. I don't think it's a perl only problem. I am willing to bet it will happen to other scripts as well but I don't have anything else but perl at this point. On Fri, 10 Nov 2000 14:40:10 -0600, Edward Valencia wrote: >Check your script alias and make sure that you have that set to the >correct cgi-bin in the docroot for you path. > > >edwardv > >"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. 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. 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 X-Google-ArrivalTime: 2000-11-14 18:29:01 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!207.172.3.44!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail From: Stephen S. Newsgroups: comp.os.linux.alpha Subject: Re: Apache and Perl scripts . . . Organization: MASS PC Message-ID: <3vs31top1a84jlqlr1pqettdbb390v7hvt@4ax.com> References: <7bdm0tgdlmp6cguifna70re92tb5jjfgud@4ax.com> <3A100FC0.8B731EB2@nospam.guacamole.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 15 Nov 2000 02:24:31 GMT NNTP-Posting-Host: 63.178.206.174 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 974255071 63.178.206.174 (Tue, 14 Nov 2000 18:24:31 PST) NNTP-Posting-Date: Tue, 14 Nov 2000 18:24:31 PST Xref: supernews.google.com comp.os.linux.alpha:1239 Yeah that one worked. It's wierd, if I create a new file and paste everyhting in, they work OK. If I take someone else's scripts and copy them to the server over the network they won't work. Any one wanna guess why?? I would imagine the script would be ok going over samba. I figured samba can figure out the file is ASCII not binary. Anyways thanks, now I should be up and running. On Mon, 13 Nov 2000 10:58:56 -0500, Marble Head wrote: >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.