Log on:
Powered by Elgg

Caius :: Blog :: Hungry Webservers

September 08, 2007

Been using Apache2 for webserver since moving to a dedicated server (or rather Virtual Private Server to be precise). While Apache2 is a good webserver, it's on the heavy side when it comes to memory. My VPS has limited RAM, so this has caused some annoyance every now and then. So I decided to look for alternatives. My choice eventually fell on Lighttpd, since it's supposed to be a decent webserver with low memory footprint.

Now changing the webserver can be a hassle, and this transition was no exception. The main issue I had was with PHP. I had to recompile PHP with a couple of extra options. Everything was fine until I fired up the forum which uses SQLite as a database engine. For some odd reason SQLite wasn't compiled into PHP even though I chose it in the configuration. After a lot of trail/error, and even more swearing, I eventually was able to load SQLite as a dynamic/shared module. Finally!

Now that (almost) everything works as it used to I'm pretty satisfied with going for Lighttpd. Indeed it requires only about half the memory as Apache2, with no real performance penalty. Apache2, being a heavy-duty webserver, is really overkill for a website dedicated to a MUD. We're unlikely to ever have 500+ simultaneous connections 24/7. Lighttpd is meant for sites with a light load, and we certainly fit into that category

The only issue I have with the new webserver is its poor webdav support. I've been using this to access the Subversion repository. However the svn+ssh protocol is fine. I now have to enter my password every time I access the repository, but this is a small price to pay for freeing up valuable RAM.

So, in short, I can recommend Lighttpd for anyone needing a leaner alternative to Apache. The address is http://lighttpd.net/ if you want to check it out. It comes with a good selection of modules, so it probably fulfills most normal scenarios. Took me about an hour or two to get it fully working as a replacement to Apache. Thumbs up! 

Keywords: Lighttpd, PHP, SQLite, Subversion, Web

Posted by Caius


Comments

  1. Yeah i've heard nothing but good things about Lighttd.  I always planned on deploying back when I ran servers but just never got around to it.

    default user icon" width="50" height="50" align="left" alt="" />Paradigm on Saturday, 08 September 2007, 07:40 MDT # |

  2. Oddly enough, I started out with Lighttpd as my webserver and eventually transitioned to using xampp instead because it's got apache, mysql, proftp, and php (along with a ton of other extras) all built into a single unit. The main distinction for me was that I'm hosting not only my own sites (personal site for my family forums, mud web page, mud web forums, BBS web page, system info page, webmin, usermin, a sandbox site, ...), but I'm also hosting sites for a couple of other folks and a site for mud listings, plus this covers ftp needs for those I'm hosting all in one startup. Otherwise, I had no complaints at all with Lighttpd either.

    Conner DestronConner Destron on Saturday, 08 September 2007, 16:41 MDT # |

You must be logged in to post a comment.