Learning CF9: Installing CF9 Alongside CF8

Posted on October 18, 2009 at 2:28 PM in ColdFusion

In the first post of what I hope turns out to be a series of posts about CF9, I wanted to give a couple of tips on getting CF8 and CF9 running alongside one another. It is really nice to be able to have both running simultaneously.

Multi-Server Setup

The most important point I can make here is that you really need to run a multi-server setup. If you are already running CF8 in a multi-server setup, then there is no need to read this section. :-) If, however, you are running CF8 as a standalone server, I would highly recommend that you either (a) reinstall CF8 in a multi-server setup, or (b) install CF9 in a multi-server setup and use CF8 where I reference CF9 and vice-versa.

Create a CAR

Arguably the next most important thing is to create a CAR - ColdFusion Archive - of your current server settings. This is done via the CF Administrator under Packaging & Deployment > ColdFusion Archives.

NOTE: This requires either an Enterprise or Developer Edition installation. If you have installed the Standard Edition, you can revert to the Developer Edition by removing the serial number.

Create CF9 EAR File

Run the CF9 installer, and select the J2EE/EAR File option. Keep a note of where the EAR file is saved.

Deploy CF9 to JRun

The next step is to follow the "Expand the EAR file" instructions here.

Configure CF9 with Apache

Next, follow the instructions here to get CF9 running alongside CF8 on Apache.

NOTE: While Scott's article talks about CF7 and CF8, it is still applicable to CF8/CF9.

For the sake of example, here is a VirtualHost that I used to create a CF9 test bed. I also use it for access to the CF9 Administrator.

  1. <VirtualHost *:80>
  2. DocumentRoot "C:wwwcf9fun"
  3. ServerName cf9.dev
  4. Alias /CFIDE "F:JRun4serverscf9cfusion-earcfusion-warCFIDE"
  5. JRunConfig Apialloc false
  6. JRunConfig Serverstore "F:/JRun4/lib/wsconfig/cf9/jrunserver.store"
  7. JRunConfig Bootstrap 127.0.0.1:51000
  8. <Directory "F:JRun4serverscf9cfusion-earcfusion-warCFIDE">
  9. Options Indexes FollowSymLinks
  10. AllowOverride None
  11. Order allow,deny
  12. Allow from all
  13. </Directory>
  14. </VirtualHost>

Complete CFAdmin Setup

Using the 'cf9.dev' VirtualHost, go to http://cf9.dev/CFIDE/Administrator/index.cfm and complete the CF9 Admin setup.

Deploy CAR File

Once the CF9 Admin setup has completed, login to the CF9 Admin and deploy the CAR file that you created earlier. Now you'll have all of your DSNs, mappings, etc. setup in your new CF9 install.

Comments
(Comment Moderation is enabled. Your comment will not appear until approved.)
CodeBassRadio

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

May 2024
S M T W T F S
« Apr  
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Subscribe

Enter a valid email address.

The Obligatory Wish List