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

Rebol CGI on Apache

 [1/6] from: fergus4:bellatlantic at: 12-May-2007 11:55


I am having a big problem getting rebol CGI working on my apache server. I've followed the three CGI tutorials on rebol's site including the one specific to this problem but I can't get it to work. When I try to run a script from the browser nothing happens but it does not give an error. It looks like it's stuck in a loop or continuing to search for a page. I'm using the latest version of Apache and latest version of view. Apache is a fresh install so there are no crazy configs in there.

 [2/6] from: gregg::pointillistic::com at: 12-May-2007 10:41


Hi Alan, A> I'm using the latest version of Apache and latest version of view. A> Apache is a fresh install so there are no crazy configs in there. Have you tried Core? If you're on a *nix system, with no X, View may not run IIRC. -- Gregg

 [3/6] from: fergus4::bellatlantic::net at: 13-May-2007 21:02


Yes, I have tried using core with the same result. I'm using Windows XP Pro.

 [4/6] from: tim-johnsons::web::com at: 13-May-2007 18:23


On Saturday 12 May 2007 15:55, Alan wrote:
> I am having a big problem getting rebol CGI working on my apache server. > I've followed the three CGI tutorials on rebol's site including the one
<<quoted lines omitted: 4>>
> I'm using the latest version of Apache and latest version of view. Apache > is a fresh install so there are no crazy configs in there.
Hi Alan: Let's try something really simple: First, you need something like this: On linux, it is #!/usr/bin/rebol -cs ;; that's linux, but you will provide the path to your windows rebol executable. It's been a while since I've used rebol on windows, but I presume it might look something like this: #!c:\path\to\rebol.exe -cs Next, a rebol block ;; an empty block will work rebol[] ;; now a content-type: print "Content-Type: text/html^/" ;; Announce yourself to the world print "HOWDY" The first thing to do is actually run the script directly from DOS, that is, command.com or cmd.exe to see if there are any errors regarding the path or the syntax of the script. If there are no errors, then try it as a URL, if you _don't_ get a "NOT FOUND" error, you know the URL is good. If the process continues to hang, it just might be apache, not your script. Have you looked at the apache error log? HTH tim -- Tim Johnson <tim-johnsons-web.com> Palmer, Alaska, USA

 [5/6] from: moliad::gmail::com at: 15-May-2007 21:28


hi, funny I was having the same problem three days ago installing apache on my laptop and it was pretty simple, looking in the error log gave me pretty much all I needed to figure things out. the only thing I might suggest is to install apache in a folder with no spaces, I have had some issues in the past with rebol not wanting to run scripts from the command-line when they where under under a space-including path. might be an issue within apache too, I don't know, but I made sure, just in case. -MAx On 5/13/07, Tim Johnson <tim-johnsons-web.com> wrote:

 [6/6] from: tim-johnsons::web::com at: 17-May-2007 15:48


On Tuesday 15 May 2007 19:28, Maxim Olivier-Adlhoch wrote:
> the only thing I might suggest is to install apache in a folder with no > spaces, I have had some issues in the past with rebol not wanting to run > scripts from the command-line when they where under under a space-including > path. might be an issue within apache too, I don't know, but I made sure, > just in case.
I concur. I'm also recalling a problem I had when I set up a CGI testing environment on a Windows XP machine after working for years in linux. I created a cgi script using notepad, saved it with the ".r" extension and apache *couldn't* find it. Turned out notepad was also adding ".txt" as the end of the filename. Gotta watch out for those help little gremlins. tim -- Tim Johnson <tim-johnsons-web.com> Palmer, Alaska, USA

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted