<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/Apache_FastCGI/</link>
<title><![CDATA[Apache结合spawn-fcgi使用FastCGI模式]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[服务器类]]></category>
<pubDate>Mon, 02 May 2011 15:12:01 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/Apache_FastCGI/</guid> 
<description>
<![CDATA[ 
	方法：系统平台是CentOS 5，前提是LAMP已配置好，运行正常。<br/>1. wget -c http://www.21andy.com/centos/5/i386/spawn-fcgi-1.6.3-1.el5.i386.rpm（也可以去官方下载源码包编译安装：http://www.lighttpd.net/download/spawn-fcgi-1.6.3.tar.gz）<br/>2. rpm -ivh spawn-fcgi-1.6.3-1.el5.i386.rpm<br/>3. 使用spawn-fcgi来控制php-cgi的FastCGI进程：<br/>/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 5 -u apache -g apache -f /usr/bin/php-cgi<br/>参数含义如下：<br/>-f <fcgiapp> 指定调用FastCGI的进程的执行程序位置，根据系统上所装的PHP的情况具体设置。<br/>-a <addr> 绑定到地址addr。<br/>-p <port> 绑定到端口port。<br/>-s <path> 绑定到unix socket的路径path。<br/>-C <childs> 指定产生的FastCGI的进程数，默认为5。（仅用于PHP）<br/>-P <path> 指定产生的进程的PID文件路径。<br/>-u和-g FastCGI使用什么身份（-u 用户 -g 用户组）运行，CentOS下可以使用apache用户，其他的根据情况配置，如nobody、www-data等。<br/>4. 将这行代码加入到/etc/rc.local文件底部，这样系统启动的时候就可以同时启动PHP的FastCGI进程。<br/>Tags - <a href="http://www.zhanghaijun.com/tags/apache/" rel="tag">apache</a> , <a href="http://www.zhanghaijun.com/tags/fastcgi/" rel="tag">fastcgi</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/Apache_FastCGI/#blogcomment</link>
<title><![CDATA[[评论] Apache结合spawn-fcgi使用FastCGI模式]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/Apache_FastCGI/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>