Cheap VPS & Xen Server


Residential Proxy Network - Hourly & Monthly Packages

Installing Apache And ColdFusion 9 On Ubuntu 9.04


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.

sudo reboot

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

1a

Test the Apache install:

1c

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

1b

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.

2

Make the installer file executable:

chmod +x ColdFusion_9_WWE_linux.bin

Run the installer:

sudo ./ColdFusion_9_WWE_linux.bin

3

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).
Select 2.

4

I will install the standard version with jrun.
Select 1.

5

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.

6

This is a clean server so I do not have any prior versions of ColdFusion to deal with.

7

I want to hook ColdFusion into Apache so I will select option 1.

8

Again select 1.

9

The default location for the apache.conf files in Ubuntu is:

/etc/apache2

10

Where is the Apache program binary file?

The default location is:

/usr/sbin/apache2

11

Where is the control file that you use to start and stop the Apache web server?

Ubuntu uses init.d:

/etc/init.d/apache2

12

We are now ready to continue with the install.

13

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.

/var/www

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.

14

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.

15

Enter your administrator password:

16

I want to enable RDS.
Select yes and set a password:

18

You will see an overview and once you press enter the install will begin.

19

The final steps

Once the installer has completed you need to start the ColdFusion service.

20

Press enter and type:

sudo /opt/coldfusion9/bin/coldfusion start

21

Give this some time to start up then visit:

http://ipaddressofserver/CFIDE/administrator/index.cfm

You will need to enter the administrator password to continue the setup.

22

This will complete the install.

23

And you will be able to log into the administrator section.

23a

You may like to set the default document.

Add this to /etc/apache2/apache2.conf:

DirectoryIndex index.cfm

Then run:

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.

cd /var/www

sudo rm index.html

sudo vi index.cfm

24

You can now run this file by simply entering the IP address of the ColdFusion server.

The default document will now be index.cfm.

25

You now have ColdFusion 9 running on Apache on Ubuntu 9.04.

 

Comments

comments