PHP


14
Sep 10

Nginx, Rails and PHP: Round 2!

It’s been a while since I posted about my current webserver setup, and a few things have changed around here!  I like to stay current, and the latest version of PHP has changed the way I build from source.  I’ve also changed the way I install stuff, this way it’s much easier to update things like PHP which tend to litter files all over the place.  Anyway, you came here for the goods, so here we go:

Step 1:  Environment and Pre-Requisites

This section probably looks familiar.  The only difference now is that I’m running Ubuntu 10.04 LTS on my main server now.  The packages are pretty much the same.  First we make sure the universe repository is enabled by editing /etc/apt/sources.list and removing the hash marks in front of universe lines:

Continue reading →


9
Dec 09

Nginx and Rails and PHP, Oh My!

As you could probably guess, my blog (and several sites of my friends) are hosted on a lovely Linux VPS provided by Linode.  I honestly can’t say enough nice things about the service and reliability I’ve received from Linode (and no they don’t pay me to speak highly of them!).  But that’s not really the point of this post.  The point is actually quite simple:  My VPS doesn’t have a lot of memory, and I’m always wary of my resource consumption.  A few months ago, I moved from Apache to lighttpd for this reason, alone.  Let’s face it… Apache is a memory hog, and that problem is well-documented, so I won’t really go into details here.  “Lighty” has served me well for the past few months, but for reasons I’m about to explain, I felt the need to move to a different platform.

Continue reading →