<?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>fleurer &#187; lighttpd</title>
	<atom:link href="http://www.fleurer-lee.com/tag/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fleurer-lee.com</link>
	<description>rage and love, story of my life.</description>
	<lastBuildDate>Thu, 02 Sep 2010 11:07:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ubuntu下简单配置lighttpd和php</title>
		<link>http://www.fleurer-lee.com/2009/02/13/ubuntu%e4%b8%8b%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%aelighttpd%e5%92%8cphp/</link>
		<comments>http://www.fleurer-lee.com/2009/02/13/ubuntu%e4%b8%8b%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%aelighttpd%e5%92%8cphp/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 13:05:08 +0000</pubDate>
		<dc:creator>ssword</dc:creator>
				<category><![CDATA[备忘]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ssword.yo2.cn/2009/02/13/ubuntu%e4%b8%8b%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%aelighttpd%e5%92%8cphp/</guid>
		<description><![CDATA[弄个调试环境而已, 简单整下就是了..
先安装lighttpd和php, 有apt-get, 简单无比
sudo apt-get install lighttpd
sudo apt-get install php5-cgi
接着配置.
1.为了方便在windows下修改, 就把文件夹新建在d:盘
cd /media/DISK_VOL2/
mkdir server
2.创建lighttpd配置文件lighty.conf, 可以在这里下载一份基本的配置文件, 然后自己按需修改.
打开gvim把24行左右&#8221;mod_cgi&#8221;的注释删掉, 再把server.document-root  ,server.errorlog, accesslog.filename  等属性的值修改为刚才的目录,
3.server.port的默认值是80, 而80端口必须得是root权限才能打开. 如果仅仅搭调试环境的话设成3000就是了, 启动时省个sudo.
4.把fast_cgi那块的注释全都去掉, 修改如下

fastcgi.server = ( ".php" =>
                     ( "localhost" = (
   [...]]]></description>
			<content:encoded><![CDATA[<p>弄个调试环境而已, 简单整下就是了..</p>
<p>先安装lighttpd和php, 有apt-get, 简单无比<br />
sudo apt-get install lighttpd<br />
sudo apt-get install php5-cgi</p>
<p>接着配置.<br />
1.为了方便在windows下修改, 就把文件夹新建在d:盘<br />
cd /media/DISK_VOL2/<br />
mkdir server<br />
2.创建lighttpd配置文件lighty.conf, 可以在<a href="http://redmine.lighttpd.net/attachments/659/lighttpd.conf">这里</a>下载一份基本的配置文件, 然后自己按需修改.<br />
打开gvim把24行左右&#8221;mod_cgi&#8221;的注释删掉, 再把server.document-root  ,server.errorlog, accesslog.filename  等属性的值修改为刚才的目录,<br />
3.server.port的默认值是80, 而80端口必须得是root权限才能打开. 如果仅仅搭调试环境的话设成3000就是了, 启动时省个sudo.<br />
4.把fast_cgi那块的注释全都去掉, 修改如下</p>
<pre LANGUAGE="php" line="1">
fastcgi.server = ( ".php" =>
                     ( "localhost" = (
                           "host" => "127.0.0.1",
                           "port" => 521
                           )
                      )
                  )
</pre>
<p>好的, 可爱的lighty.conf配置基本完毕.</p>
<p>打开php-cgi<br />
php5-cgi -b 127.0.0.1:521<br />
打开lighty:<br />
lighttpd -D -f lighttpd.conf</p>
<p>嗯, phpinfo测试一下:<br />
echo &#8221; &gt; test.php</p>
<p>打开浏览器, http://localhost:3000/test.php</p>
<p>如果无错误提示, 那貌似就可以用了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fleurer-lee.com/2009/02/13/ubuntu%e4%b8%8b%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%aelighttpd%e5%92%8cphp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
