<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HauntedShell &#187; development</title>
	<atom:link href="http://hauntedshell.com/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://hauntedshell.com</link>
	<description>Just another Hauntedshell.com weblog</description>
	<lastBuildDate>Sat, 01 May 2010 20:05:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Lighttd: Put your webserver on a diet</title>
		<link>http://hauntedshell.com/2008/10/13/lighttd-put-your-webserver-on-a-diet/</link>
		<comments>http://hauntedshell.com/2008/10/13/lighttd-put-your-webserver-on-a-diet/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 19:19:13 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[web dev]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/?p=88</guid>
		<description><![CDATA[When you&#8217;re working with limited system resources, every bit that can be freed up counts. And if you have do your web development on machine with only 384mb of RAM, you start to be become a bit, um, mercenary about your resources. Running an Apache+PHP+MySQL stack alongside a GNOME desktop (xfce or fluxbox would be [...]]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re working with limited system resources, every bit that can be freed up counts. And if you have do your web development on machine with only 384mb of RAM, you start to be become a bit, um, mercenary about your resources. Running an Apache+PHP+MySQL stack alongside a GNOME desktop (xfce or fluxbox would be better but we all like our little luxuries) , Firefox and a text editor is not my idea of an efficient workspace. When you take the fact that I&#8217;ll be working on a wordpress install with about 19k entries, you start getting a sour taste in your mouth.<span id="more-88"></span></p>
<p>That&#8217;s where <a title="Lighttpd" href="http://www.lighttpd.net/">Lighttpd</a> comes in. It&#8217;s ,according to its site,</p>
<blockquote><p>�designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems&#8221;</p></blockquote>
<p>Anyways, what we&#8217;re interested in is the small memory footprint and the effective management of the cpu-load part.</p>
<p><strong>Installation</strong></p>
<p>We need to get and install lighttpd, PHP and MySQL:</p>
<p>Guides available from:<br />
<a title="Lighttpd Installation Instructions" href="http://trac.lighttpd.net/trac/wiki/TutorialInstallation">Instructions from Lighttpd Trac</a><br />
<a title="Lighttpd Installation Instructions" href="http://www.cyberciti.biz/tips/installing-and-configuring-lighttpd-webserver-howto.html">Lighttpd installation instructions from *Nix Craft</a><br />
<a title="Lighttpd Installation Instructions" href="http://joshdick.net/index.php?section=article&amp;name=lighttpd">Lighttpd+PHP+Perl+MySQL installation guide for Windows users</a><br />
<a title="Lighttpd Installation Instructions" href="http://ubuntuforums.org/showthread.php?t=643976">Lighttpd+PHP+MySQL Installation guide for Ubuntu</a><br />
A few notes:</p>
<ul>
<li>The settings for fastcgi suggested on the Lighttpd wiki will load a large number of php-cgi process that you probably will not be using. I&#8217;ll probably suggest you set
<pre>"PHP_FCGI_CHILDREN" =&gt; "2"</pre>
<p>instead of</p>
<pre>"PHP_FCGI_CHILDREN" =&gt; "16"</pre>
<p>You can make adjustments later if you feel the need.</li>
<li>You need to modify the default my.cnf to make things a bit more effcient. You can follow <a title="Low End Box - Reduce MySQl memory usage" href="http://http://www.lowendbox.com/blog/reducing-mysql-memory-usage-for-low-end-boxes/">this guide</a> to get you started.</li>
</ul>
<p>Does it help to use lighttpd instead of apache? Yeah, it does. I&#8217;ve been using it for the last couple of weeks and it&#8217;s been able to handle my requirements without problem. My final opinion? Well, it is not as full featured as apache but if you have a limited memory budget or are just looking for a lean mean web server, you really should take a good look at lighttpd. Now if you don&#8217;t mind, some of us have real work to do and can&#8217;t spend all day reading other people&#8217;s blogs <img src='http://hauntedshell.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2008/10/13/lighttd-put-your-webserver-on-a-diet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
