<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'fastCGI custom'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=fastCGI+custom&amp;orTags=0</link><description>Search results matching tag 'fastCGI custom'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: FastCGI does not work with PHP 5.3.0 VC9 ??</title><link>http://forums.iis.net/p/1159786/1918998.aspx#1918998</link><pubDate>Wed, 30 Sep 2009 14:47:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918998</guid><dc:creator>david_g17</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;you need the 64 bit version of:&lt;br /&gt;&lt;/p&gt;
&lt;b&gt;Microsoft Visual C++ 2008 Redistributable Package (x86)&lt;/b&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;http://www.microsoft.com/downloads/thankyou.aspx?familyId=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&amp;amp;displayLang=en&lt;/p&gt;
&lt;p&gt;There&amp;#39;s also a 64 bit version for 64 bit operating systems.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had the same problem and installed the 32 bit package above, and it fixed the problem.&amp;nbsp; I think the version 5.3 of PHP does not include some developmental files which are included in the redistributable package above. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I posted in this thread b/c it comes up when I google the error message I was getting. &lt;br /&gt;&lt;/p&gt;

</description></item><item><title>IIS 5.1 or IIS 6.0, FastCGI and Perl Configuration that Works.</title><link>http://forums.iis.net/p/1151604/1878815.aspx#1878815</link><pubDate>Tue, 09 Sep 2008 00:53:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878815</guid><dc:creator>digitalhack</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;After spending a good bit of time with Google and through trial and error I have found a configuration that appears to support perl using FastCGI on IIS 5.1 and IIS 6.0 using MS&amp;#39;s FastCGI Extension for IIS6.0.&amp;nbsp; I have tested it out on a limited basis using both IIS 5.1 on WinXp and IIS 6.0 on a virtual machine copy of Windows 2003 Server running on top of WinXP.&lt;/p&gt;
&lt;p&gt;With this setup you setup a specific perl routine to run every time a URL with a specific extension is entered.&amp;nbsp; What use this is I will leave up to you to decide. &lt;/p&gt;
&lt;p&gt;A good description of how to configure FastCGI that focuses on PHP:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/248/configuring-fastcgi-extension-for-iis60/"&gt;http://learn.iis.net/page.aspx/248/configuring-FastCGI-extension-for-iis60/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here are the steps that I took to make it work with perl.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1. Configure IIS on both platforms using the default choices.&lt;/li&gt;
&lt;li&gt;2. Download and install ActivePerl 5.8.8.824 using the msi installer and the default choices. Downloaded from: &lt;a href="http://www.activestate.com/store/download_file.aspx?binGUID=45107672-7d2c-4529-85be-4aad89bcd59c"&gt;http://www.activestate.com/store/download_file.aspx?binGUID=45107672-7d2c-4529-85be-4aad89bcd59c&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;3. Using the ppm utility from ActivePerl install the FCGI module from the ActiveState PPM repository.&lt;/li&gt;
&lt;li&gt;4. Download and install FastCGI using default options. Downloaded from: &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&amp;amp;displaylang=en&lt;/a&gt; and check to make sure fcgiconfig.js, fcgiext.dll and fcgiext.ini were all present in c:\windows\system32\inetsrv.&lt;/li&gt;
&lt;li&gt;5. In &amp;quot;Local Security Settings&amp;quot; under &amp;quot;User Rights Assignment&amp;quot; add the &amp;quot;Network Service&amp;quot; to &amp;quot;Access this computer from the network&amp;quot;. This took me a while to figure out. Now I need to think about potential side effects.&lt;/li&gt;
&lt;li&gt;6. Using the Internet Information Services manager program:&lt;/li&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a. Select properties for the &amp;quot;Default Web Site&amp;quot; and then go to the &amp;quot;Home Directory&amp;quot; tab and select &amp;quot;Configuration...&amp;quot; to get &amp;quot;Application Configuration&amp;quot; window.&lt;/li&gt;
&lt;li&gt;b. Select &amp;quot;Add&amp;quot; to get the &amp;quot;Add/Edit Application Mapping&amp;quot; window.&lt;/li&gt;
&lt;li&gt;c. Under &amp;quot;Executable:&amp;quot; browse to c:\windows\ststem32\inetsrv\fcgiext.dll and select it.&lt;/li&gt;
&lt;li&gt;d. Once back at the &amp;quot;Add/Edit Application Mapping&amp;quot; select the value in the &amp;quot;Executable:&amp;quot; window. If you don&amp;#39;t do this you will never be able to select &amp;quot;OK&amp;quot;. See &lt;a href="http://support.microsoft.com/kb/317948"&gt;http://support.microsoft.com/kb/317948&lt;/a&gt; for further details.&lt;/li&gt;
&lt;li&gt;e. Type in .fcgi into the &amp;quot;Extension&amp;quot; field.&lt;/li&gt;
&lt;li&gt;f. Check to make sure the &amp;quot;Script Engine&amp;quot; box is checked&lt;/li&gt;
&lt;li&gt;g. The documentation says that &amp;quot;File Exists&amp;quot; must be checked but based on initial tests this is not the case.&lt;/li&gt;
&lt;li&gt;h. Press OK.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;7. Using the Services I restart the &amp;quot;World Wide Web Publishing&amp;quot; service. &lt;/li&gt;
&lt;li&gt;8. Edit fcgiext.ini to include the lines below at the bottom. Note that what this is going to do is run the perl routine in printenv.fcgi every time you enter anything with an &amp;quot;.fcgi&amp;quot; extension. If you have not selected the checked the &amp;quot;File Exists&amp;quot; above then there will be no checking to make sure the file even exists.&lt;/li&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;code&gt;&lt;pre&gt;[Types] 

fcgi=fcgi 

[fcgi] 

ExePath=c:\perl\bin\perl.exe 
Arguments=c:\inetpub\wwwroot\printenv.fcgi &lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/code&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;li&gt;9. Placed printenv.fgci into the c:\inetpub\wwwroot directory.&lt;/li&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;code&gt;&lt;pre&gt;use FCGI; 

while (FCGI::accept() == 0) {
  print &amp;quot;Content-type: text/html\r\n\r\n&amp;quot;;
  while (($key, $val) = each %ENV) { 
    print &amp;quot;$key = $val\n&amp;quot;;
   } 
} &lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/ul&gt;
&lt;p&gt;At this point printenv.fcgi will run every time you enter the following URL &lt;a href="http://yourserver.domain.com/printenv.fcgi"&gt;http://yourserver.domain.com/printenv.fcgi&lt;/a&gt;. &amp;nbsp;Again note if you have not selected &amp;quot;File Exits&amp;quot; when you setup the application mapping no checking to see if the file on the URL actually exists.&amp;nbsp; In this case &lt;a href="http://yourserver.domain.com/mydir/test.fcgi"&gt;http://yourserver.domain.com/mydir/test.fcgi&lt;/a&gt;&amp;nbsp;will also run printenv.fcgi.&lt;/p&gt;
&lt;p&gt;I hope this helps,&lt;/p&gt;
&lt;p&gt;digitalhack&lt;/p&gt;</description></item><item><title>FastCGI Error - Error Description: Access is denied.</title><link>http://forums.iis.net/p/1148305/1864867.aspx#1864867</link><pubDate>Fri, 07 Mar 2008 15:25:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1864867</guid><dc:creator>cyberwolf</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;hi there&lt;/p&gt;&lt;p&gt;i&amp;#39;m using PHP 5.2.5 under IIS 6 (windows
server 2003) -php ISAPI&lt;/p&gt;&lt;p&gt;for some reason I need to install FastCGI to server,&lt;/p&gt;&lt;p&gt;i&amp;#39;m trying install, but without any luck. getting page:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Error Details:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Error Number: 5 (0x80070005).&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Error Description: Access is denied.&lt;br /&gt;&lt;br /&gt;HTTP Error 500 - Server Error.&lt;br /&gt;Internet Information Services (IIS)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;plz help :(&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>FastCGI Error</title><link>http://forums.iis.net/p/1148281/1864752.aspx#1864752</link><pubDate>Thu, 06 Mar 2008 07:31:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1864752</guid><dc:creator>oferpld</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Currently I am trying to run PHP pages (PHP 5.2.5) under IIS 6 (windows server 2003) without any luck. I keep getting the following pages:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FastCGI Error&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The FastCGI Handler was unable to process the request. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Details:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The FastCGI process exited unexpectedly&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error Number: -1073741819 (0xc0000005).&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error Description: Unknown Error&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I did not see any refference to the that kind of error message.&lt;/p&gt;
&lt;p&gt;Please advice, Ofer.&lt;/p&gt;</description></item><item><title>IIS unable to read Stream include CR LF with STDIN (C/C++)</title><link>http://forums.iis.net/p/1147530/1861738.aspx#1861738</link><pubDate>Thu, 10 Jan 2008 22:32:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1861738</guid><dc:creator>monoid</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I have developed a Webservice in C++, which receive streams from STDIN via POST and saves it to a file. &lt;/p&gt;
&lt;p&gt;If there is no CR LF in the stream,&amp;nbsp;IIS read the stream from&amp;nbsp;stdin perfectly on IIS webserver. But if there is a CR LF inside the stream, the following code example hang on. On Apache Webserver it works always good.&lt;/p&gt;
&lt;p&gt;int main(void)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;size_t readbytes;&lt;/p&gt;
&lt;p&gt;long content_length = 0;&lt;/p&gt;
&lt;p&gt;content_length = atol(getenv(&amp;quot;CONTENT_LENGTH&amp;quot;));&lt;/p&gt;
&lt;p&gt;char * tmp = NULL;&lt;/p&gt;
&lt;p&gt;tmp = (char*)malloc(1);&lt;/p&gt;
&lt;p&gt;tmp[0]=&amp;#39;\0&amp;#39;;&lt;/p&gt;
&lt;p&gt;tmp = (char*)realloc(tmp,content_length + 1);&lt;/p&gt;
&lt;p&gt;readbytes = fread(tmp,1,content_length,stdin);&lt;/p&gt;
&lt;p&gt;readbytes[content_length]=&amp;#39;\0&amp;#39;;&lt;/p&gt;
&lt;p&gt;return 0;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Does anyone have an idea, that it will not work with a stream including CR LF on IIS?`&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>fakefcgi test environment and streams</title><link>http://forums.iis.net/p/1146965/1859228.aspx#1859228</link><pubDate>Wed, 14 Nov 2007 19:49:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859228</guid><dc:creator>pwab</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I tested my fcgi client implementation with the fakefcgi.exe program from Rick Jame&amp;#39;s website. At first I made the assumption that the FCGI_PARAMS stream will contain a terminating null-stream (as per the fastcgi spec), but the fakefcgi.exe program does not send that terminator. Even so, the other fastcgi clients (php, perl etc) work correctly without this terminator.&lt;/p&gt;&lt;p&gt;What is the logic here? Is the fakefcgi program wrong? Or should I assume that once the STDIN records start arriving, no more PARAMS will arrive for that requestId? Or is there some other logic here that I am missing?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Pieter&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Custom FastCGI client - TCP Protocol</title><link>http://forums.iis.net/p/1146857/1858802.aspx#1858802</link><pubDate>Tue, 06 Nov 2007 07:41:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1858802</guid><dc:creator>pwab</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I see that you can specify the FastCGI application to use the TCP communication protocol (instead of named pipes) but how do you set this comms up? I am thinking that the FCGI application must be &amp;quot;listening&amp;quot; on a certain port. How do you inform the FastCGI server which port to send this comms to?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Regards,&lt;/p&gt;&lt;p&gt;Pieter Breed&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>