View previous topic :: View next topic |
Author |
Message |
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Wed Apr 21, 2004 5:15 pm Post subject: REBOL cgi configuration |
|
|
Hi from Germany,
first: I found 2 days ago Abyss and I really like the interface, the installer, how Abyss works - ok... but: maybe I am to stupid to install REBOL like PERL as cgi-interpreter.
I read every post about REBOL and the tutorial too. Please let me explain my problem:
I defined the interpreter REBOL, located in a folder rebol in the Abyss folder. The absolute path is c:\inetpub\abyss\rebol\rebol.exe
My document root is (in absolute) c:\inetpub\wwwroot\
I made a folder cgi-bin in ...wwwroot\
I define everything like the tutorial, I tried a alias /cgi-bin AND c:\inetpub\wwwroot\cgi-bin
I put the test.cgi into this folder, I tried at the cgi-bin folder in the abyss folder - I tried to create at the MIME page a MIME application/x-httpd-cgi cgi
I tried a alias /rebol with rebol becuase I thought the cgi-script did not find the Rebol program. I tried #!rebol -c and #!c:/inetpub/abyss/rebol.exe -cs
I tried a rebol webserver to check if the cgi script is rightand YES! it works. But it does not work with abyss... 8O
My test.cgi is the classical
#!c:/inetpub/abyss/rebol.exe -cs
REBOL [Title: "Server Time"]
print "content-type: text/html^/"
print [<HTML><BODY>]
print ["Date/time is:" now]
print [</BODY></HTML>]
What is my mistake??? I got no result or error 500, I use Windows ME, IE or Mozilla, browser and server at one machine, http://127.0.0.1:8080/...
Many thanks (and excuse my english)
--thomas |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Apr 21, 2004 5:21 pm Post subject: |
|
|
I think your header is wrong but im
not sure , try using this!
Code: | print "Content-Type: text/html\n"; |
|
|
Back to top |
|
|
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Wed Apr 21, 2004 6:03 pm Post subject: |
|
|
Hi Trustpunk,
no - it's not the solution. These line was the same in other REBOL cgi scripts like vanilla or citrusweb.
Code: | print "Content-Type: text/html^/" |
If I go to i.e. http://127.0.0.1:8080/cgi-bin/now.cgi the server is doing something for a long time (10 - 15 sec.). It seems Abyss is lookin' for rebol..(?) and then stopp with server 500 error.
any idea? :idea: |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Apr 21, 2004 6:08 pm Post subject: |
|
|
Most of the CGI I see uses that header , I will look
over the rebol tutorial and see if I can help
Edit: I even have no luck getting Rebol
to work , maybe Aprelium or a forum user
knows how to set this up |
|
Back to top |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed Apr 21, 2004 11:31 pm Post subject: |
|
|
Try turning the "Resolve interpreter using the script's #! line" to "No." _________________ Bienvenidos! |
|
Back to top |
|
|
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Thu Apr 22, 2004 1:00 pm Post subject: |
|
|
Sorry, but it doesn't work. I installed Abyss and REBOL at a second pc and put now everything in the normal Abyss directories - but it still does not work.
Is it really possible to install rebol with abyss? Has someone a running configuration - I would really like to install my site with abyss.
--thomas |
|
Back to top |
|
|
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Thu Apr 22, 2004 7:48 pm Post subject: |
|
|
I would really thank you BOTH for your support, if you have any other ideas...:-)
--thomas |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 23, 2004 3:00 pm Post subject: Re: REBOL cgi configuration |
|
|
thomas b,
Please send your abyss.conf file and your script to support@aprelium.com. Tell us also what is the full path (in your hard drive) of your script. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Mon Jul 05, 2004 9:36 am Post subject: REBOL and Abyss |
|
|
I must say thanks lot to Aprelium Support for their help!
I wrote a simple tutorial at http://www.webcontent4all.com/rebol-cgi.html how to configure REBOL and the Abyss Server to run Scripts. And it works! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Jul 06, 2004 12:26 am Post subject: Re: REBOL and Abyss |
|
|
thomas b,
Thank you for the tutorial. In the coming version (2), adding support for Rebol will be simpler than now since you can declare an Interpreter with command line arguments directly in the console (without requiring the #! trick.) _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Jul 06, 2004 2:31 am Post subject: |
|
|
Thats what the Arguments are for lol !
Sweet! Im getting Rebol |
|
Back to top |
|
|
Taellik -
Joined: 08 Jul 2002 Posts: 42 Location: USA
|
Posted: Fri Jul 09, 2004 11:36 am Post subject: |
|
|
TRUSTpunk wrote: | Thats what the Arguments are for lol !
Sweet! Im getting Rebol |
REBOL too cost prohibitive for me, I'll stick with Shorthand for my cgi interpetive language. |
|
Back to top |
|
|
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Fri Jul 09, 2004 11:49 am Post subject: |
|
|
Taellik wrote: | REBOL too cost prohibitive for me, ... |
Costs? What costs - REBOL CORE and VIEW are free. I prefer CORE 'cos its for beginner quite easier to understand. Download http://www.rebol.com and test it - It works great with Abyss |
|
Back to top |
|
|
Taellik -
Joined: 08 Jul 2002 Posts: 42 Location: USA
|
Posted: Fri Jul 09, 2004 11:56 am Post subject: |
|
|
thomas b wrote: | Taellik wrote: | REBOL too cost prohibitive for me, ... |
Costs? What costs - REBOL CORE and VIEW are free. I prefer CORE 'cos its for beginner quite easier to understand. Download http://www.rebol.com and test it - It works great with Abyss |
Guess I looked at the "purchase" section before the "free downloads" section. |
|
Back to top |
|
|
Taellik -
Joined: 08 Jul 2002 Posts: 42 Location: USA
|
Posted: Sun Jul 11, 2004 7:25 pm Post subject: Re: REBOL and Abyss |
|
|
thomas b wrote: | I must say thanks lot to Aprelium Support for their help!
I wrote a simple tutorial at http://www.webcontent4all.com/rebol-cgi.html how to configure REBOL and the Abyss Server to run Scripts. And it works! |
The tutorial link doesn't work. |
|
Back to top |
|
|
thomas b -
Joined: 20 Apr 2004 Posts: 7 Location: Duesseldorf, Germany
|
Posted: Mon Jul 12, 2004 10:41 am Post subject: Re: REBOL and Abyss |
|
|
to Taellik:
1. You say REBOL costs something - RIGHT: Rebol is free
2. You write the link doesn't work - RIGHT: It works.
Sorry - but what is the problem? |
|
Back to top |
|
|
Taellik -
Joined: 08 Jul 2002 Posts: 42 Location: USA
|
Posted: Mon Jul 12, 2004 1:31 pm Post subject: Tutorial Link |
|
|
I tried over the weekend to get to the tutorial link, but got error message " Page Not Found".
Tried again Monday AM and tutorial page gomes up fine.
Guess maybe service down when trying to go to it... in USA here. |
|
Back to top |
|
|
|