Installing Railo on CentOS with Apache

I will add more to this later but wanted to write down these core steps before I forgot them. Hopefully this will save you some, since the other documentation I have found is mainly for installing Railo on Ubuntu Server.

Here are the steps on how I was able to generate the mod_caucho.so on CentOS for Apache.

1. I installed the package "httpd-devel" via Yum

2. In the Railo Directory I ran the following Commands:

./configure --with-apache=/usr/include/httpd

make

make install
3. That automatically put the mod_caucho.so into the /etc/httpd/modules directory

4. I then added this to the /etc/httpd/conf/httpd.conf file

LoadModule caucho_module modules/mod_caucho.so
I also added this right below the LoadModule
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes

5. I then restarted apache.

6. In resin.conf I added this line:

<host id="mydomain.com">
<web-app id="/" document-directory="/home/randy/mydomain.com"/>
<host-alias>www.mydomain.com</host-alias>

</host>
7. When you save Railo will restart automatically.

To get Railo to not restart automatically change this line:

<dependency-check-interval>2s</dependency-check-interval>

to
<dependency-check-interval>-1</dependency-check-interval>

You still have to follow the instructions to finish up the configuration. The PDF I am following is:

Railo Apache Install Guide

Common Linux Commands List

I don't work on Linux everyday so I often forget the commands that I use from time to time. I started keeping the most commonly used commands in my notes, but I often misplace those notes. I am going to keep updating this blog post with my commonly used Linux commands so I have them for easy reference in the future:

1. ps -A | grep mysql -- Find the process & id of MySQL.

2. find / -name "file" * -- This finds a file. There may be a quicker way to do this.


If you have any commands you use on a regular basic and think others would benefit send them on over and I will add them to the list.


BlogCFC was created by Raymond Camden. This blog is running version 5.7.