Rob Brooks-Bilson
Tech, Photography, Stuff
Tech, Photography, Stuff
February 21, 2012
Here's a quick visual walk through for installing ColdFusion 10 in Server Configuration with Apache as the web server on Windows.
Launch the installer, click next.

Accept the license terms, then click next.

Enter your serial number, choose the 30-Day Trial or Developer Edition. Click next.

Choose Server configuration. If you've installed other versions of ColdFusion in the past, you'll notice that there's no longer a Multi-Server option. This is because ColdFusion 10 has standardized the install/directory structure. The Server configuration creates a single, stand-alone instance of ColdFusion with Tomcat embedded as the JEE server. From there, you can create and configure additional instances of ColdFusion from withing the ColdFusion Administrator. To proceed, click Next.

Select the services you want installed and click next.

Enter a username and password for the remote server administration account. Click next.

A new feature in ColdFusion 10 will check the strength of the password you entered and make recommendations if it's found to be weak. Click yes if you want to modify the password you entered. If you want to ignore the warning and proceed, click No.

If you are installing ColdFusion 10 alongside a previous version, you may get a screen telling you that a previous version of the .Net service has been detected. Click next.

Select the directory where you want ColdFusion to install and click next.

It's now time to configure Apache as our web server. Click Add.

Select Apache as the web server.

Find the location of your Apache /conf directory:

Find the location of your Apache httpd.exe file:

Make sure everything is correct and click OK.

You should now have the configuration setup for Apache. Click next.

Enter a password to restrict access to the ColdFusion Administrator. Click next.

The password strength dialog may appear again. Click Yes to change your password or No to accept the one you just entered.

Choose whether or not you want to enable RDS. If you do enable it, provide a password. Click next when you are done.

You may get the password strength dialog again. Click Yes to change your password or No to accept the one you just entered.

If you want ColdFusion to automatically check for updates, check this box. This is a new feature in ColdFusion 10 and I highly recommend it. The check only occurs when you log into the ColdFusion Administrator. When you are done, click Next to proceed.

Review the information for the install. Click Install when you're ready to go.

The installer will now move through a series of screens highlighting features as the program installs.

You'll be greeted with a success message when the installer has completed. Click on the Done button to launch the ColdFusion Administrator and complete the install process.

You should now see the Configuration and Settings Migration Wizard in your browser. This step will completely your server configuration and migrate settings from any previous versions of ColdFusion the wizard detects. You'll need to enter the password you provided for the ColdFusion Administrator. Once you're ready, click Login.

You'll see a screen letting you know configuration is proceeding. The process can take several minutes.

When the process is complete, you can click Ok to launch the ColdFusion Administrator.

Congratulations, you've successfully installed ColdFusion 10 with Apache as your web server.
To see what changes ColdFusion 10 made to your Apache configuration, open your Apache http.conf file. You should see the following at the bottom of the file:
This directive tells Apache to load up the ColdFusion Tomcat/Apache connector configuration from an external file called mod_jk.conf. Go ahead and take a look at that file (I've added spacing to make it easier to read):
This file sets up various mapping and configuration options as well as maps the location for ColdFusion's /CFIDE directory. Note that it places /CFIDE inside of ColdFusion 10's default webroot. It's generally not a good idea to expose your /CFIDE directory to everyone. There are many ways to secure your /CFIDE directory. For specifics, see Pete Freitag's ColdFuion Lockdown Guide.
That's about it for the install. In my next post, I'll be showing how you can extend this installation to include multiple instances of ColdFusion, each with multiple Apache virtual hosts.
2/28/12 5:00 PM
HI Rob
Good post. I think it would be good to explain in part 2 how someone can have multiple virtual hosts, some with CF9 / JRun and some with CF10 / tomcat in parallel.
Ive managed to do this myself, but would like to see if there is a better way to how ive done it.
What i did
1. make CF10 the default handler by letting it install into httpd.conf
2. disable the JRun settings in httpd.conf except the 'loadModule' line
3. add JRun Settings back in to each virtual host i want to run CF9
JRunConfig Serverstore "C:/JRun4/lib/wsconfig/2/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51000
JRunConfig Apialloc false
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
I did run into trouble with the CF10 install at first because I already had 9 installed into Apache. Somehow i Managed to get the CF9 administrator code under CF10 and it ran the upgrade wizard from cf9 instead of 10!...things got weird.
6/6/12 10:32 AM
Pat,
This is basically how I run CF9/CF10 on the same machine. In my httpd.conf file on my local machine, I have something like this at the end:
# JRun Settings
LoadModule jrun_module "C:/JRun4/lib/wsconfig/1/mod_jrun22.so"
Include conf/vhosts/*.conf
Include "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\mod_jk.conf"
For cf9, each virtual host has it's own conf file in /vhosts. In each conf file are the jrun directives.
For CF 10, right now, I have all of the vhosts in the mod_jk.conf file. I'll probably change that later as I prefer one file per vhost, but you get the idea.
8/10/12 12:10 PM
This was very helpful. Thank you for taking the time to document it with images. I was stuck on the web server configuration so this helped a lot.
1/28/13 1:50 AM
Is it possible to have Apache installed on one server and CF on another and then configure these both as shown above by you?
I want to make the servers installed with Apache as webserver and make load balancing with multiple coldfusion servers.