<?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>MAXidea的Blog佬世界 &#187; Windows Server 2003 64bit</title>
	<atom:link href="http://www.maxidea.com/tag/windows-server-2003-64bit/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maxidea.com</link>
	<description>LAMP Expert</description>
	<lastBuildDate>Mon, 19 Jul 2010 03:15:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP 4.4.9 for Windows Server 2003 (64bit) on IIS 6.0</title>
		<link>http://www.maxidea.com/2009/05/12/125</link>
		<comments>http://www.maxidea.com/2009/05/12/125#comments</comments>
		<pubDate>Tue, 12 May 2009 09:25:32 +0000</pubDate>
		<dc:creator>maxidea</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[IIS 6.0]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows Server 2003 64bit]]></category>

		<guid isPermaLink="false">http://www.maxidea.com/?p=125</guid>
		<description><![CDATA[PHP 4.4.9 for Windows Server 2003 (64bit) on IIS 6.0
Last update 2009-05-12 by SimonXu
Step 1: install PHP (Reference: http://blog.templatehome.cn/pos[......]<p class='read-more'><a href='http://www.maxidea.com/2009/05/12/125'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>PHP 4.4.9 for Windows Server 2003 (64bit) on IIS 6.0<br />
Last update 2009-05-12 by SimonXu</p>
<p>Step 1: install PHP (Reference: http://blog.templatehome.cn/post/214):</p>
<p>1) unzip php-4.4.9-Win32 to E:\php</p>
<p>2) change the security for &#8220;E:\php&#8221; Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>3) Copy a E:\PHP\php.ini-dist to C:\WINDOWS\php.ini and modify<br />
extension_dir = &#8220;./&#8221; to extension_dir = &#8220;D:\php\extensions&#8221;</p>
<p>4) Copy &#8220;php4ts.dll&#8221; to &#8220;C:\WINDOWS\system32&#8243; and change the security for its Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>5) Copy &#8220;php4isapi.dll&#8221; to &#8220;C:\WINDOWS&#8221; and change the security for its Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>6) Change the Environment PATH for windows by &#8220;My computer&#8221;->&#8221;Properties&#8221;->&#8221;Advanced&#8221;->&#8221;Environment Variables&#8221;->&#8221;System Variables&#8221; to modify &#8220;PATH&#8221;: add &#8220;E:\php;E:\php\dlls;E:\php\extensions;E:\php\sapi;&#8221; to the front of the PATH (!Important!)</p>
<p>Setp 2: Change IIS 6 from 64bit to 32bit support ASP.NET 2.0 to support ASP/HTML/PHP in a same time(Reference: http://support.microsoft.com/?id=894435)</p>
<p>1) change to 32 bit run this cmd:<br />
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1</p>
<p>2) Open &#8220;Administrative Tools&#8221; -> &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Properties&#8221;->&#8221;ISAPI Filters&#8221; change the 64bit filter to 32bit version:<br />
Remote: ASP.NET_2.0.50727.0 (path: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll)<br />
Add: ASP.NET_2.0.50727.0(32) (path: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll)</p>
<p>3) Add a new web service extensions for &#8220;ASP.NET_2.0.50727(32)&#8221; from &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Service Extensions&#8221;->&#8221;Add a new web service extensions&#8221;->Extension Name: ASP.NET_2.0.50727(32) -> Require files: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll and enable &#8220;Set extension status to Allowed&#8221;</p>
<p>4) Restart IIS by cmd:<br />
net stop w3svc<br />
net stop iisadmin /yes<br />
net start iisadmin<br />
net start w3svc</p>
<p>Step 3: Change IIS to support PHP:</p>
<p>1) Add a new web service extensions for PHP from &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Service Extensions&#8221;->&#8221;Add a new web service extensions&#8221;->Extension Name: PHP4 -> Require files: C:\WINDOWS\php4isapi.dll and enable &#8220;Set extension status to Allowed&#8221;</p>
<p>2) Open &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Default Web Site&#8221;->&#8221;Properties&#8221;->&#8221;ISAPI Filters&#8221; and add a PHP filter by name: php, Executable: C:\WINDOWS\php4isapi.dll (after reset IIS, the status should be turn to &#8220;Loaded&#8221;)</p>
<p>3) Open &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Default Web Site&#8221;->&#8221;Properties&#8221;->&#8221;Home Directory&#8221;->&#8221;Configuration&#8230;&#8221; to add a &#8220;.php&#8221; extension by &#8220;Executable: C:\WINDOWS\php4isapi.dll&#8221; and let other setting as default.</p>
<p>4) Reset IIS by cmd : iisreset</p>
<p>That&#8217;s all, enjoy~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maxidea.com/2009/05/12/125/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
