<?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>Sonic Cube</title>
	<atom:link href="http://soniccube.net/feed" rel="self" type="application/rss+xml" />
	<link>http://soniccube.net</link>
	<description>On The Road ...</description>
	<lastBuildDate>Sun, 14 Jun 2009 10:54:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Server下IIS+PHP+FastCGI的简单优化</title>
		<link>http://soniccube.net/2009/06/14/iis-php-fastcgi-optimize</link>
		<comments>http://soniccube.net/2009/06/14/iis-php-fastcgi-optimize#comments</comments>
		<pubDate>Sun, 14 Jun 2009 10:54:37 +0000</pubDate>
		<dc:creator>Sonic</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://soniccube.net/?p=10</guid>
		<description><![CDATA[前两天因为一台linux的机器硬盘挂掉了,所以临时找了台Server 2003先顶了一下&#8230;
因为FastCGI的性能提高不少,所以也尝试了一下让IIS用FastCGI的方式执行PHP.简单做了一点优化,效果还是比较满意的.
所有操作在IIS6下测试,未测试IIS7.
用文本编辑器打开C:\WINDOWS\system32\inetsrv\fcgiext.ini,找到[PHP]部分.主要的属性有以下几个:
MaxInstances=10
MaxInstances定义了IIS可以发起的最大cgi进程数,默认值为10,该数值对大多数需要用到独立服务器的网站来说是不够的.具体修改的数值,建议根据系统资源决定,一般情况下,正常工作状态的php-cgi进程需要占用20M内存.
QueueLength=n
一个cgi进程最大处理队列值,默认1000
IdleTimeout=n
php-cgi进程的允许空闲时间,默认300s,超过该时间cgi进程退出
InstanceMaxRequests=n
每个cgi进程允许处理的请求次数,达到该数值cgi进程将重启.
]]></description>
			<content:encoded><![CDATA[<p>前两天因为一台linux的机器硬盘挂掉了,所以临时找了台Server 2003先顶了一下&#8230;</p>
<p>因为FastCGI的性能提高不少,所以也尝试了一下让IIS用FastCGI的方式执行PHP.简单做了一点优化,效果还是比较满意的.</p>
<p>所有操作在IIS6下测试,未测试IIS7.</p>
<p>用文本编辑器打开C:\WINDOWS\system32\inetsrv\fcgiext.ini,找到[PHP]部分.主要的属性有以下几个:</p>
<p>MaxInstances=10<br />
MaxInstances定义了IIS可以发起的最大cgi进程数,默认值为10,该数值对大多数需要用到独立服务器的网站来说是不够的.具体修改的数值,建议根据系统资源决定,一般情况下,正常工作状态的php-cgi进程需要占用20M内存.</p>
<p>QueueLength=n<br />
一个cgi进程最大处理队列值,默认1000</p>
<p>IdleTimeout=n<br />
php-cgi进程的允许空闲时间,默认300s,超过该时间cgi进程退出</p>
<p>InstanceMaxRequests=n<br />
每个cgi进程允许处理的请求次数,达到该数值cgi进程将重启.</p>
]]></content:encoded>
			<wfw:commentRss>http://soniccube.net/2009/06/14/iis-php-fastcgi-optimize/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>重大漏洞, 让Apache上传不安全 &#8211; php.*</title>
		<link>http://soniccube.net/2009/06/14/apache-security-bug-of-php</link>
		<comments>http://soniccube.net/2009/06/14/apache-security-bug-of-php#comments</comments>
		<pubDate>Sun, 14 Jun 2009 10:53:00 +0000</pubDate>
		<dc:creator>Sonic</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://soniccube.net/?p=8</guid>
		<description><![CDATA[今天Google Reader上几个朋友share出几篇不错的文章,重大漏洞, 让Apache上传不安全-php.rar是其中一篇.
文章主要针对apache的一个问题,当一个连接请求xxx.php.suffix文件时,若该suffix在mime中没有定义,则apache会将这个文件当作是php文件来执行!而在apache默认配置中,rar,7z等等可能允许上传的文件中,都是没有定义mime的.
我简单测试了几个文件,甚至连test.php.gif这样的文件名都存在问题.而gif是有在mime中定义的.
上面文章中提到修改mime和添加type的方法,我也测试了一下,在我用的一台机器上,不能解决问题.
最后只能暂时将*.php.*全部禁止访问.禁止方法是在http.conf中加入如下内容:

&#60;FilesMatch &#8220;\.php.(.*)$&#8221;&#62;
        deny from all
&#60;/FilesMatch&#62;

该问题在apache 2.2.6中测试存在.上面的解决方法,可能造成部分正常文件无法访问.比如test.php.tar.bz2
]]></description>
			<content:encoded><![CDATA[<p>今天Google Reader上几个朋友share出几篇不错的文章,<a href="http://www.php-oa.com/2008/12/17/apache-phprar.html" target="_blank">重大漏洞, 让Apache上传不安全-php.rar</a>是其中一篇.</p>
<p>文章主要针对apache的一个问题,当一个连接请求xxx.php.suffix文件时,若该suffix在mime中没有定义,则apache会将这个文件当作是php文件来执行!而在apache默认配置中,rar,7z等等可能允许上传的文件中,都是没有定义mime的.</p>
<p>我简单测试了几个文件,甚至连test.php.gif这样的文件名都存在问题.而gif是有在mime中定义的.</p>
<p>上面文章中提到修改mime和添加type的方法,我也测试了一下,在我用的一台机器上,不能解决问题.</p>
<p>最后只能暂时将*.php.*全部禁止访问.禁止方法是在http.conf中加入如下内容:</p>
<blockquote><p>
&lt;FilesMatch &#8220;\.php.(.*)$&#8221;&gt;<br />
        deny from all<br />
&lt;/FilesMatch&gt;
</p></blockquote>
<p>该问题在apache 2.2.6中测试存在.上面的解决方法,可能造成部分正常文件无法访问.比如test.php.tar.bz2</p>
]]></content:encoded>
			<wfw:commentRss>http://soniccube.net/2009/06/14/apache-security-bug-of-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS Smartd报错</title>
		<link>http://soniccube.net/2009/06/14/centos-smartd-error</link>
		<comments>http://soniccube.net/2009/06/14/centos-smartd-error#comments</comments>
		<pubDate>Sun, 14 Jun 2009 10:49:49 +0000</pubDate>
		<dc:creator>Sonic</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Smartd]]></category>

		<guid isPermaLink="false">http://soniccube.net/?p=4</guid>
		<description><![CDATA[一台机器,CentOS 5.2,root收到邮件,主要内容:
Device: /dev/sda, 365 Currently unreadable (pending) sectors
Device: /dev/sda, 406 Offline uncorrectable sectors
检查/var/log/message,也有多出同样内容.
挂到Windows的机器上用hdtune测试,发现坏道!
备份数据,更换硬盘!
]]></description>
			<content:encoded><![CDATA[<p>一台机器,CentOS 5.2,root收到邮件,主要内容:</p>
<blockquote><p>Device: /dev/sda, 365 Currently unreadable (pending) sectors<br />
Device: /dev/sda, 406 Offline uncorrectable sectors</p></blockquote>
<p>检查/var/log/message,也有多出同样内容.</p>
<p>挂到Windows的机器上用hdtune测试,发现坏道!</p>
<p>备份数据,更换硬盘!</p>
]]></content:encoded>
			<wfw:commentRss>http://soniccube.net/2009/06/14/centos-smartd-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
