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.
- <VirtualHost *:80>
- DocumentRoot "C:wwwcf9fun"
- ServerName cf9.dev
- Alias /CFIDE "F:JRun4serverscf9cfusion-earcfusion-warCFIDE"
- JRunConfig Apialloc false
- JRunConfig Serverstore "F:/JRun4/lib/wsconfig/cf9/jrunserver.store"
- JRunConfig Bootstrap 127.0.0.1:51000
- <Directory "F:JRun4serverscf9cfusion-earcfusion-warCFIDE">
- Options Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
- </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.
Latest Articles
- No recent entries.
Categories
- ColdBox (21) [RSS]
- ColdFusion (92) [RSS]
- Fusebox (3) [RSS]
- General (22) [RSS]
- jQuery (15) [RSS]
- Kalendar (1) [RSS]
- Linux (1) [RSS]
- Mura CMS (1) [RSS]
- Railo (1) [RSS]
- Rants (5) [RSS]
- Transfer (8) [RSS]
- Uni-Form Tag Library (36) [RSS]
There are no comments for this entry.
[Add Comment]