Ubuntu is now an officially support Operating system for ColdFusion 9. This is a guide on installing Apache and ColdFusion 9 on a clean install of Ubuntu 9.04. This starts with a clean install on Ubuntu 9.04 with no additional options selected during the install. If you are planning on running PHP side by side with ColdFusion my recommendation is to set up PHP first then ColdFusion.
Update the server:
sudo apt-get update
sudo apt-get upgrade
Install ssh server so we can work remotely:
sudo apt-get install openssh-server
Install a slightly better version of Vim (not needed if you don’t use vi):
sudo apt-get install apt-get install vim-nox
Reboot to apply any changes from the upgrade.
At this point I switch to a remote ssh client (putty Windows or terminal on OSX). We are now ready to install Apache.
sudo apt-get install apache2
I like to make one change to the default index.html for testing:
sudo vi /var/www/index.html
Test the Apache install:
OK Apache is functioning.
There is one additional library required for C++ custom tags, webservices and some cfimage functionality to work properly. If you do not install this you will be warned in the installer process:
sudo apt-get install libstdc++5
At this point you need to download ColdFusion 9. This example is using the 32 bit Linux version. I don’t need ftp on this server so I will use scp to move the ColdFusion 9 installer to my home directory.
Make the installer file executable:
chmod +x ColdFusion_9_WWE_linux.bin
Run the installer:
You will need to accept the agreements to continue.
I will install the trial (you can put in a serial number at a later time).
I will install the standard version with jrun.
I will install all the default components. If you do not need a subcomponent opt it out.
Select 5. (missed a screen shot here)
The standard install path is acceptable. Just press enter.
This is a clean server so I do not have any prior versions of ColdFusion to deal with.
I want to hook ColdFusion into Apache so I will select option 1.
Again select 1.
The default location for the apache.conf files in Ubuntu is:
Where is the Apache program binary file?
The default location is:
Where is the control file that you use to start and stop the Apache web server?
Ubuntu uses init.d:
We are now ready to continue with the install.
Set the location of CFIDE in thw webroot.
Select the location of the web root for Adobe ColdFusion 9. This is where the installer places the Adobe ColdFusion 9 Administrator. This directory must be the web root for one of the websites to be configured for use with Adobe ColdFusion 9.
This location can be elsewhere and can be moved after the install. To keep things simple I will set this up in the default webroot.
Enter the name of the runtime user. This user must already exist on the system.
I will run ColdFusion as nobody so you can just press enter.
Configuring OpenOffice installation with ColdFusion will enable office documents to be processed using OpenOffice.
I don’t need this so I will select 2 and skip this step.
Enter your administrator password:
I want to enable RDS.
Select yes and set a password:
You will see an overview and once you press enter the install will begin.
The final steps
Once the installer has completed you need to start the ColdFusion service.
Press enter and type:
sudo /opt/coldfusion9/bin/coldfusion start
Give this some time to start up then visit:
You will need to enter the administrator password to continue the setup.
This will complete the install.
And you will be able to log into the administrator section.
You may like to set the default document.
Add this to /etc/apache2/apache2.conf:
sudo /etc/init.d/apache2 restart
You can now connect to your ColdFusion 9 server with ColdFusion builder (or any other tool) and make a test page in /var/www.
I will use vi to make a test file; I will also remove the original index.html.
sudo rm index.html
sudo vi index.cfm
You can now run this file by simply entering the IP address of the ColdFusion server.
The default document will now be index.cfm.
You now have ColdFusion 9 running on Apache on Ubuntu 9.04.