Installing Railo 3 on Linux (CentOS): Part 1
In a previous post I alluded to how I learn by doing and generally go about it the "hard way". What I learn while sometimes being frustrating tends to settle in my brain and stay longer than if it was a piece of cake. It also allows me to then share with you what I learned and hopefully make life a little bit easier for you. Not everyone likes to do things the hard way.
I should also note that the most of the instructions I got from a PDF on installing Railo 2 on Linux, the rest came from contact with Railo support and help Viviotech.
Why CentOS
Before answering the why I should also answer the what. CentOS is a Community Enterprise Operating System. It is a Linux distribution and naturally is also free. So why CentOS then? Well honestly I didn't choose CentOS as such. I decided to get a VPS from Viviotech and it came pre-installed.Before we start
I installed everything as root. I am going to make a couple of assumptions.- Apache is Installed and you will be using Apache as your web server.
- typing "make" at the command prompt returns something like
make: *** No targets specified and no makefile found. Stop.
, which means that make works.
Installing Railo
We are now ready to install Railo. The first thing you need to do is grab the latest release from the Railo website.-bash-3.2# cd /opt -bash-3.2# wget http://railo.ch/down.cfm?item=/railo/remote/download/3.0.0.005/server/unix/railo-3.0.0.005-resin-3.1.2-with-jre-linux.tar.gzOnce Railo is finished downloading you can unpack it using tar.
-bash-3.2# tar -xzf railo*.tar.gz -bash-3.2# ls railo-3.0.0.005-resin-3.1.2-with-jre-linux.tar.gz railo-3.0.0.005-resin-3.1.2-with-jre-linux -bash-3.2#Good, now you have it unpacked you can go ahead and delete the archive file.
-bash-3.2# rm railo*.tar.gzTo make things easier you can also create a symbolic link to the Railo directory instead of trying to type in the whole thing.
-bash-3.2# ln -s railo-3.0.0.005-resin-3.1.2-with-jre-linux railo -bash-3.2# ls railo railo-3.0.0.005-resin-3.1.2-with-jre-linux -bash-3.2#There are a few files we don't need in this install that are packaged by default so we can go ahead and delete them too.
-bash-3.2# rm -rf httpd.exe install-service.bat remove-service.bat setup.exe win32You now have Railo installed and all unnecessary files removed you can now test to see if resin actually starts.
-bash-3.2# /opt/railo/bin/httpd.sh start Resin/3.1.2 started -server ''. -bash-3.2#Congratulations Step 1 is complete. Opening a browser and pointing it to http://<ipOfLinuxBox>:8600/ should produce the standard Railo start page.
Conclusion
This may seem like a lot of work in comparison to the single click you need to install Railo on a Windows box, but this is *Nix machine and you have to come prepared to do stuff manually. In the next part we will make (compile) and install mod_caucho, which is an Apache module that allows interaction between Resin and Apache. Without this module you can't use Apache as your web server to serve cfml pages.
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 max2007 max2008 misc open source programming railo software technology ui
Recent Entries
No recent entries.
Blogroll
An Architect's View
CFSilence
Rey Bango
TalkingTree

best,
bill
http://blog.mxunit.org/2008/11/yeah-but-does-it-ru...
bill
/opt/railo/bin/httpd.sh: line 34: exec: java: not found
any ideas?
The CentOS doesn't come with Java installed you need to do it yourself. At the command prompt type
-bash-3.2# yum install java
it will download and install java for you.
Railo comes bundled with the JRE so you should be able to set up your JAVA_HOME to point to it, but I installed the full jdk :)
I did a yum list and it looks like the version of Java in the repo is 1.4.2 (I'm on a Viviotech VPS too). Were you able to get the 1.6 version installed using yum?
[root@localhost railo]# bin/httpd.sh start
conf/resin.conf:5: java.lang.NoSuchMethodError: method java.lang.Class.isAnnotationPresent with signature (Ljava.lang.Class;)Z was not found.
3: -->
4: <resin xmlns="http://caucho.com/ns/resin"
5: xmlns:resin="http://caucho.com/ns/resin/core">
6:
7: <!-- adds all .jar files under the resin/lib directory -->
Thanks
Any experience getting this going with httpd 64 bit on Centos?
Sorry I haven't yet tried with the 64bit Apache. I've seen a bit of traffic on the railo google groups about 64 bit versions. I will let you know if I see something there, if not then I will give it a try this week myself.