Lighty Rocks My PHP/MySQL World

A few weeks ago I was tasked with moving boards.kusports.com from an old, overloaded XServe to a newly appropriated Xeon box. The boards were notorious for going down after big games and during big news events and usually took other things on the same server down with them.

Thankfully that is no more. A week or so before the Big 12 and NCAA tournaments we finally bit the bullet and committed some time to move the boards over to their own box with more horesepower and more RAM.

I put the ubuntu-server version of Breezy Badger on the box and took the opportunity to see if I could get UBB Threads running under lighttpd and php fast-cgi. I’m glad that I took the time, because it’s smoking fast.

The process was quite painless thanks to the Ubuntu packing system. I had to build lighttpd by hand but everything else was installable with command-line tools (aptitude/apt-get). The changeover process consisted of little more than shutting down the boards on the old box, doing a dump/restore of the database to the new server, updating DNS entries and issuing temporary redirects to get the board users through the day.

The best thing about the conversion is that lighttpd, mysql, and php-fcgi barely register any load on the server, even at peak usage. While we were scrambling with stom coverage the other weekend, the boards box quietly registered a new high water mark for usage. After a painful first-round loss in the NCAA tournament, the boards registered yet another high water mark (1134 simultaneous users). The server barely flinched with a load anywhere from 0.00 to 0.20 with plenty of resources free. Previously a third of that number could potentially bring the XServe to its knees.

While we were turbocharging things, I also installed eAccelerator on the box, which was equally painless and yielded about a 20-30% performance increase.

All in all I’m gaga over lighty, mysql, and php-fastcgi for when the situation warrants it. It really is insanely fast. At the same time I’m really glad that I work in Python all day.

6 Responses to “Lighty Rocks My PHP/MySQL World”


  1. 1 Matt Mar 20th, 2006 at 10:03 pm

    We had good luck with Lighttpd, but it eventually turned out to be too buggy and quirky for us to use in production. For WordPress.com and similar things we’ve moved over to Litespeed, which is a bit faster, but commercial.

  2. 2 Endurance . Aug 10th, 2006 at 2:12 pm

    Dear Sales,
    I’m highly interesting in purchase some items in your
    store which i will like to know if the items can be
    shipped to my address below by Overnight Delivering
    VIA any fastest courier services Dhl,Ups,Fedex..I will
    be paying you with my Credit card(Visa,Master )as a
    method of payment.

    Ship To:
    4210 Illinois Street,
    San Diego California,
    92104 CA, USA.

    If all this is accepted, kindly get back to me as soon
    as possible before i can proceed to go ahead with the
    order.Looking forward to hear from you soonest..
    With Regards,

    Endurance .

  3. 3 Endurance . Aug 28th, 2006 at 1:10 pm

    Dear Sales,
    I’m highly interesting in purchase some items in your store which i will like to know if the items can be shipped to my address below by Overnight Delivering VIA any fastest courier services Dhl,Ups,Fedex.I will be paying you with my Credit card(Visa,Master )as a method of payment.

    Ship To:
    4210 Illinois Street,
    San Diego California,
    92104 CA, USA.

    If all this is accepted, kindly get back to me as soon as possible before i can proceed to go ahead with the order.Looking forward to hear from you soonest.
    With Regards,

    Endurance .

  4. 4 Daniel Aug 6th, 2007 at 8:30 am

    I couldn’t understand some parts of this article y Rocks My PHP/MySQL World at Matt Croydon::Postneo, but I guess I just need to check some more resources regarding this, because it sounds interesting.

  1. 1 visa master card Trackback on Jul 21st, 2007 at 8:53 am
  2. 2 âûâîç ñòðîèòåëüíîãî ìóñîðà Trackback on Aug 23rd, 2009 at 12:28 am

Leave a Reply