* Apache and Perl scripts . . .
@ 2000-11-09 5:00 Stephen S.
2000-11-10 5:00 ` Edward Valencia
2000-11-13 5:00 ` Marble Head
0 siblings, 2 replies; 6+ messages in thread
From: Stephen S. @ 2000-11-09 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apache and Perl scripts . . .
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
1 sibling, 1 reply; 6+ messages in thread
From: Edward Valencia @ 2000-11-10 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apache and Perl scripts . . .
2000-11-10 5:00 ` Edward Valencia
@ 2000-11-11 5:00 ` Stephen S.
0 siblings, 0 replies; 6+ messages in thread
From: Stephen S. @ 2000-11-11 5:00 UTC (permalink / raw)
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
<edward@netcomi.com> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apache and Perl scripts . . .
2000-11-09 5:00 Apache and Perl scripts . . Stephen S.
2000-11-10 5:00 ` Edward Valencia
@ 2000-11-13 5:00 ` Marble Head
2000-11-15 2:24 ` Stephen S.
1 sibling, 1 reply; 6+ messages in thread
From: Marble Head @ 2000-11-13 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apache and Perl scripts . . .
2000-11-13 5:00 ` Marble Head
@ 2000-11-15 2:24 ` Stephen S.
2000-11-30 1:54 ` Pixelised
0 siblings, 1 reply; 6+ messages in thread
From: Stephen S. @ 2000-11-15 2:24 UTC (permalink / raw)
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
<Marble.Head@nospam.guacamole.com> wrote:
>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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Apache and Perl scripts . . .
2000-11-15 2:24 ` Stephen S.
@ 2000-11-30 1:54 ` Pixelised
0 siblings, 0 replies; 6+ messages in thread
From: Pixelised @ 2000-11-30 1:54 UTC (permalink / raw)
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." <smart73_NOSPAM!!_@earthlink.net> 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
> <Marble.Head@nospam.guacamole.com> wrote:
>
> >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.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-11-30 1:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2000-11-15 2:24 ` Stephen S.
2000-11-30 1:54 ` Pixelised
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox