Why does my html ACTION call merely display and not execute my scrip
[1/13] from: gjones05:mail:orion at: 24-Feb-2001 15:15
From: Michael Harleman
I need to make an html form ACTION call to a rebol script in order to
get the data entered on a form. The problem is that although I am using
scripts I took off rebol.com or rebol.org, and I have Windows 2000 IIS
setup with a virtual cgi-bin directory, and the form does call the
scripts, the call merely displays the text within the scripts even
recognizing tags and doesn't execute the scripts with rebol. Does
anyone have any suggestions as to why this is not working correctly.
According to the books REBOL for Dummies, REBOL User's Guide, and
independent HTML Documentation publications, the project is set up
correctly.
<snip>
Hi, Mike,
It sounds as though the server does not recognize that the script file
is an executable, instead of just another form of content. I am far
more familiar with Apache than IIS, but the principles are usually the
same. Double check the settings of IIS to "be sure" (apparently covered
on the third page of chapter 18 of Ralph's book). The server needs to
know that a script with the extension of .r is executed by REBOL (it
will also need the complete path to the rebol version that you are
using).
Hope this helps.
--Scott
[2/13] from: andrew:wxc at: 25-Feb-2001 12:20
IIRC, there's also a registry setting that needs to be changed?
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/
[3/13] from: mikeharleman:skyenet at: 24-Feb-2001 18:24
Thankyou Scott.
You have at least pointed me in the right direction. It sounds like I need
some IIS support. I have the machine set up to recognize .r scripts, but
unfortunately I am still getting the same problem. I followed the online
IIS manual to setup the application extension mapping, but no luck so far.
It is still something that had to be done so thanks a million.
Mike
----- Original Message -----
From: GS Jones <[gjones05--mail--orion--org]>
To: <[rebol-list--rebol--com]>
Sent: Saturday, February 24, 2001 3:15 PM
Subject: [REBOL] Re: Why does my html ACTION call merely display and not
execute my script?
[4/13] from: mikeharleman:skyenet at: 24-Feb-2001 22:41
Thankyou Andrew. I will work with the registry and see what needs changed.
What documentation set do I need to look in? Is it IIS or this IIRC? Do
you happen to know the change that needs to be made?
Mike
----- Original Message -----
From: Andrew Martin <[andrew--wxc--net--nz]>
To: <[rebol-list--rebol--com]>
Sent: Saturday, February 24, 2001 5:20 PM
Subject: [REBOL] Re: Why does my html ACTION call merely display and not
execute my script?
[5/13] from: brett:codeconscious at: 25-Feb-2001 18:00
Have a look at the following info. orginally by Tim. Maybe it is what you
need.
http://www.codeconscious.com/rebol/rebol-net.html#UsingRebolCGIwithPersonalW
ebServer
Brett.
----- Original Message -----
From: "Michael Harleman" <[mikeharleman--skyenet--net]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, February 25, 2001 11:24 AM
Subject: [REBOL] Re: Why does my html ACTION call merely display and not
execute my script?
[6/13] from: andrew:wxc at: 25-Feb-2001 21:11
> Do you happen to know the change that needs to be made?
Brett's page here contains the information needed:
http://www.codeconscious.com/rebol/rebol-net.html#UsingRebolCGIwithPersonalW
ebServer
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/
[7/13] from: mikeharleman:skyenet at: 25-Feb-2001 15:57
I have made the requested changes, and continue to have the same problem.
I
believe you are right. This is an IIS setup problem. I have added the .r
extension for REBOL files to be executed under the IIS administration
folder. I have made the proper changes to my registry per the mentioned
"code conscious" web site. There must be something else I need to do. The
ACTION call continues to treat the script as a text file and not a script.
Any
additional suggestions...
Mike
(Indiana)
[8/13] from: mikeharleman::skyenet::net at: 25-Feb-2001 16:40
This is in reference to both the subject and ticket #5690 of Rebol Feedback?
Could the problem be that I am running Windows 2000 Professional Beta 3,
Frontpage 98 was installed, IIS was then installed, Frontpage 98 was then
removed with the Windows 2000 Remove wizard, Windows IIS component was
removed, Windows 2000 IIS was then reinstalled, and now I am finding
remnants of Frontpage 98 in Windows 2000 IIS(the wwwroot directory is still
there)? Is the only way to fix it to remove and then reinstall Win2000Pro
Beta 3? Must I be running a normal copy of Win2000Pro or Win2000Server?
Could I dump Win2000Pro Beta 3 and run Win NT 4.0 or can I continue to use
Win2000Pro Beta 3? Is it also possible that I have created the biggest mess
known to man on this planet?
Mike
(Indiana)
----- Original Message -----
From: Andrew Martin <[andrew--wxc--net--nz]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, February 25, 2001 2:11 AM
Subject: [REBOL] Re: Why does my html ACTION call merely display and not
execute my script?
[9/13] from: gjones05:mail:orion at: 25-Feb-2001 16:48
From: Michael Harleman
<snip>
> Could the problem be that I am running Windows 2000 Professional Beta
3,
> Frontpage 98 was installed, IIS was then installed, Frontpage 98 was
then
> removed with the Windows 2000 Remove wizard, Windows IIS component was
> removed, Windows 2000 IIS was then reinstalled, and now I am finding
> remnants of Frontpage 98 in Windows 2000 IIS(the wwwroot directory is
still
> there)? Is the only way to fix it to remove and then reinstall
Win2000Pro
> Beta 3? Must I be running a normal copy of Win2000Pro or
Win2000Server?
> Could I dump Win2000Pro Beta 3 and run Win NT 4.0 or can I continue to
use
> Win2000Pro Beta 3? Is it also possible that I have created the
biggest mess
> known to man on this planet?
Hi, Mike, I can see that you've had a "fun" weekend. You've gone from
trying to run a simple example REBOL cgi to discovering that you need to
reload your OS!!
Actually, I again have to claim ignorance of particulars of the
NT/Win2000 line, but I can speak from experience on loading Microsoft
Beta's on a "production" machine. Mine was a few years back with
combination of Interdev, J++, and Frontpage. Within in short order, my
registry and a number of directories were hopelessly mangled after a J++
crash. A day and a half later, I had everything back in working,
including low level repiecing together of the more important files
(backup?, what backup?). Like Poe's raven, I said, "Never more," at
least not on a machine on which I rely (backup or not). I've been
tempted to give the .NET beta a whirl, but then I break out in a sweat.
So, it may not have been Microsoft's software's fault, but they seem to
set up some of the most complicated sets of interdependencies I can
imagine. So much for orthogonal programming. After hearing my story
retold a thousand times over (read Jerry Pournelle of Byte!), I suspect
that you'll need to reload the OS. But first, on Win95 and now 98 I
always try uninstalling all the offending software. Checking
Microsoft's site for recommendations on loading order and try reloading
the software first. Good chance it may work, and a lot quicker than a
full OS and software reload.
That's my 2 cents, but what do I know? Good luck!
--Scott
[10/13] from: mikeharleman:skyenet at: 25-Feb-2001 18:32
Thanks Scott.
Mike
----- Original Message -----
From: GS Jones <[gjones05--mail--orion--org]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, February 25, 2001 4:48 PM
Subject: [REBOL] Re: Why does my html ACTION call merely display and not
execute my script?
[11/13] from: andrew:wxc at: 26-Feb-2001 15:34
> I have made the requested changes, and continue to have the same problem.
Have you tried rebooting?
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/
[12/13] from: mikeharleman:skyenet at: 26-Feb-2001 10:01
I have determined that some of the problems I have been having are a result
of run Windows 2000 Beta3 with only 64m of RAM. I now have shutdown several
of my processes which has resulted in a temporary fix. I have made the
changes to my registry, and entered the appropriate setting in IIS. My HTML
form ACTION call continues to only display the .r script and not run it.
Does anyone have any suggestions? I have received email from at least one
other person stating that he had the same trouble.
Thanks to Scott, Andrew, and the rest of you,
Mike
(Indiana)
----- Original Message -----
From: GS Jones <[gjones05--mail--orion--org]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, February 25, 2001 4:48 PM
Subject: [REBOL] Re: Why does my html ACTION call merely display and not
execute my script?
[13/13] from: kracik:mbox:dkm:cz at: 2-Mar-2001 12:21
Hi Michael,
AFAIK all versions of IIS for Windows NT are configured with the
management console. Only Personal Web Server (crippled IIS4 version)
for Windows 9x needs configuration in the registry.
Also, scripts don't have to be in cgi-bin directory if IIS recognizes
them by .r suffix.
I'd first suggest a simpler test than a POST request from HTML form.
Here's how I set up REBOL as CGI on Windows 2000 Advanced Server with
64 MB memory:
I made a simple script:
==================
REBOL []
print "Content-Type: text/plain^m^j"
print "hi"
print mold system/options/cgi
print system/version
==================
saved it as C:\inetpub\wwwroot\cgi-test.r
Then I configured the web server with the management console
Control Panel->Administrative Tools->Internet Services Management
according to the attached picture (Listar that runs the REBOL mailing
list will probably strip the attachment so I CC it to you directly).
Then I started Internet Explorer and typed
http://127.0.0.1/cgi-test.r in the address bar.
The script ran and gave this output:
==================
hi
make object! [
server-software: "Microsoft-IIS/5.0"
server-name: "127.0.0.1"
gateway-interface: "CGI/1.1"
server-protocol: "HTTP/1.1"
server-port: "80"
request-method: "GET"
path-info: "/cgi-test.r"
path-translated: "c:\inetpub\wwwroot\cgi-test.r"
script-name: "/cgi-test.r"
query-string: none
remote-host: "127.0.0.1"
remote-addr: "127.0.0.1"
auth-type: none
remote-user: none
remote-ident: none
Content-Type: none
content-length: "0"
other-headers: ["HTTP_ACCEPT" {image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, */*} "HTTP_ACCEPT_LANGUAGE" "en-us"
HTTP_CONNECTION
"Keep-Alive" "HTTP_HOST" "127.0.0.1" "HTTP_USER_AGENT"
{Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)}
HTTP_ACCEPT_ENCODING
"gzip, deflate"]
]
2.3.0.3.1
==================
So try this and if it will work, try a simple HTML form with
ACTION="/cgi-test.r"
Hope this helps,
--
Michal Kracik
Michael Harleman wrote:
> I have determined that some of the problems I have been having are a result
> of run Windows 2000 Beta3 with only 64m of RAM. I now have shutdown several
<<quoted lines omitted: 70>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
-- Binary/unsupported file stripped by Listar --
-- Type: image/gif
-- File: rebol-iis5.gif
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted