Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Putting Rebol on Server?

From: robert::starcenter::com at: 4-Nov-2002 2:13

Hello, I wish to put Rebol Core on my server, in order to run Rebol scripts for my website. The problem is, Rebol is not supported by my server (Verio.com, FreeBSD, Apache). The techs there attempted to help me get Rebol configured, but they finally gave up and suggested that I ask the Rebol people directly. So --- does anyone know how I might go about configuring my server to recognize and run Rebol scripts? I have already uploaded Rebol Core to my www directory. I have set the permissions to read, write, and execute by all, and have uploaded a test script from the Rebol manual to my htdocs directory. The Verio techs told me to create a .htaccess file and put the following lines in it: AddType application/x-httpd-rebol .r Action application/x-httpd-rebol /cgi-bin/rebol.exe I did so. But when I go to: http://www.starcenter.com/email.r (a test email script at my website), nothing works. Here is the code for email.r: -------------------------------------------------------------------------- #!/path/to/rebol -cs REBOL [Title: "Send CGI Email"] print "Content-Type: text/html^/" cgi: make object! decode-cgi-query system/options/cgi/query-string print {<HTML><BODY><H1>Email Status</H1><HR><P>} failed: error? try [send to-email cgi/email cgi/message] print either failed [ {The email could not be sent.} ][ [{The email to} cgi/email {was sent.}] ] print {</BODY><HTML>} -------------------------------------------------------------------------- Can you explain what I might do, or suggest where I might find exact information to learn about this? Thank you. Sincerely, Robert Tkoch