In at the deep end – getting a VPS

Well, after some research, I’ve decided to go and take the plunge and get a basic VPS.

My aim is to get Railo/Resin/Apache/PHP/MySQL running on Centos 5.3.

I’ve gone for Wizz VPS, as they’re UK based, and a child company of my current PHP hosting – Layershift, with whom I’ve had good experiences – they are also staggeringly cheap.

They’re also completely unmanaged, so I’m on my own…

Getting mySQL and PHP installed was easy, just using the VPS containers package management system (so a bit of point and click). Installing yum and then using that was equally easy. ‘yum update’ = genius.

I’ve been fairly taken back by just *how* efficiently RAM seems to be handled under Linux/Centos. I’m used to a windows box, where just running the OS and CF8 can take up the best part of a GB. I’ve currently got MySQL and PHP, and the OS running under 40MB (not under any load of course) which is amazing.

The tricky part is going to be getting Railo in and running. Whilst there seems to be a fair amount of chat on the Railo Google group about creating some definitive install guides, I’m finding the lack of a definitive install guide somewhat frustrating. I’ve managed to do some things, like install Java for compiling connectors etc, but the syntax (and really, the true understanding of what I’m trying to achieve) does escape me a bit at the moment. My Linux Kung-Fu needs work.

Hopefully we should start seeing some proper documentation for Railo production environments soon! (and I mean documentation for the latest Railo version, and the latest and greatest Linux distros).

Finally – some Railo VPS goodness

I think I’m slightly over the top happy that I’ve got Railo working now..

All thanks to Jordan Michaels’s beta installer (get on the Google Railo Beta list to get access – which worked perfectly.

Had a couple of hiccups, but they were completely my own fault – I was getting a 503 error whenever I tried to serve a .cfm page; checked the logs, and low and behold TomCat couldn’t start: something was using port 8080. (A Address already in use:8080 error)

A quick “netstat -anp | grep 8080” command, and lo and behold, I’d set Apache to listen on 8080 in the http.conf.

Took that out, and restart apache/railo, and all is happy.

Now I’ve just got to read up on Railo security, and pop a bit more RAM In the VPS (it sits at about 140MB with railo/mysql/tomcat and the OS), oh and test *everything*.

As Hannibal would say – “I love it when a plan comes together” 🙂

One area where Open Source Railo should make a difference…

With the release of Railo 3.1 as an open source project, I can think of one area in particular where this is going to make a huge difference – hosting.

UK hosts seem to split into two camps (IMO), LAMP specialists, and then CF providers, often running Win2003/IIS/CF/MySQL/SQL server.

With UK hosting, there is a huge disparity between hosting for standard LAMP, and CF hosting: Not just price, but diskspace and bandwidth. You can pick up a linux PHP based VPS with 30GB webspace and about 300GB of bandwidth for a fraction of the price the equivalent would be with CF hosting: the reason is fairly obvious – CF licenses (and windows server licences) cost a lot – shared hosts in particular seem to cram a lot onto several larger servers to stretch the license as widely as possible (I’m not saying LAMP hosts don’t), so diskspace (in particular) is at a premium.

Previously I’ve considered getting a VPS, and simply buying a CF standard license, as generally speaking, that suits my freelance needs; but that extra £1000 odd is simply crippling, and makes the whole idea unuseable.

I run a lot of smaller sites, none of which could afford the CF outlay and rely heavily on shared hosting – the irony is, as they’re built in CF, they were initially quicker and thus cheaper to build.

I hope we’ll start to see Railo offered as another service alongside PHP: there’s now no reason *not* too, except the obvious maintence required for an additional service, and the potential hit to the server’s RAM in actually running it. Alternatively, this could all go the way of OBD or the smith project, but I hope not.

Whilst there are many sides to this argument, especially the effect on CFML as a language, this announcement is something I’m really rather pleased about overall – it gives many more sites the option of using CFML, especially those smaller ones which would otherwise have to go on PHP for budget reasons. Additionally, for higher education, running Railo should now be a no brainer – after all, it’s free, why not at least try it?

I’m now seriously considering consolidating all my hosting into a single linux VPS with PHP, Railo and MySQL. Being able to run Drupal and all my bespoke CF projects under the same roof is very appealing. Now all it takes is do some research into Railo properly, and check there aren’t any massive “gotchas”. Speaking of which, is there a good CF8 vs Railo 3.1 comparison out there anywhere yet?

Being on iTunesU

I’m lucky enough to work for Oxford University, and part of my job is web development for the James Martin 21st Century School – a bespoke CF site I wrote which I’m constantly tinkering with.

Oxford University recently launched its presence on iTunesU, the learning and education channel on iTunes.

The School has been lucky enough to have several podcasts of major events which have been well featured on both the University’s front iTunesU page, but also the main iTunesU page itself.

One of our podcasts is currently appearing on iTunesU front page – Stiglitz on the Credit Crunch (for the second time); a great talk and very topical given the current climate. When this was launched, this podcast stayed at the top of the “most downloaded” list on iTunes for many, many weeks, and is still in the Top 10 podcasts within the University.

So what does that actually mean in terms of hits and bandwidth?

For that one podcast, it’s been downloaded 44,000 times, of which I’d estimate 90% came from iTunes.

2008 .mp3 Traffic: 3426.09 GB 
(iTunes Oxford launch was in October)

2009 .mp3 Traffic so far: 228.07 GB
(to beginning of March)

Total Downloads for podcasts: over 180,000 and counting, of which iTunesU accounts for probably 60% of that traffic.

So be warned, one mp3 is all it takes! It’s been a fantastic start, and now we’ve just got to keep the momentum going.

Sidenote: Obviously in a higher education environment, our webserver is on JANET, the academic network, and it’s also connected via Gigabit. As a University we pay JANET for access, but don’t, to the best of my knowledge, pay per GB traffic or anything. We’ve also got a dedicated server for the site, so we’ve never had an issue with memory etc. At the iTunes peak, the webserver was pumping out at least 50MB a second (and constantly, for quite a while…)

Some new sites..

A few new sites released recently:

With Drupal:

Custom ColdFusion work:


Search Engines not respecting CFLOCATION?

I’ve been seeing some wierd behaviour from a local search engine on one of my sites; I say local, as it’s a Google Search Appliance designed to trawl the domain.

What I can’t understand is what it doesn’t seem to respect CFLOCATION’s default redirect.

BlogCFC uses CFLOCATION quite a lot, especially when URL variables don’t exist, which is where I’m seeing this the most:

Let’s say I have a page which has:

Which tells the browser to essentially go away unless equals “foo”.
Let’s say that I’ve got some code in the remainder of the page that relies on – it then throws an error which I get by email.

I’ve been seeing these errors, ONLY triggered by this GSA, which could only have happened had the page been resolved; I understand this is a 302 redirect, not a 301 redirect, but shouldn’t the GSA respect the browser command of redirect and stop rendering the page? This isn’t an error a human can throw!

Why only this one GSA? Could it be a configuration issue?

I’m going to try adding a cfheader to change it to a 301 redirect and see what happens…

Any ideas welcomed… released

For those of you in the music world, chances are most of you have heard about the Holywell Music room in Oxford. It is the oldest purpose built concert hall in England.

As with all decent concert venues, they need a bit of love and care every now and then – enter the Holywell Music Room Rennovation Appeal –

Go visit and see what they’re trying to achieve!

Intelligent Sustainable Energy

Intelligent Sustainable Energy now released: see the Drupal 6.x website here:

ISE is the creator of revolutionary technologies to help people reduce and manage their energy consumption. Faced with rising energy bills and increasing environmental pressures, consumers are keener than ever to reduce the amount of energy that they consume. However, whilst we can all follow simple rules such as turning off lights and not leaving the TV on standby, the reality is that most people do not have a clear understanding of how they use energy. ISE’s technology changes this giving you fully itemised energy bills just like the itemised phone bill that you get from your phone company.

Drupal 6 – output your primary links as a Site Map

This took me a while to find: In Drupal 6, I wanted to output the main Primary Links menu item, expanded, as a site map:

Simply add the following to a node (with PHP parsing ON!)

$tree = menu_tree_all_data($menu_name = ‘primary-links’, $item = NULL);
print menu_tree_output($tree);