I recently upgraded this site to use the latest version of Apache Roller. It was a minor release (5.0.3), but I figured I'd document the steps in case "early onset" comes soon. First of all, to download raibledesigns.com and get it running locally, I perform the following steps:
- Backup everything using ~/bin/backup.sh on raibledesigns.com
- scp backup file to local hard drive and expand
- Copy ROOT, skins and repository directories to local webapps
- Make sure activation, mail, mysql and jta JARs are in $CATALINA_HOME/lib
- Copy roller-custom.properties from raibledesigns.com's $CATALINA_HOME/lib
- Copy context files from hosted $CATALINA_HOME/conf/Catalina to local directory
- Import database and change roller-custom.properties to match local credentials
Next, to upgrade to the latest Roller release, I do the following:
- Download latest Roller release and expand
- Copy JARs (from WEB-INF/lib) to existing install (to upgrade dependencies)
- Delete any lower-versioned JARS from WEB-INF/lib directory
- Copy JSPs (from WEB-INF/jsps) to existing install
- Run database migration scripts from WEB-INF/classes/dbscripts
- Use a diff tool (like SmartSynchronize) to compare new vs. existing
- Test and troubleshoot (if there's startup errors)
This process has worked well for the last 10 years, and it's been in my head the whole time. It's bound to escape someday.
Contact Form Enhancements
In addition to upgrading Roller, I also upgraded Tomcat 6 to Tomcat 7.0.52. In doing so, I found Jakarta's Mailer Taglib doesn't work with Tomcat 7. As you can tell from the aforementioned thread, I've known this for several years. That's the only thing that's stopped me from upgrading Tomcat the past couple years.
If I'd found it sooner, I likely would've used Brace Forms for my contact form.
Ever since I switched to a new look and feel, there's been improvements I wanted to make.
The stylesheet switching doesn't happen as fast as I'd hoped (there's a flash even if using cookies), so I'll likely be converting some theme-setting logic to the server-side. The HTML5 version of the FaceBook Like Button requires you to specify the "data-colorscheme" in markup so this further supports moving to the server.
Powered by Java 8
To make this site run on Java 8, I had to move to a new server. Keith did a bunch of work on my old server to get Java 8 working, but found Linux JDK 7 code has dependancies on the 2.6 kernel. If you're reading this post, the DNS changes have propagated. This means I have my first Java 8 app in production!
Secured by SSL
The last change I made was to start using my SSL certificate on this site. You can read about the challenges I encountered on the Roller mailing list. The final solution involved changing my Absolute URL to use https and then changing my theme to use the following for its base.
<base href="$absBaseURL.replace('https:', '')" />
I also had to change a number of iframes to use src="//..." instead of src="//...". To force HTTPS for the admin pages, Keith configured Apache to do the redirect. Using Roller to redirect resulted in infinite loop errors.
This means you can now access this site using https://raibledesigns.com or http://raibledesigns.com, whichever you prefer. Speaking of SSL, you might wonder if this new server is affected by The Heartbleed Bug. According to Keith, it is not.
This server is still running openSSL 1.0.0 which was shipped with Centos 6.1, and the Heartbleed vulnerability appeared in OpenSSL 1.0.1 which shipped Centos 6.5.
This site has undergone quite a few updates this month: Roller 5.0.3, Tomcat 7.0.52, a Wufoo contact form (+ recent tweets on the same page), Java 8 and optional SSL. If you see any issues, please let me know.
May 8, 2014 Update: I decided to revert to "http" for the absolute URL instead of "https". However, I've updated all "src" attributes on <iframe> and <img> tags to use schema-less URLs (// instead of http://). This means that both secure and non-secure URLs should work.