<?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>憂藍夢境‧部落格 &#187; ISAPI</title>
	<atom:link href="http://blog.linym.net/archives/tag/isapi/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.linym.net</link>
	<description>我的學習心得、筆記</description>
	<lastBuildDate>Fri, 09 Dec 2011 12:33:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>IIS6+PHP5 (ISAPI) 安裝攻略</title>
		<link>http://blog.linym.net/archives/240</link>
		<comments>http://blog.linym.net/archives/240#comments</comments>
		<pubDate>Tue, 30 Sep 2008 02:17:21 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[程式筆記]]></category>
		<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ISAPI]]></category>
		<category><![CDATA[server 2003]]></category>

		<guid isPermaLink="false">http://blog.linym.net/?p=240</guid>
		<description><![CDATA[最近因為特別需求要在 IIS6 上面跑 PHP，把以前寫的筆記拿出來看，卻發現怎麼弄也跑不起來，看了很多篇文章還是不行，研究了許久終於可以跑了，經過多次測試保證 100% 可行。 ※ 此篇是以 ISAPI 模式執行 PHP，建議使用另一篇的 FastCGI 會有較好的效能。 安裝步驟： 1. 確認 IIS 已經裝好，到 PHP 官網下載新版 PHP5 壓縮檔，並且解壓縮(假設在 C:\PHP5)。 2. 將 C:\PHP5\php.ini-dist 改名為 php.ini，然後依需求編輯設定檔內容，範例： include_path = &#34;.;C:\Inetpub\wwwroot&#34; extension_dir = &#34;C:\PHP5\ext&#34; extension=php_curl.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mcrypt.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_openssl.dll extension=php_zip.dll date.timezone = "Asia/Taipei" 3. 對 C:\PHP5 目錄增加 IIS_WPG 群組及 IUSR_XXXX 使用者的讀取及執行權限。 (關鍵步驟，一定要兩個都增加，否則執行 PHP [...]]]></description>
			<content:encoded><![CDATA[<p>最近因為特別需求要在 IIS6 上面跑 PHP，把以前寫的筆記拿出來看，卻發現怎麼弄也跑不起來，看了很多篇文章還是不行，研究了許久終於可以跑了，經過多次測試保證 100% 可行。<br />
<em>※ 此篇是以 ISAPI 模式執行 PHP，建議使用另一篇的 <a href="http://blog.linym.net/archives/264">FastCGI</a> 會有較好的效能。</em></p>
<p><strong>安裝步驟：</strong><br />
1. 確認 IIS 已經裝好，到 <a href="http://www.php.net/downloads.php" target="_blank">PHP 官網</a>下載新版 PHP5 壓縮檔，並且解壓縮(假設在 C:\PHP5)。</p>
<p>2. 將 C:\PHP5\php.ini-dist 改名為 php.ini，然後依需求編輯設定檔內容，範例：</p>
<pre>
include_path = &quot;.;C:\Inetpub\wwwroot&quot;
extension_dir = &quot;C:\PHP5\ext&quot;

extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mcrypt.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_zip.dll

date.timezone = "Asia/Taipei"
</pre>
<p>3. 對 C:\PHP5 目錄增加 IIS_WPG 群組及 IUSR_XXXX 使用者的讀取及執行權限。<br />
<strong>(關鍵步驟，一定要兩個都增加，否則執行 PHP 會跳出驗證框)</strong><br />
<a href="http://blog.linym.net/wp-content/uploads/2008/09/03.jpg" target="_blank"><img src="http://blog.linym.net/wp-content/uploads/2008/09/03.jpg" alt="" title="增加權限" width="368" height="445" class="alignnone size-full wp-image-249" /></a></p>
<p>4. 加入系統環境變數 (讓 extension 及 php.ini 能順利被找到)。<br />
Path=C:\PHP5;<br />
PHPRC=C:\PHP5<br />
<a href="http://blog.linym.net/wp-content/uploads/2008/09/05.jpg" target="_blank"><img src="http://blog.linym.net/wp-content/uploads/2008/09/05.jpg" alt="" title="環境變數" width="384" height="393" class="alignnone size-full wp-image-253" /></a></p>
<p>5. 開啟 IIS 管理員，如下圖設定。<br />
<a href="http://blog.linym.net/wp-content/uploads/2008/09/06.jpg" target="_blank"><img src="http://blog.linym.net/wp-content/uploads/2008/09/06.jpg" alt="" title="IIS 管理員" width="472" height="532" class="alignnone size-full wp-image-255" /></a></p>
<p>6. 增加預設首頁 index.php<br />
<a href="http://blog.linym.net/wp-content/uploads/2008/09/08.jpg" target="_blank"><img src="http://blog.linym.net/wp-content/uploads/2008/09/08.jpg" alt="" title="預設首頁" width="471" height="430" class="alignnone size-full wp-image-259" /></a></p>
<p>7. 增加網頁服務延伸。<br />
<a href="http://blog.linym.net/wp-content/uploads/2008/09/07.jpg" target="_blank"><img src="http://blog.linym.net/wp-content/uploads/2008/09/07.jpg" alt="" title="網頁服務延伸" width="500" height="538" class="alignnone size-full wp-image-257" /></a></p>
<p>8. 重新啟動 IIS 就 OK 囉，丟一個測試檔案到網站目錄看看吧！<br />
<a href="http://blog.linym.net/wp-content/uploads/2008/09/09.jpg" target="_blank"><img src="http://blog.linym.net/wp-content/uploads/2008/09/09.jpg" alt="" title="phpinfo" width="500" height="339" class="alignnone size-full wp-image-260" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/240/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

