<?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>All About Unidev &#187; fastcgi</title>
	<atom:link href="http://blog.unidev.com/index.php/tag/fastcgi/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unidev.com</link>
	<description>Custom Software, Website and Mobile Development News</description>
	<lastBuildDate>Wed, 25 Jan 2012 20:54:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using PHP FastCGI mode on Windows Server 2003 x64 w/ IIS in 32-bit mode</title>
		<link>http://blog.unidev.com/index.php/2009/09/16/using-php-5-3-0-on-windows-server-2003-x64-w-iis-in-32-bit-mode/</link>
		<comments>http://blog.unidev.com/index.php/2009/09/16/using-php-5-3-0-on-windows-server-2003-x64-w-iis-in-32-bit-mode/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 03:27:31 +0000</pubDate>
		<dc:creator>Brian Bohl</dc:creator>
				<category><![CDATA[Custom Development]]></category>
		<category><![CDATA[General Technology]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[fcgiext]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[iis 32 bit mode]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows server 2003 x64]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/?p=159</guid>
		<description><![CDATA[I recently needed to upgrade the PHP for a particular site from 5.2.6 to 5.3.0.&#160; Of course, this is when I found out that PHP no longer supports the ISAPI module and instead wants you to use FastCGI.&#160; Luckily I found a great article on how to configure IIS at http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/.&#160; However, these instructions have [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to upgrade the PHP for a particular site from 5.2.6 to 5.3.0.&#160; Of course, this is when I found out that PHP no longer supports the ISAPI module and instead wants you to use FastCGI.&#160; Luckily I found a great article on how to configure IIS at <a title="http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/" href="http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/">http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/</a>.&#160; However, these instructions have some caveats in regards to running IIS in 32 bit mode on Windows Server 2003 x64.&#160; To make a long story short, just like with most things running in 32 bit mode on x64, everything that references %WINDIR%\system32 really needs to point to %WINDIR%\SysWOW64.&#160; If you use the fcgiconfig.js script, this will configure everything to point to %WINDIR%\system32.</p>
<ul>
<li>The Web Service Extension needs to point to %WINDIR%\SysWOW64\inetsrv\fcgiext.dll. </li>
<li>The .php extension on the website also needs to point to %WINDIR%\SysWOW64\inetsrv\fcgiext.dll. </li>
<li>The fcgiext.ini file must also be located in %WINDIR%\SysWOW64\inetsrv.&#160; Otherwise you will get a 500 error from FastCGI saying it cannot find the configuration file.      </li>
</ul>
<p>Note that the fcgiconfig.js script is only installed in %WINDIR%\system32\inetsrv.&#160; I was able to create a fcgiconfigwow64.js file that points to the correct files.&#160; The script needs to have at least an ini file with the “[Types]” section in the %WINDIR%\SysWOW64\inetsrv directory.&#160; It also needs to be located under %WINDIR%\system32 as it doesn’t support running under Wow64.&#160; You just need to change the following 2 lines near the top of the script.</p>
<p>From:</p>
<p><font size="1" face="Courier New">var g_iniPath&#160;&#160;&#160;&#160;&#160;&#160; = g_Shell.ExpandEnvironmentStrings( &quot;%WinDir%\\system32\\inetsrv\\fcgiext.ini&quot; );      <br />var g_extensionPath = g_Shell.ExpandEnvironmentStrings( &quot;%WinDir%\\system32\\inetsrv\\fcgiext.dll&quot; );</font></p>
<p>To:</p>
<p><font size="1" face="Courier New">var g_iniPath&#160;&#160;&#160;&#160;&#160;&#160; = g_Shell.ExpandEnvironmentStrings( &quot;%WinDir%\\SysWOW64\\inetsrv\\fcgiext.ini&quot; );      <br />var g_extensionPath = g_Shell.ExpandEnvironmentStrings( &quot;%WinDir%\\SysWOW64\\inetsrv\\fcgiext.dll&quot; );</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2009/09/16/using-php-5-3-0-on-windows-server-2003-x64-w-iis-in-32-bit-mode/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

