REBOL cgi configuration

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Wed Apr 21, 2004 5:15 pm    Post subject: REBOL cgi configuration Reply with quote

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 View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Apr 21, 2004 5:21 pm    Post subject: Reply with quote

I think your header is wrong but im
not sure , try using this!

Code:
print "Content-Type: text/html\n";
Back to top View user's profile Send private message Visit poster's website
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Wed Apr 21, 2004 6:03 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Apr 21, 2004 6:08 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed Apr 21, 2004 11:31 pm    Post subject: Reply with quote

Try turning the "Resolve interpreter using the script's #! line" to "No."
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Thu Apr 22, 2004 1:00 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Thu Apr 22, 2004 7:48 pm    Post subject: Reply with quote

I would really thank you BOTH for your support, if you have any other ideas...:-)

--thomas
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Apr 23, 2004 3:00 pm    Post subject: Re: REBOL cgi configuration Reply with quote

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 View user's profile Send private message Send e-mail
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Mon Jul 05, 2004 9:36 am    Post subject: REBOL and Abyss Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jul 06, 2004 12:26 am    Post subject: Re: REBOL and Abyss Reply with quote

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 View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Jul 06, 2004 2:31 am    Post subject: Reply with quote

Thats what the Arguments are for lol !

Sweet! Im getting Rebol
Back to top View user's profile Send private message Visit poster's website
Taellik
-


Joined: 08 Jul 2002
Posts: 42
Location: USA

PostPosted: Fri Jul 09, 2004 11:36 am    Post subject: Reply with quote

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 View user's profile Send private message
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Fri Jul 09, 2004 11:49 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Taellik
-


Joined: 08 Jul 2002
Posts: 42
Location: USA

PostPosted: Fri Jul 09, 2004 11:56 am    Post subject: Reply with quote

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 View user's profile Send private message
Taellik
-


Joined: 08 Jul 2002
Posts: 42
Location: USA

PostPosted: Sun Jul 11, 2004 7:25 pm    Post subject: Re: REBOL and Abyss Reply with quote

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 View user's profile Send private message
thomas b
-


Joined: 20 Apr 2004
Posts: 7
Location: Duesseldorf, Germany

PostPosted: Mon Jul 12, 2004 10:41 am    Post subject: Re: REBOL and Abyss Reply with quote

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 View user's profile Send private message Visit poster's website
Taellik
-


Joined: 08 Jul 2002
Posts: 42
Location: USA

PostPosted: Mon Jul 12, 2004 1:31 pm    Post subject: Tutorial Link Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group