Installing Railo 3 on SUSE 10 with Apache2 and Tomcat: Part 1
Earlier this week I mentioned that I had successfully installed Railo on a SUSE 10 Enterprise virtual machine. I had also said that I would provide a step-by-step guide on how you can achieve the same. Hopefully this guide will help you set up your instance a heck of a lot faster than it took me to set up mine.
Getting Started
The first thing I did was download the pre-configured virtual SUSE 10 Appliance from the vmware Marketplace. The only problem with the Appliance is that it's pretty "bare bones". Unpack the zip file in your Virtual Machines directory or set up a new Datastore and import that VM.Setting up SUSE
Start up your VM. You will probably notice that your VM never gets assigned an IP address, that's because the install is so basic it doesn't include a network card. You will have to go through the VMware Remote Console and set up a Network card before you can continue using more traditional means like Putty.Setting up a Network Card
Once Gnome desktop is up you can click on the Computer symbol and start the Yast Control Center. Click on Network Devices>Network Card and use the "Traditional Method". Follow the directions provided and configure the network card. Once this step is completed start up a Gnome terminal instance and type "ifconfig" at the command prompt. You should now see an entry for eth1 (or eth0). Looking back at the VMware Intrastructure Web Access page you should now see the same IP on the Summary tab. You are good to go with the more traditional method using Putty, so go ahead and log off and close the memory hog of a remote panel!Setting up the Install Source
Using putty connect using user:root and pw:root. The next thing you need to do is start the YAST control center. Once the control center is up and running you will need to set up an Installation Source that will allow you to install all the bits and pieces that don't come installed by default on the appliance. Add a new source of type FTP, for the server name you can add ftp.sunet.se, the full directory path is then "pub/Linux/distributions/opensuse/distribution/10.2/repo/oss/suse" leave the anonymous Authentication checked and then Alt+O to accept. It will take a while to add the catalog since it's doing it over the Internet. Once the catalog is added then Alt+F to finish (which also seem to take a while).Installing Apache2 and Mod_JK
Still in Yast head over to Software Management and search for Apache and add the following modules:- apache2
- apache2-devel
- apache2-mod_jk
Download and Install Tomcat
Before you can install Tomcat you need to have the Java JDK installed download the self extracting bin file from sun's site. Change to the directory where you downloaded the bin file and make it executable.chmod +x jdk*.bin
./jdk*.bin
mv jdkj1.6.0_12 /usr/java
Now we have the Java JDK on the machine we need to get Tomcat.
wget http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
tar xvzf apache-tomcat-6.0.18.tar.gz
mv apache-tomcat-6.0.18 /usr/local/tomcat
vi /etc/init.d/tomcat
# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/tomcat.pid
export JAVA_HOME=/usr/java
case $1 in
start)
sh /usr/local/tomcat/bin/startup.sh
;;
stop)
sh /usr/local/tomcat/bin/shutdown.sh
;;
restart)
sh /usr/local/tomcat/bin/shutdown.sh
sh /usr/local/tomcat/bin/startup.sh
;;
esac
exit 0
chmod 775 /etc/init.d/tomcat
/etc/init.d/tomcat start
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java
Ok that's it for now, The next step will be to install Railo into Tomcat and connect Tomcat to Apache via Mod_jk

Subscribe
Subscribe via RSS
Follow me on Twitter
Or, Receive daily updates via email.
Tags
adobe air ajax apple cf community cfml coldfusion examples ext flash flex google javascript jquery max2007 max2008 misc open source programming railo software technology ui
Recent Entries
No recent entries.
Blogroll
An Architect's View
CFSilence
Rey Bango
TalkingTree
