| Getting Macromedia ColdFusion MX (or JRun) working with IIS6.0 (Windows .NET Server) | |||||||
|
After installing Windows .net Server (RC1) I was a little dismayed to see that Macromedia's ColdFusion MX
doesn't install properly. You can, however, perform a standalone server install with CFMX which installs,
and enables Macromedia's JRun server (an integrated part of CFMX) on port 8500. This, however, won't let you
run CF pages in IIS6. This writeup provides information on how to connect JRun to IIS6, and also decribes how
to disable JRun's integrated web server. When you're finished with these procedures, you SHOULD be able to run
cfm pages in IIS without any problems. My disclaimer: try this at your own risk. While I'm running this setup
with no problems, some may experience problems - so this is your warning ;) I don't provide any support, but if
you have problems or questions, try emailing me at phyd@phydiux.com, and
maybe I can help you out. Written: 09/08/2002 ~6:30pm. |
|||||||
| Getting started... | |||||||
You'll need to perform the following steps for installation:
|
|||||||
| Installing CFMX | |||||||
| We start out by installing CFMX. Go through the installation, and install CFMX with the Standalone Web server (which uses port 8500.) Yes, I'm sure, you want to install the standalone server. That was simple... | |||||||
| Stop IIS 6.0 | |||||||
|
you'l now want to open up the IIS6 MMC and stop IIS services
|
|||||||
| Registry Modification | |||||||
|
Next, we want to modify the registy (using regedit)
We want to modify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\ MajorVersion from 6 to 5. This is the registry value that JRun server looks at when making it's IIS connections. If you don't modify this, JRun's connector service will come up with an error.
|
|||||||
| Jrun Connections | |||||||
|
We've installed CFMX, stopped IIS6.0, and modified the registry. Now, it's time for the Jrun connector.
run %cfmxdir%/runtime/bin/wsconfig.exe (be patient, it may take a few seconds to load up, and it opens a dos window and everything)
next, click on the "add" button, which bring up the Add Web Server Configuration window
Typically, the default settings are appropriate for your installation. make sure that IIS Web Site under the Web Server Properties
is set to "All". Now, click on "Advanced settings"
Under IIS Settings, click "Use Application Mappings" and add all extensions shown in the pic above (you'll have to add .cfm and .cfml)
in addition, you can also add .cfc if you use that extension at all.
Jrun is now configured to work in IIS6.0, but we're not finished yet. |
|||||||
| Add new Web Service Extension in IIS6 | |||||||
|
This is where I come up with the %cfmxdir% variable. anything like %cfmxdir% is the ColdFusion install directory. ;)
Go into the IIS6 MMC snap-in, open up Web Service Extensions, and click on "Add a New Web service extension"
Now, IIS is configured to allow that extension to run |
|||||||
| Registry Modification (again) | |||||||
|
Change the registry back
Modify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\ MajorVersion from 5 back to 6.
|
|||||||
| Jrun Server Modification | |||||||
|
go into control panel/administrative tools\services and shut down all services beginning with
"Cold Fusion" Open up explorer and go to %cfmxdir%\runtime\servers\default\SERVER-INF and open up jrun.xml in notepad search for ".webservice", you should find this:
Change the "deactivated" attribute from "false" to "true"
If you're running multiple websites in IIS, you'll also want to do the following:
search for ".JRunProxyService", you should find this:
change the "cacheRealPath" to "false" as the xml says :) This way, if you're running multiple
sites on your IIS server, you won't have caching problems....
go into control panel/administrative tools\services and start all services beginning with
"Cold Fusion" Jrun server now has the internal web server disabled, and doesn't have a caching problem with IIS |
|||||||
| You're done! | |||||||
|
Make sure IIS is running, make sure that CFMX is in the Web Service Extensions section of IIS,
and make sure the ColdFusion services are running. You will have to add .cfm files to your default
documents in IIS if you want, and you should be all set! Update: After writing this all up, I did a search on groups.google.com and found a similar configuration, posted by a person that calls him/herself "j_r"... you can see the here. j_r's version and mine are similar, but his requires access to another installation of ColdFusion MX and isn't quite as detailed. |
| Appendix: | |
I'll be adding to this appendix because I've received the same questions over and over again about this installation.
|