[REBOL] Re: cgi script not working with newest Rebol core
From: rebol:svendx:dk at: 30-Nov-2000 21:27
Hello Marj,
Are you sure the new rebol executable has correct permissions set, ie. executable by
the user the web server runs as?
/Thomas
On 30-Nov-00, you wrote:
> Guys --
>
> I just downloaded the latest experimental Rebol core for SGI (yesterday),
> and a Rebol cgi script that used to work is now giving a 500 Server Error
> message about malformed header from script.
>
> The script works fine if I run it from the command line. All my other
> scripts (which run as cron jobs) run fine. I'm using an SGI Indigo 2/R4k,
> IRIX 6.2. (and can't run the non-experimental SGI version of Rebol core at
> all, but that's another story).
>
> The script sits within a directory, is named index.cgi, and clicking an
> href to that directory runs the script to list certain files in the
> directory -- or at least it used to! :-)
>
> The relevant parts of the script look like:
>
> #!/usr/people/marj/rebolStuff/rebol -q
> REBOL [ yaddayadda... ]
> ...
> cgi-head: [ "Content-type: text/html" newline newline ]
> ...
> print cgi-head
> ...
> quit
>
> I also tested this script:
>
> #! /usr/people/marj/rebolStuff/rebol -csq
> REBOL []
>
> print "Content-Type: text/plain"
> print ""
>
> print "hello"
>
> quit
>
> Doesn't work either - same error message.
>
> I have read the networking chapter and tried a few variations of the first
> line (--cgi, -cs, -csq, etc), and I haven't hacked the server or anything
> else on the SGI since when the cgi script was running with the previous
> experimental rebol core version. I'm running the NCSA/1.5.2a httpd server
> on port 8080.
>
> Can anybody help?
>
> thanks!
>
> Marj
>
> --
> Marjorie A. Tiefert
> Principal Scientific Writer & Documentation Website Manager
> Life Sciences Information Design
> Molecular Simiulations Inc (http://www.msi.com/)
>
Best regards
Thomas Jensen