A few months back I was tasked with getting Railo to run on MediaTemple’s DV server. It was a success, but a bit hairy at points. I had to cobble together instructions from several other guides and wing it in places that they didn’t cover.
What follows is instructions to get Railo, and thus ColdFusion support, running on a server stack that doesn’t support it out of the box.
A few notes:
To the best of my knowledge and testing, installing Railo will not interfere with the default Apache, MySQL, or PHP’s ability to serve pages. Also I am posting these instructions in the event you want or have to put Railo on a DV server. If you’re just looking for solid Railo hosting, I suggest VivioTech.
Also, This guide assumes you have at least basic knowledge of VI or its sibling VIM. If not, head over here to get yourself acquainted.
Tutorials used in the creation of this guide:
yum install make nano httpd-devel openssl-devel
cd /optThe following wget command and the URL are all one line:
mkdir soft
cd soft
wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u23-linux-i586.bin?BundledLineItemUUID=5jqJ_hCvx5YAAAEsdwgpG9Ey&OrderID=c4OJ_hCvOFIAAAEsaQgpG9Ey&ProductID=QhOJ_hCw.dUAAAEsFIMcKluK&FileName=/jdk-6u23-linux-i586.bin
This will download the JDK. If the download looks like it is hanging you can press ctrl+c to break the wget command.Now to install the JDK. The wget command may have downloaded the file with a large filename. Utilize tab completion for the following steps. In this instance, I would literally type
./j{tab} and bash should autocomplete the rest of the path ./jdk-6u23-linux-i586.bin?AuthParam=1292000585_91de5ecde936ffb92e8f395cbe369400&TicketId=nod2B1wRR3N7lesslEaeVZeZcg==&GroupName=CDS&FilePath=%2FESD6%2FJSCDL%2Fjdk%2F6u23-b05%2Fjdk-6u23-linux-i586.bin&File=jdk-6u23-linux-i586.bin
Follow along with the notes it produces and press 'enter' where necessary. Now we have a folder named jdk1.6.0_23. Let's create a symlink so that we can upgrade java later if necessary.
ln -s jdk1.6.0_23 javaOur Java directory is now
/opt/soft/java
Let's add java to our path
nano /etc/profile.d/java.shAdd the following lines to java.sh:
export JAVA_HOME=/opt/soft/jdk1.6.0_13/Save the file and when complete, run this command to make it executable:
export PATH=$JAVA_HOME/bin:$PATH
chmod +x /etc/profile.d/java.sh
Log off your SSH connection and re-login. Try:
java -versionIf Java is installed correctly you should see:
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode)
Find the latest Railo stable release download URL. You want the 'with-jre' option. Technically we don't need its included JRE, but when this guide was written it was the only available download with configure and make files.
cd /opt/soft
tar -xvzf railo-3.1.2.001-railo-express-with-jre-linux.tar.gz
Create a symlink just as we did with Java
ln -s railo-3.1.2.001-railo-express-with-jre-linux railo
cd railo
Now to build and install it
./configure --with-java-home=/opt/soft/java/ --with-apxs=/usr/sbin/apxsNote: At the time of this writing the 'make' command will fail. If that occurs proceed with the following steps.
make
make install
mv Makefile.in Makefile.in.tmp
mv Makefile.am Makefile.in
make reset
./configure --with-java-home=/opt/soft/java/ --with-apxs=/usr/sbin/apxs
make
make install
If everything went well, the following lines should be added to the end of your httpd.conf file at /etc/httpd/conf/httpd.conf
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
Next we need to setup a location to check on the caucho status:
cd /etc/httpd/conf.dEnter the following lines:
vim caucho.conf
<Location /caucho-status>Save and exit the file.
SetHandler caucho-status
</Location>
Finally we add our domain name to the resin.conf file:
cd /opt/soft/railo/conf
vim resin.conf
Find a spot between </host-deploy> and the next comment or opening tag such as <host id="" … and enter the following:
<host id="example.com" root-directory="/var/www/vhosts/example.com">Save and exit the file.
<host-alias>www.example.com</host-alias>
<web-app id="/" root-directory="httpdocs" />
Let's setup resin to startup on boot. We need to copy the startup script (that was created for us when we built resin) to the /etc/init.d folder. We change its permissions and then set it up to run on boot.
cp /opt/soft/railo/contrib/init.resin /etc/init.d/resin
cd /etc/init.d
chmod +x resin
chkconfig --add resin
chkconfig resin on
Reboot your DV server from plesk. When it comes back online you should be able to view files on your domain, in this case id5.us.
Visit http://example.com/railo-context/admin.cfm and setup a password for that domain's railo context.
Visit http://example.com/railo-context/admin/server.cfm and setup a password for the server-wide railo context.
That's about it. You should now be able to upload and install Mura or any other CFML based software and run it on your MediaTemple DV hosting.
]]>That in and of itself isn’t totally surprising. What is surprising is Jobs’ admission that Apple probably would have never even started if he and Wozniak hadn’t messed with phone phreaking.
It makes me wonder what Jobs really thinks of Jailbreakers.
]]>
I was a fan of Hyetal’s work before I knew his name thanks to Cexman’s brilliant Archbroseph Mix. The song in that mix, Gold or Soul, is simple yet vast. This track is a level up.
]]>
The Secret Sun by Tanya Johnston
I don’t have much to offer right now other than three songs, loosely related.
I love Ffffound, and I love that despite my inescapable cynicism, thousands of people are somehow able to trudge through and make excellent stuff.
Here’s to a rainy weekend.
]]>Sara got me a print of this Chad Hagen piece that had been making the rounds:
I get the general method of how he constructed it, even if I didn’t match it aesthetically:
I had fun constructing this, it was akin to playing with legos. Today on Reddit someone asked, “If your twelve year old self saw you today, what would he say?” He would probably say that that thing was pretty cool. Then hopefully he would get a realistic sense of perspective on his age and enjoy the hell out of being twelve.
Maybe being 25 isn’t that much different.
In supplement, here’s a shot of the print framed and lit:

I’m particularly proud of that lighting solution I’ve concocted. I’m sure it will make Ben proud.* Especially when it falls down in the middle of the night electrocuting my right foot.
*I believe this is one of Ben’s clamps, too.
]]>
Black Friday. I slept in and wiped and updated/jailbroke my iPhone to 3.1.2. What a colossal pain in the ass. I had to borrow Sam’s SIM card 4 times before I got a clean install and activation. Also I made this for my bootup and lock screen:

Saturday. Migraine,but only a 4 on the Jake scale. Ask me what that means sometime. Also, watched Singing in the Rain:
Understatement of the week: Gene Kelly and Don O’Conner were talented. It’s on Netflix streaming if you’d like to watch.
Sunday. Farmer’s market. Out to Sea with Jack Lemmon and Walter Matthau. Not great, but funny enough for a Sunday. Makes me want to watch “The Odd Couple” and call everyone a moron.
]]>
Just received this email from Media Temple:
Recently we witnessed some malicious activity on our (gs) Grid-Service platform where a hacker redirected some customer websites to a 3rd-party advertising website. This attacker appears to have illegally obtained some older customer data, which included usernames and passwords stored in clear text. Our newer systems now have this same data encrypted. An investigation into this illegal activity is ongoing, with full details forthcoming.
My reaction upon reading? “THEY FESSED UP! NOT MY FAULT! ”
Except they’ve only sort of fessed up. It’s not referenced on their blog or their status page, which sucks. They do have a KB article which describes the same attack my sites and some client sites experienced. Also, there’s Twitter, I guess. There better be a sweet espionage book deal out of this, and I want my name in it. 4pt font is fine.
They’ve reset the admin passwords on a bunch of my client’s accounts, yet no where in the emails do they tell me which account they’re referencing. Let’s play “Try the login!”
At least now when someone asks what happened I can say with confidence, “Don’t worry, it wasn’t my fault, it was the fault of the hosting company I recommended. Your invoice is due on Friday.”
]]>
$0.17/GB + 2GB stored $0.10/GB = 54 cents.
Those are the questions still dogging me over this Expression Engine URL business.
I can’t ascertain why EE has stopped behaving on my site and other sites on this Media Temple account, the same one I should note, hosting Mr. Domanico. This person, who at this point has what I can only describe as technological Stockholm syndrome, has somehow evaded this curse.
Further, and I ask you directly EE, how can you receive the perfectly reasonable request of www.jakemauer.com and serve http://jakemauer.com/jakemauer.com/html/index.php?/http://jakemauer.com/jakemauer.com/html/ as your response? I asked for a hamburger and you gave me a party sub made out of toothpicks and mayonnaise.
This window into insanity only occurs if I remove my recently duct-taped htaccess file, something I won’t inflict on you the reader because I know that would only result in the harshest of gazes, which is to say, no gaze at all.
The weirdest part in all of this as that at some point overnight, EE healed itself partially, allowing me to log into the admin interface without using the specific url. To this I can only say, “???????”
Honestly Expression Engine, I don’t mind that you require your modrewrite woobie, but at least explain to me why I should continue let you suck your thumb when there are perfectly mature alternatives.
It has just occurred to me that my life is currently boring.
]]>
Now look at my nerdiness!
I want to mention that although the content of this post took me 5 minutes to put together, Expression Engine decided to be a huge jerk about a week ago and stop redirecting certain URL strings, which made posting this take 3 hours. I still haven’t figured it out, which is especially frustrating since domanico.net seems to redirecting URL’s fine. (By redirecting fine I mean a URL like http://domanico.net?URL=http://google.com works fine.)
It turned from minor annoyance into a bigger problem when it prevented Windows Live Writer from working properly.
Digging around I found that adding the following line to my htaccess file:
RewriteCond %{QUERY_STRING} !URL redirect problem:
RewriteCond %{QUERY_STRING} !(URL=.)$ [NC]
So that my redirect block ends up looking like this:
RewriteCond %{QUERY_STRING} !URL=.)$ [NC]
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]I’m still trying to get my admin panel redirect to work properly. I’ll update when I do.
]]>
Awesome. Times Two. Thousand.
]]>Damon sayz use Akkurat instead. I only use fonts that don’t sound like countries and/or one of their exotic animals. Just kidding, I’m not fontist-I’m cheap.
This was mostly meant to act as a reminder that I have a ton of photos to flickr-ize, Right after I figure out life.
]]>]]>