Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Rebol on Software602 Lansuite2004
Pages: [1] Print
Author Topic: Rebol on Software602 Lansuite2004  (Read 313 times)
rspyder
Newbie
*
Offline Offline

Posts: 1


View Profile
Rebol on Software602 Lansuite2004
« on: April 16, 2007, 05:30:31 PM »

A problem...

I have set up  my Windows XP Home running Software602 Lansuite 2004 as my webserver to execute Rebol scripts.  According to the Lansuite log file, LanSuite sees a valid .cgi file (now.cgi) and has the correct path to rebol and creates the proper command line

c:\cgi-bin\rebol.exe c:\webfiles\cgi.bin\now.cgi

The commad appears to execute now.cgi properly, but nothing is displayed on my web browsers (IE7 and Firefox 2.0).  The web browser does indicate "done"  By removing the -c in the

#!c:\cgi-bin\rebol.exe -c

I can get my web browsers to lock up waiting for a response.

Anyone have a clue as to what is happening?  here is now.cgi

#!\cgi-bin\rebol.exe -c
REBOL [Title: "Server Time"]
print ["content-type: text/html^/"]
print [<HTML><BODY>]
print ["Date/time is:" now]
print [</BODY></HTML>]

roger
Logged
Sunanda
Full Member
***
Offline Offline

Posts: 113


View Profile
Re: Rebol on Software602 Lansuite2004
« Reply #1 on: April 19, 2007, 09:09:46 AM »

A couple of suggestions:

1 I always have -cs rather than just -c on my shebangs

2. You may need a blank line between the shebang and the REBOL [..]

3. Try adding a quit at the end of the script (after the last print)

4. If the browser is getting nothing back, then perhaps the server process is dying in some way.  Maybe it  is failing to find the rebol.exe at all -- is there anything in the server access or error logs?

5 If all else fails -- try a different webserver. I do all my development (including most of the CGI coding for http://www.REBOL.org ) using Xitami.

 
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Rebol on Software602 Lansuite2004
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 06:59:22 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4139 Members
Latest Member: DietaVato

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc