Friday 22 January 2010

Adobe ColdFusion 9 in parallel with Macromedia ColdFusion 6 (or 7,8)

I managed to install Adobe ColdFusion 9 on my machine when I was contracting in Exeter. First I managed to convince them to move forward to use CF9 and helped them by installing CF9 in parallel to Macromedia ColdFusion 6 on their DEV machines so they can test their existing code and compare between both versions, I also used CF9's excellent feature "Code Analyser" to analyse the existing code, and it was a great help:
Here are the steps I took to Install CF9 and get it working:
(I achieved this by going through few blogs: I can't remember the url's, but update here)

CF9 Installation Guide
These are the steps you need to take to install CF9 in parallel to CF6 and uses Apache web server:
1) Download CF9 Trial version from https://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion
2) Stop CF 6 Admin service (Macromedia JRun Admin Server ) (if running), and also turn Start-up Type to Manual
3) Stop CF6 Cfusion service (Macromedia JRun CFusion Server)
4) Stop CF6 Default service (Macromedia JRun Default Server) (if running), and also turn Start-up type to Manual
5) If any other CF 6 services are running, like ODBC, Search/ Verity – turn them off
6) Find the CF 9 installer and run it by double clicking it
7) Opt for the trial version
8) (IMP) Change the Folder (Default option of Jrun4) to CF9Jrun4 as Jrun4 is being used by CF 6
9) Opt for installation type Multi-Server (2nd Option), (That’s what we want in here)
10) And Opt for in-built Application web server (You don’t want to play with existing Apache web server config file)
11) You don’t need Any of ODBC, .Net services except documentation (But you can make your own call here), I would say don’t select them for this test environment.
12) Let it install and finish, if you get any message of failure, look at the log, normally you get warning about some folders can’t be removed, you can ignore this.
13) Open jrun.xml from C:\CF9Jrun4\servers\admin\SERVER-INF
a. Find “jrun.servlet.http.WebService” service and change port to 8001 (or any no, which is not being used by CF6)
b. Find “jrun.servlet.jrpp.JRunProxyService” service and change port to 51002 (or any no, which is not being used by CF6)
14) Open jrun.xml from C:\CF9Jrun4\servers\cfusion\SERVER-INF
a. Find “jrun.servlet.http.WebService” service and change port to 8383 (or any no, which is not being used by CF6)
b. Find “jrun.servlet.jrpp.JRunProxyService” service and change port to 51000 (or any no, which is not being used by CF6)
15) Save both files and re-start your machine
16) Open “Jrun Launcher” from Start/All Programs/Adobe/Coldfusion 9 (multi server version)/
a. Start Admin server
b. Start Cfusion server
17) Go To Start/All Programs/Adobe/Coldfusion 9 (multi server version)/ and right click on “Adobe ColdFusion 9 Administrator” and click on properties and change port to 8383 from 8300
18) Go To Start/All Programs/Adobe/Coldfusion 9 (multi server version)/ and right click on “JRun Management Console” and click on properties and change port to 8001 from 8000
19) Go To Start/All Programs/Adobe/Coldfusion 9 (multi server version)/ and run “Adobe ColdFusion 9 Administrator” by clicking on it
20) Enter admin password and let it run for first time and follow the on screen instruction
21) When it is ready – click ok
22) You will see CF Admin screen, now set up
a. Mail server
b. Custom Tags
c. CFX Tags
d. Data Sources
e. Or any other settings like debugging, mappings if you want to.
By loading a “*.car” file or manually
23) Open Apache Config file (httpd.conf), and go to the virtual host section of the web site you want to run under CF9 and copy and paste following three lines after the end of alias or before the
JRunConfig Apialloc false
JRunConfig Serverstore "C:/CF9Jrun4/lib/wsconfig/1/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51000

Make sure you got the right path, though you won’t find any folder after lib and you shouldn’t be worried about this.
Save it and re-start Apache web server.


That’s it, happy CF9 server experience 

Friday 1 January 2010

Happy New Year

2009 was a mixed year for me, I got hit by recession, Emojo was closed because of this, the co I worked for almost a year and half. I started contracting, which I was thinking from quite a long time. On 21st Dec I joined Kingston Communications - Exeter as ColdFusion contractor, initially the contract is of 4 weeks with a possible extension. Lets see how it goes. I have been in talks with 2ndByte based at Godalming, Guildford, I might start here in last week of Jan.

I am looking forward to be more productive in 2010.

Best wishes to all.