<?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>Florian Jensen&#039;s Weblog &#187; lighttpd</title>
	<atom:link href="http://florianjensen.com/tag/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://florianjensen.com</link>
	<description>making the world a better place!</description>
	<lastBuildDate>Mon, 14 Feb 2011 12:19:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing Lighttpd; PHP5 and MySQL on your Debian Etch</title>
		<link>http://florianjensen.com/2008/01/01/installing-lighttpd-php5-and-mysql-on-your-debian-etch/</link>
		<comments>http://florianjensen.com/2008/01/01/installing-lighttpd-php5-and-mysql-on-your-debian-etch/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 02:46:02 +0000</pubDate>
		<dc:creator>Florian Jensen</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[flexserv]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">https://florianjensen.com/2008/01/01/installing-lighttpd-php5-and-mysql-on-your-debian-etch/</guid>
		<description><![CDATA[Today&#8217;s tutorial is going to explain how to install Lighttpd; PHP5 and MySQL on your FlexServ (RPS) on Debian Etch 4.0.
This is an easy tutorial, and definetly a good place to start.
1. Update the repositories and your system

apt-get update
  apt-get dist-upgrade

2. Install lighttpd

apt-get install lighttpd

3. Install PHP5-CGI

apt-get install php5-cgi

4. Configure lighttpd to use PHP5-CGI
Modify [...]]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s tutorial is going to explain how to install Lighttpd; PHP5 and MySQL on your FlexServ (RPS) on Debian Etch 4.0.</p>
<p>This is an easy tutorial, and definetly a good place to start.</p>
<p><strong>1. Update the repositories and your system</strong></p>
<blockquote>
<p>apt-get update<br />
  apt-get dist-upgrade</p>
</blockquote>
<p><strong>2. Install lighttpd</strong></p>
<blockquote>
<p>apt-get install lighttpd</p>
</blockquote>
<p><strong>3. Install PHP5-CGI</strong></p>
<blockquote>
<p>apt-get install php5-cgi</p>
</blockquote>
<p><strong>4. Configure lighttpd to use PHP5-CGI</strong></p>
<p>Modify the php.ini:</p>
<blockquote>
<p>vi /etc/php5/cgi/php.ini</p>
</blockquote>
<p>Add the following line to it at the end:</p>
<blockquote>
<p>cgi.fix_pathinfo = 1</p>
</blockquote>
<p>Now you need to edit the lighttpd.conf</p>
<blockquote>
<p>vi /etc/lighttpd/lighttpd.conf</p>
</blockquote>
<p>Add the following at the top (in the list):</p>
<blockquote>
<p>&#8220;mod_fastcgi&#8221;,</p>
</blockquote>
<p>Then this at the bottom:</p>
<blockquote>
<p>fastcgi.server = ( &#8220;.php&#8221; =&gt; ((<br />
  &#8220;bin-path&#8221; =&gt; &#8220;/usr/bin/php5-cgi&#8221;, <br />
  &#8220;socket&#8221; =&gt; &#8220;/tmp/php.socket&#8221;                   <br />
    )))</p>
</blockquote>
<p><strong>5. Install and configure MySQL</strong></p>
<p>Title says it all:</p>
<blockquote>
<p>apt-get install mysql-server mysql-client php5-mysql</p>
</blockquote>
<p>Then you should also set a password for the MySQL User root:</p>
<blockquote>
<p>mysqladmin -u root password yourrootsqlpassword</p>
</blockquote>
<p><strong>6. Restart your lighttpd to apply the changes</strong></p>
<blockquote>
<p>/etc/init.d/lighttpd restart</p>
</blockquote>
<p><strong>7. Test it</strong></p>
<p>Ok, the last step is to test it. For that create a new .php file:</p>
<blockquote>
<p>vi /var/www/info.php</p>
</blockquote>
<p>Add the following text to it:</p>
<blockquote>
<p>&lt;?<br />
    php  phpinfo();  <br />
    ?&gt;</p>
</blockquote>
<p>Then check the result by accessing the page in your Webbrowser: http://fs00000.flosoft-servers.net/info.php</p>
<p>If that works, you can enjoy your new Webserver!</p>
]]></content:encoded>
			<wfw:commentRss>http://florianjensen.com/2008/01/01/installing-lighttpd-php5-and-mysql-on-your-debian-etch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

