<?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/"
	>

<channel>
	<title>一个程序猿 &#187; 配置</title>
	<atom:link href="http://www.sunboyu.cn/tag/%e9%85%8d%e7%bd%ae/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sunboyu.cn</link>
	<description>时光不会倒流,脚步总要前进</description>
	<pubDate>Tue, 31 Jan 2012 10:50:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>django+nginx的部分配置</title>
		<link>http://www.sunboyu.cn/2009/12/16/djangonginx%e7%9a%84%e9%83%a8%e5%88%86%e9%85%8d%e7%bd%ae.shtml</link>
		<comments>http://www.sunboyu.cn/2009/12/16/djangonginx%e7%9a%84%e9%83%a8%e5%88%86%e9%85%8d%e7%bd%ae.shtml#comments</comments>
		<pubDate>Wed, 16 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[LINUX]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[原创技术]]></category>

		<category><![CDATA[django]]></category>

		<category><![CDATA[nginx]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=1097</guid>
		<description><![CDATA[nginx的配置，特别感谢爱词霸的吕同学，发扬了开源共享的精神，大大缩短了我的调试成本。
server {
&#160;&#160; &#160;listen 80;
&#160;&#160; &#160;server_name python.sunboyu.cn;
&#160;&#160; &#160;location / {
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_pass 127.0.0.1:8000;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_buffers&#160; &#160; &#160; 16&#160; 128k;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_ignore_client_abort&#160; on;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_read_timeout 60;
&#160;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_param PATH_INFO $fastcgi_script_name;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_param REQUEST_METHOD $request_method;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_param QUERY_STRING $query_string;
&#160;&#160; &#160; &#160; &#160; &#160;fastcgi_param CONTENT_TYPE [...]]]></description>
			<content:encoded><![CDATA[<p>nginx的配置，特别感谢<a href='http://www.iciba.com/' target='_blank'>爱词霸</a>的<a href='http://blog.lvscar.info/' target='_blank'>吕同学</a>，发扬了开源共享的精神，大大缩短了我的调试成本。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">server {</li>
<li>&nbsp;&nbsp; &nbsp;listen 80;</li>
<li>&nbsp;&nbsp; &nbsp;server_name python.sunboyu.cn;</li>
<li>&nbsp;&nbsp; &nbsp;location / {</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_pass 127.0.0.1:8000;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_buffers&nbsp; &nbsp; &nbsp; 16&nbsp; 128k;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_ignore_client_abort&nbsp; on;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_read_timeout 60;</li>
<li>&nbsp;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param PATH_INFO $fastcgi_script_name;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param REQUEST_METHOD $request_method;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param QUERY_STRING $query_string;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param CONTENT_TYPE $content_type;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param CONTENT_LENGTH $content_length;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param SERVER_PROTOCOL&nbsp; $server_protocol;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param SERVER_PORT&nbsp; &nbsp; &nbsp; $server_port;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param SERVER_NAME&nbsp; $server_name;</li>
<li>&nbsp;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_pass_header Authorization;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_intercept_errors off;</li>
<li>&nbsp;</li>
<li>&nbsp;&nbsp; &nbsp;}</li>
<li>}</li></ol></div>
<p>同时附上一个额外的文档，nginx变量跟cgi协议的对应关系。<br />
注：在配置中，并不是所有的变量必须加上，而是根据环境选择其中应该有的变量，至于具体加哪些变量，得求助高人了。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">#&nbsp; &nbsp; Fast CGI param reference</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SCRIPT_FILENAME&nbsp; $document_root$fastcgi_script_name;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; QUERY_STRING&nbsp; $query_string;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; REQUEST_METHOD&nbsp; $request_method;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; CONTENT_TYPE&nbsp; $content_type;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; CONTENT_LENGTH&nbsp; $content_length;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; GATEWAY_INTERFACE&nbsp; CGI/1.1;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SERVER_SOFTWARE&nbsp; nginx;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SCRIPT_NAME&nbsp; $fastcgi_script_name;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; REQUEST_URI&nbsp; $request_uri;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; DOCUMENT_URI&nbsp; $document_uri;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; DOCUMENT_ROOT&nbsp; $document_root;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SERVER_PROTOCOL&nbsp; $server_protocol;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; REMOTE_ADDR&nbsp; $remote_addr;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; REMOTE_PORT&nbsp; $remote_port;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SERVER_ADDR&nbsp; $server_addr;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SERVER_PORT&nbsp; $server_port;</li>
<li>#&nbsp; &nbsp; fastcgi_param&nbsp; &nbsp; SERVER_NAME&nbsp; $server_name;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2009/12/16/djangonginx%e7%9a%84%e9%83%a8%e5%88%86%e9%85%8d%e7%bd%ae.shtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>apache自动生成目录文件列表配置</title>
		<link>http://www.sunboyu.cn/2009/07/22/apache%e8%87%aa%e5%8a%a8%e7%94%9f%e6%88%90%e7%9b%ae%e5%bd%95%e6%96%87%e4%bb%b6%e5%88%97%e8%a1%a8%e9%85%8d%e7%bd%ae.shtml</link>
		<comments>http://www.sunboyu.cn/2009/07/22/apache%e8%87%aa%e5%8a%a8%e7%94%9f%e6%88%90%e7%9b%ae%e5%bd%95%e6%96%87%e4%bb%b6%e5%88%97%e8%a1%a8%e9%85%8d%e7%bd%ae.shtml#comments</comments>
		<pubDate>Wed, 22 Jul 2009 11:13:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[LINUX]]></category>

		<category><![CDATA[apache列目录]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=880</guid>
		<description><![CDATA[由于种种原因，服务器给卖掉了，因此，我做的源码目录也就没了。这里把该目录的配置属性介绍一下：
&#60;directory /home/sunboyu/www_source.sunboyu.cn&#62;
&#160;&#160; &#160; &#160; &#160;MaxConnPerIP 1
&#160;&#160; &#160; &#160; &#160;ReadmeName foot.html&#160; &#160; &#160; &#160; #页面的头
&#160;&#160; &#160; &#160; &#160;HeaderName top.html&#160; &#160; &#160; &#160; &#160; #页面的脚
&#160;&#160; &#160; &#160; &#160;IndexIgnore top.html foot.html&#160; &#160; #列目录的时候，忽略这些文件
&#160;&#160; &#160; &#160; &#160;ServerSignature Off&#160; &#160; &#160; &#160;#关闭服务器标志
&#160;&#160; &#160; &#160; &#160;IndexOptions FancyIndexing VersionSort FoldersFirst SuppressLastModified NameWidth=* Charset=UTF-8
&#160;&#160; &#160; &#160; &#160;Options FollowSymLinks
&#160;&#160; &#160; &#160; &#160;Options +Indexes
&#160;&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>由于种种原因，服务器给卖掉了，因此，我做的源码目录也就没了。这里把该目录的配置属性介绍一下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;directory /home/sunboyu/www_source.sunboyu.cn&gt;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;MaxConnPerIP 1</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ReadmeName foot.html&nbsp; &nbsp; &nbsp; &nbsp; #页面的头</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;HeaderName top.html&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #页面的脚</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;IndexIgnore top.html foot.html&nbsp; &nbsp; #列目录的时候，忽略这些文件</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ServerSignature Off&nbsp; &nbsp; &nbsp; &nbsp;#关闭服务器标志</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;IndexOptions FancyIndexing VersionSort FoldersFirst SuppressLastModified NameWidth=* Charset=UTF-8</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Options FollowSymLinks</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Options +Indexes</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;AllowOverride all</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Order deny,allow</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Allow from all</li>
<li>&nbsp;&lt;/directory&gt;</li></ol></div>
<p>FancyIndexing 打开列表功能</p>
<p>VersionSort 同一文件不同版本分类列出</p>
<p>FoldersFirst 文件夹优先</p>
<p>SuppressLastModified 禁止列出最后修改时间</p>
<p>NameWidth=* 文件名长度 *当然是全部显示</p>
<p>Charset=UTF-8 页面输出编码</p>
<p>AddIcon /other/icons/exe.gif .bin .exe  给exe bin扩展名添加exe.gif图标</p>
<p>ScanHTMLTitles 如果有html文件，则度html的title为描述</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2009/07/22/apache%e8%87%aa%e5%8a%a8%e7%94%9f%e6%88%90%e7%9b%ae%e5%bd%95%e6%96%87%e4%bb%b6%e5%88%97%e8%a1%a8%e9%85%8d%e7%bd%ae.shtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>Pure-ftpd安装配置草稿－补充完全</title>
		<link>http://www.sunboyu.cn/2008/12/18/pure-ftpd%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e8%8d%89%e7%a8%bf%ef%bc%8d%e8%a1%a5%e5%85%85%e5%ae%8c%e5%85%a8.shtml</link>
		<comments>http://www.sunboyu.cn/2008/12/18/pure-ftpd%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e8%8d%89%e7%a8%bf%ef%bc%8d%e8%a1%a5%e5%85%85%e5%ae%8c%e5%85%a8.shtml#comments</comments>
		<pubDate>Thu, 18 Dec 2008 01:47:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[LINUX]]></category>

		<category><![CDATA[pure-ftpd]]></category>

		<category><![CDATA[草稿]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=431</guid>
		<description><![CDATA[cp /opt/mysql-5.0.22/lib/mysql/* /usr/lib&#160; &#160; &#160; &#160; &#160; #解决编译依赖库问题
./configure --prefix=/opt/pure-ftpd \
--with-mysql=/opt/mysql-5.0.22 \
--with-rfc2640 \
--with-language=simplified-chinese \
--with-peruserlimits \
--with-diraliases \
--with-virtualchroot \
--with-virtualhosts \
--with-welcomemsg \
--with-ftpwho \
--with-quotas \
--with-throttling \
--with-cookie \
--with-extauth \
--with-puredb \
--with-altlog \
--with-sysquotas \
--with-paranoidmsg \
--with-ascii \
--with-inetd
&#160;
cp  $install_dir/pureftpd-mysql.conf /opt/pure-ftpd/
cp  $install_dir/configuration-file/pure-config.pl pure-ftpd.conf /opt/pure-ftpd/
启动服务  /opt/pure-ftpd/pure-config.pl pure-ftpd.conf
这里补充完整：
安装完后，很多配置文件还在原来的安装包里，并没有部署到prefix目标文件夹下，需要手工复制过去，就是上边那两个，一个启动脚本，pure-config.pl 还有性能监控工具，统计工具等。
另外一个经常出现的问题：(为了重现，还得修改成错误的)
 421 配置错误: 无效的SQL配置文件: /opt/pure-ftpd/etc/pureftpd-mysql.conf
这个问题网上很多问的，但解释不到位，这里详细解释一下：我们在编译的时候选择了好多参数，部分参数跟配置是对应的，只有编译相关模块，才能打开相关配置，否则是不行的，会报错，但这个软件报错不报错误行数，所以调试起来比较费劲，我是一个个配置行进行开关才发现这个问题的，比如，我开启了这行，MySQLGetRatioDL SELECT DLRatio FROM users WHERE User=&#8221;\L&#8221; 但我编译的时候未加 ratio这个参数，就报错了，所以在调试的时候一定要对照一下编译时候的参数。
mysql中，密码我用的encryt加密，调试记得打开防火墙，其他没什么需要注意的。
]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cp /opt/mysql-5.0.22/lib/mysql/* /usr/lib&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #解决编译依赖库问题</li>
<li>./configure --prefix=/opt/pure-ftpd \</li>
<li>--with-mysql=/opt/mysql-5.0.22 \</li>
<li>--with-rfc2640 \</li>
<li>--with-language=simplified-chinese \</li>
<li>--with-peruserlimits \</li>
<li>--with-diraliases \</li>
<li>--with-virtualchroot \</li>
<li>--with-virtualhosts \</li>
<li>--with-welcomemsg \</li>
<li>--with-ftpwho \</li>
<li>--with-quotas \</li>
<li>--with-throttling \</li>
<li>--with-cookie \</li>
<li>--with-extauth \</li>
<li>--with-puredb \</li>
<li>--with-altlog \</li>
<li>--with-sysquotas \</li>
<li>--with-paranoidmsg \</li>
<li>--with-ascii \</li>
<li>--with-inetd</li>
<li>&nbsp;</li>
<li>cp  $install_dir/pureftpd-mysql.conf /opt/pure-ftpd/</li>
<li>cp  $install_dir/configuration-file/pure-config.pl pure-ftpd.conf /opt/pure-ftpd/</li></ol></div>
<p>启动服务  /opt/pure-ftpd/pure-config.pl pure-ftpd.conf</p>
<p>这里补充完整：<br />
安装完后，很多配置文件还在原来的安装包里，并没有部署到prefix目标文件夹下，需要手工复制过去，就是上边那两个，一个启动脚本，pure-config.pl 还有性能监控工具，统计工具等。<br />
另外一个经常出现的问题：(为了重现，还得修改成错误的)<br />
 421 配置错误: 无效的SQL配置文件: /opt/pure-ftpd/etc/pureftpd-mysql.conf<br />
这个问题网上很多问的，但解释不到位，这里详细解释一下：我们在编译的时候选择了好多参数，部分参数跟配置是对应的，只有编译相关模块，才能打开相关配置，否则是不行的，会报错，但这个软件报错不报错误行数，所以调试起来比较费劲，我是一个个配置行进行开关才发现这个问题的，比如，我开启了这行，MySQLGetRatioDL SELECT DLRatio FROM users WHERE User=&#8221;\L&#8221; 但我编译的时候未加 ratio这个参数，就报错了，所以在调试的时候一定要对照一下编译时候的参数。<br />
mysql中，密码我用的encryt加密，调试记得打开防火墙，其他没什么需要注意的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/12/18/pure-ftpd%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e8%8d%89%e7%a8%bf%ef%bc%8d%e8%a1%a5%e5%85%85%e5%ae%8c%e5%85%a8.shtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>我的一个虚拟主机配置，支持suexec+fastcgi+php+perl</title>
		<link>http://www.sunboyu.cn/2008/11/22/%e6%88%91%e7%9a%84%e4%b8%80%e4%b8%aa%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e9%85%8d%e7%bd%ae%ef%bc%8c%e6%94%af%e6%8c%81suexecfastcgiphpperl.shtml</link>
		<comments>http://www.sunboyu.cn/2008/11/22/%e6%88%91%e7%9a%84%e4%b8%80%e4%b8%aa%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e9%85%8d%e7%bd%ae%ef%bc%8c%e6%94%af%e6%8c%81suexecfastcgiphpperl.shtml#comments</comments>
		<pubDate>Sat, 22 Nov 2008 05:36:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[LINUX]]></category>

		<category><![CDATA[虚拟主机]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=392</guid>
		<description><![CDATA[&#60;virtualhost *:80&#62;
&#160;&#160; &#160;SuexecUserGroup www www
&#160;&#160; &#160;ServerAdmin webmaster@dummy-host.example.com
&#160;&#160; &#160;DocumentRoot &#34;/home/www/php&#34;
&#160;&#160; &#160;ServerName 192.168.43.129
&#160;&#160; &#160;ServerAlias www.dummy-host.example.com
&#160;&#160; &#160;ErrorLog &#34;logs/dummy-host.example.com-error_log&#34;
&#160;&#160; &#160;CustomLog &#34;logs/dummy-host.example.com-access_log&#34; combined
&#160;&#160; &#160;&#60;directory /home/www/php&#62;
&#160;&#160; &#160; &#160; &#160;AddHandler fcgid-script .php
&#160;&#160; &#160; &#160; &#160;AddHandler perl-script .pl .cgi
&#160;&#160; &#160; &#160; &#160;PerlResponseHandler ModPerl::Registry
&#160;&#160; &#160; &#160; &#160;PerlOptions +ParseHeaders
&#160;&#160; &#160; &#160; &#160;PerlOptions +SetupEnv
&#160;&#160; &#160; &#160; &#160;FCGIWrapper /home/www/php-cgi .php
&#160;&#160; &#160; &#160; &#160;Options ExecCGI +FollowSymLinks SymLinksIfOwnerMatch
&#160;&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;virtualhost *:80&gt;</li>
<li>&nbsp;&nbsp; &nbsp;SuexecUserGroup www www</li>
<li>&nbsp;&nbsp; &nbsp;ServerAdmin webmaster@dummy-host.example.com</li>
<li>&nbsp;&nbsp; &nbsp;DocumentRoot &quot;/home/www/php&quot;</li>
<li>&nbsp;&nbsp; &nbsp;ServerName 192.168.43.129</li>
<li>&nbsp;&nbsp; &nbsp;ServerAlias www.dummy-host.example.com</li>
<li>&nbsp;&nbsp; &nbsp;ErrorLog &quot;logs/dummy-host.example.com-error_log&quot;</li>
<li>&nbsp;&nbsp; &nbsp;CustomLog &quot;logs/dummy-host.example.com-access_log&quot; combined</li>
<li>&nbsp;&nbsp; &nbsp;&lt;directory /home/www/php&gt;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;AddHandler fcgid-script .php</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;AddHandler perl-script .pl .cgi</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;PerlResponseHandler ModPerl::Registry</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;PerlOptions +ParseHeaders</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;PerlOptions +SetupEnv</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FCGIWrapper /home/www/php-cgi .php</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Options ExecCGI +FollowSymLinks SymLinksIfOwnerMatch</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;allow from all</li>
<li>&nbsp;&nbsp; &nbsp;&lt;/directory&gt;</li>
<li>&lt;/virtualhost&gt;</li></ol></div>
<p>老一套，要注意的是各种脚本的映射，容器的合理使用。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/11/22/%e6%88%91%e7%9a%84%e4%b8%80%e4%b8%aa%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e9%85%8d%e7%bd%ae%ef%bc%8c%e6%94%af%e6%8c%81suexecfastcgiphpperl.shtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>CentOS5下配置JDK环境</title>
		<link>http://www.sunboyu.cn/2008/09/20/centos5%e4%b8%8b%e9%85%8d%e7%bd%aejdk%e7%8e%af%e5%a2%83.shtml</link>
		<comments>http://www.sunboyu.cn/2008/09/20/centos5%e4%b8%8b%e9%85%8d%e7%bd%aejdk%e7%8e%af%e5%a2%83.shtml#comments</comments>
		<pubDate>Sat, 20 Sep 2008 07:25:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[LINUX]]></category>

		<category><![CDATA[原创技术]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[jdk]]></category>

		<category><![CDATA[环境]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=323</guid>
		<description><![CDATA[下载jdk安装包 http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin
编辑/etc/profile
export JAVA_HOME=/opt/jdk1.6.0
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
export JRE_HOME=$JAVA_HOME/jre
保存加载配置 ： source /etc/profile
然后终端用echo $PATH 监测是否成功。
最后监测 java -version
如果回显出现
java version &#8220;1.6.0_10-rc2&#8243;
Java(TM) SE Runtime Environment (build 1.6.0_10-rc2-b32)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
则证明安装成功
]]></description>
			<content:encoded><![CDATA[<p>下载jdk安装包 http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-linux-i586-12_sep_2008.bin</p>
<p>编辑/etc/profile</p>
<p>export JAVA_HOME=/opt/jdk1.6.0<br />
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar<br />
export PATH=$PATH:$JAVA_HOME/bin<br />
export JRE_HOME=$JAVA_HOME/jre</p>
<p>保存加载配置 ： source /etc/profile</p>
<p>然后终端用echo $PATH 监测是否成功。</p>
<p>最后监测 java -version</p>
<p>如果回显出现</p>
<p>java version &#8220;1.6.0_10-rc2&#8243;<br />
Java(TM) SE Runtime Environment (build 1.6.0_10-rc2-b32)<br />
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)<br />
则证明安装成功</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/09/20/centos5%e4%b8%8b%e9%85%8d%e7%bd%aejdk%e7%8e%af%e5%a2%83.shtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>SVN配置使用</title>
		<link>http://www.sunboyu.cn/2008/08/09/svn%e9%85%8d%e7%bd%ae%e4%bd%bf%e7%94%a8.shtml</link>
		<comments>http://www.sunboyu.cn/2008/08/09/svn%e9%85%8d%e7%bd%ae%e4%bd%bf%e7%94%a8.shtml#comments</comments>
		<pubDate>Sat, 09 Aug 2008 08:16:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[LINUX]]></category>

		<category><![CDATA[svn]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=260</guid>
		<description><![CDATA[接这个 http://www.sunboyu.cn/2008/07/26/subversion-150-%E7%BC%96%E8%AF%91%E5%8F%82%E6%95%B0.shtml
安装完成后，可以建立仓库  svnadmin create /opt/$path
配置apache
&#60;Location /svn&#62;
DAV svn
SVNParentPath /opt/httpd-2.2.9/htdocs/repos
SVNListParentPath on
AuthzSVNAccessFile /opt/httpd-2.2.9/htdocs/repos/accessfile
Require valid-user
AuthType Basic
AuthName &#8220;Svn&#8221;
AuthUserFile /opt/httpd-2.2.9/htdocs/repos/passwordfile
&#60;/Location&#62;
生成password的方法 htpasswd -s /$file username
这样就可以建立一个密码文件，在httpd中调用。在调试的时候，权限是大事
]]></description>
			<content:encoded><![CDATA[<p>接这个 http://www.sunboyu.cn/2008/07/26/subversion-150-%E7%BC%96%E8%AF%91%E5%8F%82%E6%95%B0.shtml</p>
<p>安装完成后，可以建立仓库  svnadmin create /opt/$path</p>
<p>配置apache</p>
<p>&lt;Location /svn&gt;<br />
DAV svn<br />
SVNParentPath /opt/httpd-2.2.9/htdocs/repos<br />
SVNListParentPath on<br />
AuthzSVNAccessFile /opt/httpd-2.2.9/htdocs/repos/accessfile<br />
Require valid-user<br />
AuthType Basic<br />
AuthName &#8220;Svn&#8221;<br />
AuthUserFile /opt/httpd-2.2.9/htdocs/repos/passwordfile<br />
&lt;/Location&gt;</p>
<p>生成password的方法 htpasswd -s /$file username</p>
<p>这样就可以建立一个密码文件，在httpd中调用。在调试的时候，权限是大事</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/08/09/svn%e9%85%8d%e7%bd%ae%e4%bd%bf%e7%94%a8.shtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>memcache安装与配置详解</title>
		<link>http://www.sunboyu.cn/2008/05/19/memcache%e5%ae%89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3.shtml</link>
		<comments>http://www.sunboyu.cn/2008/05/19/memcache%e5%ae%89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3.shtml#comments</comments>
		<pubDate>Mon, 19 May 2008 02:44:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[原创技术]]></category>

		<category><![CDATA[memcache]]></category>

		<category><![CDATA[安装]]></category>

		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=20</guid>
		<description><![CDATA[libevent-1.2.tar.gz
memcache-3.0.1.tgz
memcached-1.2.0.tar.gz
安装 libevent-1.2.tar.gz
./configure
make &#38;&#38; make install
chmod 644 /usr/local/lib/libevent.a
PATH=&#8221;$PATH:/sbin&#8221; ldconfig -n /usr/local/lib
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR&#8217;
flag during linking and do at least one of the following:
- add [...]]]></description>
			<content:encoded><![CDATA[<div style="overflow: hidden; width: 500px;">libevent-1.2.tar.gz<br />
memcache-3.0.1.tgz<br />
memcached-1.2.0.tar.gz</p>
<p>安装 libevent-1.2.tar.gz<br />
./configure<br />
make &amp;&amp; make install</p>
<p>chmod 644 /usr/local/lib/libevent.a<br />
PATH=&#8221;$PATH:/sbin&#8221; ldconfig -n /usr/local/lib<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Libraries have been installed in:<br />
/usr/local/lib<br />
If you ever happen to want to link against installed libraries<br />
in a given directory, LIBDIR, you must either use libtool, and<br />
specify the full pathname of the library, or use the `-LLIBDIR&#8217;<br />
flag during linking and do at least one of the following:<br />
- add LIBDIR to the `LD_LIBRARY_PATH&#8217; environment variable<br />
during execution<br />
- add LIBDIR to the `LD_RUN_PATH&#8217; environment variable<br />
during linking<br />
- use the `-Wl,&#8211;rpath -Wl,LIBDIR&#8217; linker flag<br />
- have your system administrator add LIBDIR to `/etc/ld.so.conf&#8217;<br />
See any operating system documentation about shared libraries for<br />
more information, such as the ld(1) and ld.so(8) manual pages.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
test -z &#8220;/usr/local/include&#8221; || mkdir -p &#8212; . &#8220;/usr/local/include&#8221;<br />
/usr/bin/install -c -m 644 &#8216;event.h&#8217; &#8216;/usr/local/include/event.h&#8217;<br />
/usr/bin/install -c -m 644 &#8216;evhttp.h&#8217; &#8216;/usr/local/include/evhttp.h&#8217;<br />
/usr/bin/install -c -m 644 &#8216;evdns.h&#8217; &#8216;/usr/local/include/evdns.h&#8217;<br />
test -z &#8220;/usr/local/man/man3&#8243; || mkdir -p &#8212; . &#8220;/usr/local/man/man3&#8243;<br />
/usr/bin/install -c -m 644 &#8216;./event.3&#8242; &#8216;/usr/local/man/man3/event.3&#8242;<br />
/usr/bin/install -c -m 644 &#8216;./evdns.3&#8242; &#8216;/usr/local/man/man3/evdns.3&#8242;</p>
<p>安装 memcached-1.2.0.tar.gz<br />
./configure<br />
make &amp;&amp; make install</p>
<p>Making install in doc<br />
make[1]: Entering directory `/root/memcached-1.2.0/doc&#8217;<br />
make[2]: Entering directory `/root/memcached-1.2.0/doc&#8217;<br />
make[2]: Nothing to be done for `install-exec-am&#8217;.<br />
/bin/sh ../mkinstalldirs /usr/local/man/man1<br />
/usr/bin/install -c -m 644 ./memcached.1 /usr/local/man/man1/memcached.1<br />
make[2]: Leaving directory `/root/memcached-1.2.0/doc&#8217;<br />
make[1]: Leaving directory `/root/memcached-1.2.0/doc&#8217;<br />
make[1]: Entering directory `/root/memcached-1.2.0&#8242;<br />
make[2]: Entering directory `/root/memcached-1.2.0&#8242;<br />
/bin/sh ./mkinstalldirs /usr/local/bin<br />
/usr/bin/install -c memcached /usr/local/bin/memcached<br />
/usr/bin/install -c memcached-debug /usr/local/bin/memcached-debug</p>
<p>启动 -d守护进程 -m内存分配 -u 用户 -l监听地址 -p 端口 -P pid文件<br />
memcached -d -m 100 -u root -l 127.0.0.1 -p 8000 -P /tmp/mem.pid</p>
<p>安装 memcache-3.0.1.tgz<br />
phpize<br />
./configure<br />
make &amp;&amp; make install</p>
<p>gcc -shared  .libs/memcache.o .libs/memcache_pool.o .libs/memcache_queue.o .libs/memcache_ascii_protocol.o .libs/memcache_binary_protocol.o .libs/memcache_standard_hash.o .libs/memcache_consistent_hash.o .libs/memcache_session.o   -Wl,-soname -Wl,memcache.so -o .libs/memcache.so<br />
creating memcache.la<br />
(cd .libs &amp;&amp; rm -f memcache.la &amp;&amp; ln -s ../memcache.la memcache.la)<br />
/bin/sh /root/memcache-3.0.1/libtool &#8211;mode=install cp ./memcache.la /root/memcache-3.0.1/modules<br />
cp ./.libs/memcache.so /root/memcache-3.0.1/modules/memcache.so<br />
cp ./.libs/memcache.lai /root/memcache-3.0.1/modules/memcache.la<br />
PATH=&#8221;$PATH:/sbin&#8221; ldconfig -n /root/memcache-3.0.1/modules<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Libraries have been installed in:<br />
/root/memcache-3.0.1/modules<br />
If you ever happen to want to link against installed libraries<br />
in a given directory, LIBDIR, you must either use libtool, and<br />
specify the full pathname of the library, or use the `-LLIBDIR&#8217;<br />
flag during linking and do at least one of the following:<br />
- add LIBDIR to the `LD_LIBRARY_PATH&#8217; environment variable<br />
during execution<br />
- add LIBDIR to the `LD_RUN_PATH&#8217; environment variable<br />
during linking<br />
- use the `-Wl,&#8211;rpath -Wl,LIBDIR&#8217; linker flag<br />
- have your system administrator add LIBDIR to `/etc/ld.so.conf&#8217;<br />
See any operating system documentation about shared libraries for<br />
more information, such as the ld(1) and ld.so(8) manual pages.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Build complete.<br />
Don&#8217;t forget to run &#8216;make test&#8217;.<br />
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20060613/</p>
<p>php.ini  extent 加载 memcache.so<br />
重启使其生效即可</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/05/19/memcache%e5%ae%89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3.shtml/feed</wfw:commentRss>
		</item>
	</channel>
</rss>

