CGI
[1/6] from: ammon:rcslv at: 10-Apr-2002 14:23
Hi,
I have been attempting to set up REBOL to do GI for my Webserver (Apache) I
keep getting this error in the Apache Error Log:
[Wed Apr 10 14:05:14 2002] [error] [client 172.30.8.19] Premature end of
script headers: /var/www/cgi-bin/login.r
Here is the script in its entirety:
#!/usr/lib/rebol/command/rebol -cs
REBOL[]
print "Content-Type:text/plain^/"
print "testing"
That is where REBOL is installed on my machine. I have run the script from
command line:
[[root--uno] root]# /usr/lib/rebol/command/rebol -cs /var/www/cgi-bin/login.r
Content-Type:text/plain
testing
So what are your suggestions?
Thanks!!
Ammon
[2/6] from: jason::cunliffe::verizon::net at: 11-Apr-2002 22:43
Hi Ammon
> I have been attempting to set up REBOL to do GI for my Webserver (Apache) I
> keep getting this error in the Apache Error Log:
>
> [Wed Apr 10 14:05:14 2002] [error] [client 172.30.8.19] Premature end of
> script headers: /var/www/cgi-bin/login.r
That's almost certainly an Apache/Linux permissions problem.
Search google for "Premature end of script headers" and you'll find a long line
of people who have torn their hair out by that message..
You probably need to chmod, chown or chgrp your script and/or its folder.
A brute force approach is to chown your script to apache or whatever it is
running under. You can back off on that for more secure ways. I've had this
problem when installing Vanilla on Linux.
hth
./Jason
[3/6] from: gchiu:compkarori at: 12-Apr-2002 15:32
On Wed, 10 Apr 2002 14:23:11 -0700
Ammon Johnson <[ammon--rcslv--com]> wrote:
> #!/usr/lib/rebol/command/rebol -cs
>
> REBOL[]
> print "Content-Type:text/plain^/"
> print "testing"
Try
print "Content-Type:text/plain^/^/"
--
Graham Chiu
[4/6] from: al:bri:xtra at: 12-Apr-2002 16:09
Ammon wrote:
> print "Content-Type:text/plain^/"
I think this needs to be:
print "Content-Type: text/plain^/"
Note the space after the colon ":".
I hope that helps!
Andrew Martin
Racing to beat the computer freeze...
ICQ: 26227169 http://valley.150m.com/
[5/6] from: tomc:darkwing:uoregon at: 11-Apr-2002 21:19
Hi Ammon,
http header ends with *TWO* newlines
print "Content-Type:text/plain^/^/"
and you should be off to the next problem.
On Wed, 10 Apr 2002, Ammon Johnson wrote:
[6/6] from: ammon:rcslv at: 10-Apr-2002 19:50
Linux permissions, Thanks!! It turns out that Apache didn't have permission
to access the REBOL Executable. ;-)
Thanks!!
Ammon
On Thursday 11 April 2002 07:43 pm, you wrote: