Lately I have been playing around a little with Ubuntu. The server version of the OS is very similar to the desktop version. The main difference is that there is no GUI. This can be solved by installing the Ubuntu UI. However, you can do what I did and install Webmin. It is a browser based UI that allows you to do just about everything. This is because I am CLI illiterate.

Once I got CF running I wanted to set it up so that it would auto start with the OS. Since I had Webmin this was very easy. Well, kinda, I had to figure out what the start up command would be. So after digging and then trial and error here are the steps I came up with.

With Webmin:

  • Go to: System --> Boot up and Shutdown --> Create new
  • Fill out form:
    • Name: coldfusion
    • Description: [optional]
    • Boot up commands: /opt/coldfusion8/bin/coldfusion start (alter path based on your install)
    • Shutdown commands: [leave blank]
    • Start at boot time?: yes
    • click Create

  • Go to: Others --> File Manager
  • Set permissions:
    • Browse to /etc/init.d
    • Select file "coldfusion"
    • Set permissions to read, write, execute, for all.
    • Click Save

With CLI:

  • CD to /etc/init.d
  • Create file "coldfusion"
  • Open file with VI or other text editor
  • Paste following into file and save file. (change path to reflect your install path):
    view plain print about
    1#!/bin/sh
    2
    3case "$1" in
    4'start')
    5    /opt/coldfusion8/bin/coldfusion start
    6    ;;
    7'stop')
    8    ;;
    9*)
    10    echo "Usage: $0 { start | stop }"
    11    ;;
    12esac
    13exit 0
  • Change permissions on file to "777"

You are now done. You can reboot the server if you want to make sure that ColdFusion starts on boot. Hopefully this will save you from some of the frustration I had trying to figure this out.

BTW... there is a script that comes with CF to do this very easily. However, the script will not run on Ubuntu.

Till next time...

--Dave