Installing Railo 3.1.x under Win2003 x64 IIS 6.0

46 views
Skip to first unread message

fmccb

unread,
Jul 29, 2010, 12:03:15 PM7/29/10
to Railo
Hi--


After carefully searching and reading up on everything I could find,
I'm still stuck trying to get "Railo 3.1.2.001 final" to play nice
with IIS 6.0.

What I've done is this:

1) installed Railo to C:\railo\

2) made sure IIS 6 will run 32-bit DLLs by opening up a command line
window and executing this:
cscript c:\inetpub\AdminScripts\adsutil.vbs set w3svc/AppPools/
Enable32bitAppOnWin64 1

3) made the following changes in the IIS 6 Manager:
a) changed WEBSITES > PROPERTIES > HOME DIRECTORY > CONFIGURATION >
ADD
added a mapping of .CFM >> C:\Railo\win32\isapi_srun.dll [ALL
verbs]
added a mapping of .CFC >> C:\Railo\win32\isapi_srun.dll [ALL
verbs]
b) changed WEB SERVICES EXTENSIONS > ADD A NEW WEB SERVICE
EXTENSION
extension name: "Ralio"
required files: C:\Railo\win32\isapi_srun.dll [ALLOWED]

4) instead of touching the C:\Railo\conf\resin.conf file, I created a
"host.xml" file in the same C:\Railo\conf directory. That file
currently reads as follows:

<host host-name="www2.welcomedriver.com">
<host-alias>www2.godriver.com</host-alias>
<root-directory>C:\_webproduction\welcomedriver - production\htdocs</
root-directory>
<web-app id="welcomedriver" document-directory="." />
</host>


Configured as I've described above, my Railo administration interface
runs fine under http://localhost:8600/railo-context/admin/server.cfm
However, any attempt to access http://www2.welcomedriver.com/index.cfm
causes an immediate re-direct to http://www2.welcomedriver.com/railo-context/admin.cfm

I have experimented with modifying my C:\Railo\conf\HOST.XML --
switching ...web-app id="welcomedriver"... to ...web-app id="/"...
(as I've seen in several examples). When I do that and cycle the
server, Railo's administration interface becomes unresponsive and
eventually returns "Unable to connect: Firefox can't establish a
connection to the server at localhost:8600."; the
www2.welcomedriver.com resonds with "Server is currently unavailable
or down for maintenance". So I'm thinking that the administration
interface likes to keep the web-app ID of "/" and I should be
assigning other ID's to the several sites I eventually plan on
deploying under IIS/Railo.

My DNS entry is public and verified - you can actually get IIS to
return valid non-.CFM pages from the domain (try http://www2.welcomedriver.com/robots.txt
for an example).

I'm assuming there is some last configuration I am missing, but my
search has revealed nothing so far. Does anyone see anything obvious
I'm doing wrong? If I can nail down this configuration case, I'll be
happy to write it up as formal install directions for "Railo 3.1.x +
Win2003 x64 + IIS 6". And if any of you already know of something like
this that my searches have failed to reveal, a link would be greatly
appreciated!

Context: I've been writing apps and hosting CFML under Windows since
CF 4.0 - but am new to the OpenBD/Ralio world; trying to see if I can
nail down a production server for the Windows/IIS world.

Josh Nathanson

unread,
Jul 29, 2010, 12:40:16 PM7/29/10
to ra...@googlegroups.com
I think everything is fine with your setup - there is a hard-coded redirect
to the server admin in the default index.cfm page that comes with Railo,
which is probably responsible for the behavior you're seeing. You can
either replace that file or remove the hard coded redirect.

-- Josh

Todd Rafferty

unread,
Jul 29, 2010, 1:17:30 PM7/29/10
to ra...@googlegroups.com
Josh is correct. In 3.2 release, hopefully this will turn into a nice Welcome Page. For now, open up the index.cfm in the directory and remove the <cflocation>.
--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

Russ Michaels

unread,
Jul 29, 2010, 6:18:57 PM7/29/10
to ra...@googlegroups.com
odd i do not get this default redirect on any of my installs, i have to actually type the url to the server admin
--
---
Russ Michaels
my blog: www..michaels.me.uk
www.cfmldeveloper.com - free CFML hosting for developers
www.bluethunderinternet.com - professional ColdFusion and Railo hosting


fmccb

unread,
Sep 16, 2010, 6:05:38 PM9/16/10
to Railo
I really didn't know where to find this "default index.cfm" page that
comes with Ralio.

In my case, the URL http://www2.welcomedriver.com/ is pointing to my
code base - you can try a non-CFM page using the same URL; IIS will
handle it correctly:

http://www2.welcomedriver.com/robots.txt

Trying another existing CFM page, http://www2.welcomedriver.com/help.cfm,
I do see that Ralio simply doesn't seem to care about the root context
of my website, and it wants to direct all .CFM calls to "c:\Ralio
\webapps\ROOT\" -- why is that, and how do I get Ralio to handle
my .CFM files in the root directory I've got set up in IIS? "c:
\_webproduction\welcomedriver - production\htdocs"

If I can get Ralio to do that, I think I'm set. In my original post, I
assume I've got something screwed up in my STEP #4:
> > runs fine underhttp://localhost:8600/railo-context/admin/server.cfm
> > However, any attempt to accesshttp://www2.welcomedriver.com/index.cfm

Jordan Michaels

unread,
Sep 16, 2010, 6:13:53 PM9/16/10
to ra...@googlegroups.com
> I
> assume I've got something screwed up in my STEP #4:

Yeah, I think so too. It's clear that the request is being passed to
Resin/Railo, but then Resin isn't resolving it right.

Can you check this:

> \htdocs</
> root-directory>

The "root-directory>" bit isn't on a separate line like that is it? If
that's the case then it's not valid and may not be loading right.

Basically, Resin is resolving the request to the "default" host entry,
so the problem is *definitely* somewhere around here.

Hope this helps!

--
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Railo Community Distributions

Todd Rafferty

unread,
Sep 16, 2010, 6:33:10 PM9/16/10
to ra...@googlegroups.com
If you're comfortable with the idea, I can take a peek at it if you have remote access available. Contact me off-list with details.

Gert Franz

unread,
Sep 17, 2010, 3:12:50 AM9/17/10
to ra...@googlegroups.com
Yes, you should use forward slashes in the host entry. so it should look
like this (oh and perhaps you should avoid spaces in your directory names):

<host host-name="www2.welcomedriver.com"
root-directory="C:/_webproduction/welcomedriver-production/htdocs">
<host-alias>www2.godriver.com</host-alias>
<web-app id="/" root-directory="." />
</host>

HTH

Greetings from Switzerland
Gert Franz

Railo Technologies Professional Open Source
skype: gert.franz ge...@getrailo.com
+41 76 5680 231 www.getrailo.com

-----Ursprüngliche Nachricht-----
Von: ra...@googlegroups.com [mailto:ra...@googlegroups.com] Im Auftrag von
fmccb
Gesendet: Freitag, 17. September 2010 00:06
An: Railo
Betreff: [railo] Re: Installing Railo 3.1.x under Win2003 x64 IIS 6.0

Todd Rafferty

unread,
Sep 17, 2010, 2:54:28 PM9/17/10
to ra...@googlegroups.com
I jumped on velocitychicken's box and fixed his installation. He was pretty close, but he had 2-3 issues that needed to resolve.

Mark Drew

unread,
Sep 17, 2010, 3:33:11 PM9/17/10
to ra...@googlegroups.com
Care to share?

Sent from my iPhone (apologies for my brevity!)

Todd Rafferty

unread,
Sep 17, 2010, 3:43:32 PM9/17/10
to ra...@googlegroups.com
1.) The host.xml file that he was attempting to do wasn't working. I put his host directly into the resin.conf, that worked. I need to find out from Gert what he does again so I can document it for the wiki.

2.) The resin's setup.exe wasn't done, that's majority of the setup work right there that you don't have to do as it does it all for you.

3.) Creating the virtual directory 'scripts' and pointing it at the .dll directory.

Resin was fine with the spaces in the foldername. Didn't test the slashes as he had changed them all to be forward slashes already.


On Fri, Sep 17, 2010 at 3:33 PM, Mark Drew <mark...@gmail.com> wrote:
Care to share?

Sent from my iPhone (apologies for my brevity!)


Matthew Williams

unread,
Sep 18, 2010, 7:29:58 AM9/18/10
to ra...@googlegroups.com
I've switched over to host.xml format myself, as I find it easier then having to edit the main resin.conf.  I also needed a better way to have an installer put in a hook to resin through an site deployer.  The entries I've seen for it in the past aren't quite clear, but to get it working:
  1. Create a folder called "hosts" in the main railo directory.
  2. Create a folder that exactly matches the domain name you're using eg "www.mystuff.com".  This means you'll also have to create a "mystuff.com" to capture those that leave off the "www" part.
  3. Create a host.xml file in the domain folder
  4. format it as:
    <host root-directory="c:/myfolder" xmlns="http://caucho.com/ns/resin">
                    <host-alias>www.mystuff.com</host-alias>

  1.                 <web-app id="/" root-directory="." />
    </host>
The above has been working fine for me using apache on Windows 7.


Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com
No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.851 / Virus Database: 271.1.1/3140 - Release Date: 09/17/10 02:34:00

Todd Rafferty

unread,
Sep 18, 2010, 9:36:04 AM9/18/10
to ra...@googlegroups.com
Thank you. Mind putting this up on wiki or do you mind me quoting you on wiki?

Matthew Williams

unread,
Sep 18, 2010, 10:22:50 AM9/18/10
to ra...@googlegroups.com
I'm bloody awful about following up on wiki documentation... so if you have the inclination, go for it ;).

Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog
 
Version: 9.0.851 / Virus Database: 271.1.1/3142 - Release Date: 09/17/10 14:34:00


Gert Franz

unread,
Sep 19, 2010, 8:43:39 AM9/19/10
to ra...@googlegroups.com

Hi all,

 

Here are my notes to this:

 

1.      Under tips and tricks in the wiki you can see what you need to do with the host.xml:

http://wiki.getrailo.org/wiki/Tips_And_Tricks

2.      The next thing is that the setup.exe from Resin DOESN'T need to be executed at all. What you have to do is:

a.     map the .cfc and .cfm files to the isapi_srun.dll directory from the win64 folder either for all websites or for a single one. Here is where you can define a different DLL when you for instance want to use CF9 and Railo on the same box. The setup.exe adds an ISAPI filter that hooks in and grabs control over all files sent to IIS and you see even .gif files being processed by resin. It makes more sense to use the extension mappings. See more here:

http://wiki.getrailo.org/wiki/Installation:Windows

b.     add the extension to IIS and set it to allow

c.     THAT'S it nothing more!

3.      The virtual scripts folder is UNNECESSARY! makes it all easier to handle. If you now create your host.xml files on the fly with something Paul Klinkenberg is writing you can only add your websites to IIS and then you're done…

 

HTH

 

Greetings from Switzerland

Gert Franz

 

Railo Technologies      Professional Open Source

skype: gert.franz         ge...@getrailo.com

+41 76 5680 231           www.getrailo.com

 

image003.jpg
Reply all
Reply to author
Forward
0 new messages