These instructions cover installing ColdFusion 9 on VirtualBox.
This will setup a virtual server running ColdFusion and MySQL.
Shared drives will be configured between the guest and host to share a CFEclipse workspace.
Virtual directories will be configured in Apache to map to those workspaces.
WARNING: These instructions are for MY use and may or may not work for you. If you erase your hard drive, blow up your computer or otherwise harm yourself, your cat or others while following these instructions I am not responsible.
VirtualBox
Apache
Adobe ColdFusion 9
MySQL
phpMyAdmin
Host: Windows Vista
Guest: Ubuntu 9.10
VirtualBox (latest version)
ColdFusion Server 9 (32bit for Ubuntu 9)
Ubuntu Server 9.10 (32 bit)
This assumes some basic working knowledge of VirtualBox. You will need to mount iso images, etc. VirtualBox is very similar to VMWare and other virtual machines. If you have problems - please consult VirtualBox site for help.
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" value="22"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" value="8888"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" value="TCP"/>
Install Ubuntu Server
Install Apache ( sudo apt-get install apache2 )
Open a browser and confirm you can access: http:\\localhost
Install MySQL ( sudo apt-get install mysql-server )
Install phpmyadmin ( sudo apt-get install phpmyadmin ) (installing this is optional)
Install VirtualBox Guest Additions
install some prerequisites ( sudo apt-get install build-essential linux-headers-`uname -r` )
click Devices > Install Guest Additions from main menu
mount the media: ( sudo mount /dev/cdrom /media/cdrom )
verify you can access guest addition files ( ls /media/cdrom )
run the appropriate installer ( sudo ./media/cdrom/VBoxLinuxAdditions-x86.run )
Setup shared drive to move files between Windows (host) and Linux (guest)
create a folder on the guest ( D:\temp\vm\shared ) and give it a name ( 'vbshared' )
creat folder on Linux ( sudo mkdir /media/vbshared )
mount the share within the guest ( sudo mount -t vboxsf vbshared /media/vbshared )
On the host - download ColdFusion for Linux into your shared directory ( D:\temp\vm\shared )
On the guest - install C++ library that is required by ColdFusion: ( sudo apt-get install libstdc++5 )
Run the ColdFusion installer 'sudo ./ColdFusion_9_WWE_linux.bin'
Follow installation prompts:
Click enter a zillion times and accept license agreement
Select to install the Developer Edition
I'm a
KISS person so I select the basic Server configuration
Continue with defaults
Add a Web Server Configuration - Select Apache
Default paths:
Apache config: /etc/apache2
Apache binary: /usr/sbin/apache2
Control file: /etc/init.d/apache2
Webroot: /var/www
Skip OpenOffice integration
Enable RDS
Verify installation information
Start ColdFusion: sudo /opt/coldfusion9/bin/./coldfusion start
-
Configure ColdFusion to start on startup
mount -t vboxsf vbshared /media/vbshared
mount -t vboxsf workspace /var/www/workspace
This is another great spot to stop and take a VirtualBox snapshot!
