I’ve taken it upon myself to start learning a new programming language and leaving my happy little LAMP (or preferably LNMP) comfort zone. I love PHP and how easy it is to get up and running. Its pretty simple and gets the job done quick. PHP unfortunately lacks a lot of the “grace” and modern nuances that a more modern platform such as Ruby on Rails provides.
Now, before the pitchforks start coming out I already know that I’m kind of comparing Apples to Apple Pie. PHP is a language with a ton of community support and Ruby on Rails is a framework. I get it, but there’s a lot to be desired in PHP land. PHP has some good frameworks as well – CakePHP, Zend, CodeIgniter, Yii, etc. – but the sheer variety creates a lot of discontinuity in the community and a lot of the frameworks out there are just Ruby on Rails wannabe’s anyways. More importantly besides any of that, PHP is getting a little boring and I want to learn something new 🙂 So, I’m starting to learn Ruby, Sinatra and eventually Ruby on Rails and share my learning here.
So, in an effort to save a little cash on hosting I’ve moved my stack on this server to a pure LNMP stack – no Apache, no Varnish. I’ve also introduced a new third-party caching solution called CloudFlare to see if we can take even more traffic off the server. With W3 Total Cache running as well the site is extremely fast, and this only on a 256MB box. Granted, I get about as much traffic as the 395 in the middle of the Mojave, but its fun running at this speed anyways.
Just finished setting the site up on a new server of my own on Rackspace’s Cloud. The site is much speedier now (sorry Media Temple, but your Grid Server system really is too slow for my tastes). Now I’m running on a new stack for super speedy response time:
- Ubuntu 10.04LTS
- Apache 2.2 running PHP 5.3.2 via mod_php
- MySQL 5.1.41
- A basic Varnish caching layer running in front of Apache
- nginx reverse proxy running in front of Varnish
Since I am also running both PHP 5.3.x and MySQL 5.1.x I am also running the latest version of WordPress (3.2 RC1 as of this posting). In conjunction with W3 Total Cache handling object, database, page caching and Varnish purging, the site is blazing fast!
So, now that I’ve got a working environment here that actually has some guts, I might be able to do something with it!