Archive for the ‘Slicehost’ Category

Moved Hosts again..

Sunday, July 6th, 2008

Moved hosts again.  Taking it all in house.  Yup, this fine blog of mine (and lots of other crap) is now being served off my home brew server sitting behind the TV(also acting as a fileserver).   If there is one thing I freaking hate, it is moving a Wordpress install.  Something always messes up and, while usually very easy to fix, it is never easy to spot.

I’ve also moved back to Apache2 from Nginx since I’ve got a lil more muscle to go around than with the Slicehost account I had.  I’m going to hold on to it (Slicehost account) to see if anything horribly wrong happens. but I think this should be fun.

Alright, DNS is still propagating for yerhot.org and some others.  Hopefully it’ll be done in the a.m.  I’m hitting the sack.

Lemme know if you have any thoughts.

Slicehost problems with Gem *FIXED*

Monday, March 17th, 2008

Today I set up 470.johnyerhot.com and set up a Rails app I worked on to run there, but I needed to install the Pdf-writer Gem for proper functionality. Low and behold when I tried

sudo gem install pdf-writer

I was greeted with nothing, just

Updating Gem source index for: http://gems.rubyforge.org

and that was it. After searching and searching I realized the the version of Gem I had installed was 0.94 and that was the problem.

The solution is as follows:

wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz
tar zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby setup.rb
sudo gem update

You just need to manually install the updated Gem. Cinch.

Moved Hosts

Friday, February 1st, 2008

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.