Well I’ve finished consolodating my two hosting accounts, one at Godaddy (cheap Linux hosting) and my shared Rails hosting at OcsSolutions (which was very good for shared Rails host) to a 512 mb Ubuntu 7.10 ’slice’ at Slicehost. Was gonna go straight Debian, but figured what the hell. For any of you who don’t know, a ’slice’ is pretty much get VPS hosting account. This is my first VPS. I set up Apache/Rails proxy servers and your run of the mill LAMP servers for customers/clients and at work all the time, but this is MY first server that is all mine to mess with.
As mentioned, I decided to give Nginx a try. I have to admit, initial set up is very easy. I first setup the Rails enviornment and had Nginx proxy to two mongrels for each app. (I’m running two apps for four total Mongrels). No problem.
Next, I had to get php working. Not so easy.
I ended up looking for help and followed this, setting up php5 to run as fast-cgi. Ugh. To make things worse, I had to move over the Wordpress install from Godaddy. I assummed it would be easy as pie, and it was to an extent, but I ran into trouble with the way the virtual hosts configs nginx uses handle subdomains and .. long story short I had redirect loop happening and it just sucked.
I’m blabering on and on here, but in the end I’ve got everything up and running. We’ll see how Nginx works in the long term, but right now it seems pretty snappy and the memory footprint is much smaller than Apache.
So, Royner and another project of mine have a place to live and I’m just gonna do some final tweaks this weekend and then you can check them out.