Weblog Weblog: 2011-03-02T07:53:26Z Copyright (c) 2011, Jake Mauer ExpressionEngine tag:jakemauer.com,2011:03:02 Railo on MediaTemple DV Server tag:jakemauer.com,2011:weblog/1.567 2011-03-02T06:33:25Z 2011-03-02T07:53:26Z Jake Mauer jake@jakemauer.com

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.

Getting Started

Tutorials used in the creation of this guide:


Pre-Setup

  1. Setup and configure your Plesk admin panel
  2. Setup an initial user and site domain. In this guide we're using example.com
  3. In MediaTemple's Account Center, enable the root user, and install developer tools.
  4. Follow this guide to install the Yum package manager: http://wiki.mediatemple.net/w/DV:Install_YUM

Java Setup

  1. SSH into your dv server through the terminal, where '1.2.3.4' is your DV server IP.
    ssh 1.2.3.4 -l root
  2. Install various packages using yum:
    yum install make nano httpd-devel openssl-devel
  3. Search for and copy the download URL to the latest Java JDK (not JRE) for Linux. I'm not sure if MT's DV servers are 64 bit but I downloaded the non 64-bit version. Look for the non rpm.bin file.
  4. Next, download the Java JDK to a new software folder we'll create:
    cd /opt       
    mkdir soft
    cd soft
    The following wget command and the URL are all one line:
    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.
  5. 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.

  6. 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 java         
    Our Java directory is now
    /opt/soft/java

  7. Let's add java to our path

    nano /etc/profile.d/java.sh         
    Add the following lines to java.sh:
    export JAVA_HOME=/opt/soft/jdk1.6.0_13/         
    export PATH=$JAVA_HOME/bin:$PATH
    Save the file and when complete, run this command to make it executable:
    chmod +x /etc/profile.d/java.sh

  8. Log off your SSH connection and re-login. Try:

    java -version         
    If 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)

Railo Setup

  1. 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.

  2. cd /opt/soft

  3. wget http://www.getrailo.org/down.cfm?item=/railo/remote/download/3.1.2.001/railix/all/railo-3.1.2.001-railo-express-without-jre.tar.gz

  4. tar -xvzf railo-3.1.2.001-railo-express-with-jre-linux.tar.gz

  5. Create a symlink just as we did with Java

    ln -s railo-3.1.2.001-railo-express-with-jre-linux railo

  6. cd railo

  7. Now to build and install it

    ./configure --with-java-home=/opt/soft/java/ --with-apxs=/usr/sbin/apxs         
    make
    make install
    Note: At the time of this writing the 'make' command will fail. If that occurs proceed with the following steps.
    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

  8. 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

  9. Next we need to setup a location to check on the caucho status:

    cd /etc/httpd/conf.d         
    vim caucho.conf
    Enter the following lines:
    <Location /caucho-status>         
    SetHandler caucho-status
    </Location>
    Save and exit the file.

  10. 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">         
    <host-alias>www.example.com</host-alias>
    <web-app id="/" root-directory="httpdocs" />
    Save and exit the file.

  11. 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

  12. 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.

  13. Visit http://example.com/railo-context/admin.cfm and setup a password for that domain's railo context.

  14. 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.

]]>
Steve Jobs meet Steve Jobs tag:jakemauer.com,2010:weblog/1.566 2010-10-19T06:01:32Z 2010-10-19T06:02:33Z Jake Mauer jake@jakemauer.com This clip is just amazing. I almost can’t believe it exists. Steve Wozniak and Steve Jobs started out as phone phreakers, meaning they built devices to let them hack onto the phone network and make calls around the globe without paying.

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.

]]>
Smooth Sega Sundown tag:jakemauer.com,2010:weblog/1.562 2010-08-10T04:34:09Z 2010-08-10T04:56:10Z Jake Mauer jake@jakemauer.com

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.

Hyetal – Phoenix

]]>
Good Friday tag:jakemauer.com,2010:weblog/1.560 2010-03-12T05:43:40Z 2010-03-12T06:26:41Z Jake Mauer jake@jakemauer.com

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.

]]>
Quiet You tag:jakemauer.com,2010:weblog/1.558 2010-01-29T05:14:07Z 2010-01-29T05:33:08Z Jake Mauer jake@jakemauer.com If you haven’t seen this talk by Seth Godin on quieting the lizard brain, it’s easily worth 18 minutes of your time:


]]>
Today&rsquo;s Found tag:jakemauer.com,2010:weblog/1.556 2010-01-18T06:32:30Z 2010-01-18T06:46:32Z Jake Mauer jake@jakemauer.com It’s been a while, a little too while…

Sara got me a print of this Chad Hagen piece that had been making the rounds:complicated_graph_1

I get the general method of how he constructed it, even if I didn’t match it aesthetically:

infrographics

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:

_DSC9238

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.

_DSC9241

*I believe this is one of Ben’s clamps, too.

]]>
Joker tag:jakemauer.com,2009:weblog/1.555 2009-12-08T05:36:42Z 2010-01-25T04:25:43Z Jake Mauer jake@jakemauer.com These songs inspired me to fire up Live Writer. Commodore 64 + DubStep = Joker

Joker

]]>
The Weekend tag:jakemauer.com,2009:weblog/1.554 2009-11-30T01:29:57Z 2009-11-30T01:30:01Z Jake Mauer jake@jakemauer.com Thanksgiving day. I bought a bottle of Sazerac Rye and drank it neat all day Thursday. Justin’s family may now think I’m an alcoholic. Especially because I brought it in, and took it back out. I’m not a whiskey fan but I know what I don’t like, and I don’t not like this: image

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:

iPhone

Saturday. Migraine,but only a 4 on the Jake scale. Ask me what that means sometime. Also, watched Singing in the Rain:

image

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.

]]>
Media Temple accounts were compromised tag:jakemauer.com,2009:weblog/1.553 2009-11-26T06:36:38Z 2009-11-26T06:36:46Z Jake Mauer jake@jakemauer.com LABRYNTH LOCK

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.”

]]>
S&rsquo;updates tag:jakemauer.com,2009:weblog/1.552 2009-11-17T04:24:36Z 2009-11-17T04:27:05Z Jake Mauer jake@jakemauer.com image

  1. Good news! The Expression Engine HTACCESS nightmare was my own fault. I accidentally uploaded an htaccess file to the parent of all the domains on my shared hosting account. So it propogated down to every site unless that site had a specifically defined its own rules. Sorry everyone.
  2. Our sites were hacked! Probably by some drive-by Wordpress exploit but still, it hosed nearly every site on our hosting account and embedded itself into our Wordpress database tables in case it wanted to come back for more.
  3. I’ve setup Amazon S3 sync with Media Temple using this guide. It’s slightly intimidating but completely doable. Don’t get discouraged by terminal errors,double check your typing and that you’re in the proper directory for each command, (use ‘pwd’ to find out your current location.) I estimate that backing up this site and its database shouldn’t cost me more than a dollar a month. Allow me to explain using complex maths:

    2GB data uploaded $0.17/GB + 2GB stored $0.10/GB = 54 cents.

    I believe that’s called “worth it.”
]]>
How or why? tag:jakemauer.com,2009:weblog/1.550 2009-11-05T03:44:09Z 2009-11-05T03:48:10Z Jake Mauer jake@jakemauer.com image

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.

]]>
Look at this shot tag:jakemauer.com,2009:weblog/1.549 2009-11-02T05:47:01Z 2009-11-03T04:54:10Z Jake Mauer jake@jakemauer.com From The Sting:

sting-combined 

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.

]]> Add this to the list tag:jakemauer.com,2009:weblog/1.548 2009-10-27T23:52:08Z 2009-10-27T23:55:09Z Jake Mauer jake@jakemauer.com of things to do when I befriend a group of soccer all-stars.

Awesome. Times Two. Thousand.

]]>
Today’s Ffffound: Helvetirock tag:jakemauer.com,2009:weblog/1.539 2009-10-15T01:52:32Z 2009-10-15T01:52:34Z Jake Mauer jake@jakemauer.com Most of my 5 minutes was spent finding and installing Helvetica. It doesn’t come default? It doesn’t come default. “Use Arial,” says Microsoft.

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.

thinking-combined copy

Original Blog
ffffound page

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.

]]>
I&rsquo;ll take two please tag:jakemauer.com,2009:weblog/1.538 2009-10-12T04:12:22Z 2009-10-12T04:13:23Z Jake Mauer jake@jakemauer.com A new father created this fiber optic star field for the baby’s room. This makes owning your own home with attic access worth it.

Full Instructions on Instructable

]]>