<?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 'php-cgi fast-cgi'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=php-cgi+fast-cgi&amp;orTags=0</link><description>Search results matching tag 'php-cgi fast-cgi'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>The wait operation timed out</title><link>http://forums.iis.net/p/1160967/1917238.aspx#1917238</link><pubDate>Wed, 16 Sep 2009 20:52:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917238</guid><dc:creator>LucasVanzin</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m facing an intermitent problem on a production server. Sometimes fastcgi stops working.&lt;/p&gt;&lt;p&gt;After I use iisreset, everything seems to work fine. I think it happends only on pools that don&amp;#39;t have many PHP sites, so the php-cgi.exe reaches the idle timeout, and when a php site is accesses again, the problem happends.&lt;/p&gt;&lt;p&gt;Error page:&lt;/p&gt;&lt;h1&gt;FastCGI Error&lt;/h1&gt; 
The FastCGI Handler was unable to process the request. 
&lt;hr /&gt; 
&lt;p&gt;Error Details:&lt;/p&gt; 
&lt;ul&gt;&lt;li&gt;The FastCGI process exceeded configured activity timeout&lt;/li&gt;&lt;li&gt;Error Number: 258 (0x80070102).&lt;/li&gt;&lt;li&gt;Error Description: The wait operation timed out.
&lt;/li&gt;&lt;/ul&gt; 
&lt;h2&gt;HTTP Error 500 - Server Error.&lt;br /&gt;Internet Information Services (IIS)&lt;/h2&gt;&lt;p&gt;fcgiext.ini: &lt;/p&gt;&lt;p&gt;[Types]&lt;br /&gt;fphp=PHP&lt;br /&gt;php=PHP&lt;br /&gt;&lt;br /&gt;[PHP]&lt;br /&gt;ExePath=c:\php\php-cgi.exe&lt;br /&gt;InstanceMaxRequests=200&lt;br /&gt;EnvironmentVars=PHP_FCGI_MAX_REQUESTS:200,PHPRC:C:\PHP\&lt;br /&gt;MaxInstances=0&lt;br /&gt;FlushNamedPipe=1&lt;br /&gt;UnhealthyOnQueueFull=1 &lt;/p&gt;&lt;p&gt;I can reproduce this error by killing the php-cgi.exe process of an specific apppool and accessing a php website of this pool, or access a php site an apppool that haven&amp;#39;t any php-cgi.exe processes.&lt;/p&gt;&lt;p&gt;Using sysinternals processxp, I can see the process being spawned, and finished after displaying that error page, when the php page is accessed.&lt;/p&gt;&lt;p&gt;I use:&lt;/p&gt;&lt;p&gt;Windows 2003 SP2 32bits&lt;br /&gt;IIS6.0&lt;br /&gt;fcgiext 1.5&lt;br /&gt;PHP 5.2.5&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hope anyone can help me. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>FastCGI, php &amp;amp; IIS on WinXP - file not found Virtual Directories issue</title><link>http://forums.iis.net/p/1159672/1912041.aspx#1912041</link><pubDate>Thu, 30 Jul 2009 13:53:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1912041</guid><dc:creator>IT_Scooter</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I have a number of sites (virtual directories) set up in IIS5 on Win XP Pro (with SP3). Until I installed FastCGI, they all worked fine - no problems. Now, as long as I don&amp;#39;t request a .php page, they work fine, if I request a .php page, I get a HTTP 404 - file not found error.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;After trying Process Monitor, I discovered that the .php pages start in the correct directory as specified in IIS, but end up in the default directory (C:/inetpub/wwwroot/&amp;lt;sitename&amp;gt;).&lt;/p&gt;&lt;p&gt;&amp;nbsp;What needs to happen to make FastCGI behave? (If I move my site to a folder in the default directory, it all works fine, but that&amp;#39;s not what I want to do &lt;/p&gt;&lt;p&gt;Any ideas?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>FastCGI process exited unexpectedly</title><link>http://forums.iis.net/p/1150858/1875740.aspx#1875740</link><pubDate>Sat, 02 Aug 2008 10:54:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1875740</guid><dc:creator>Marcbourgeois4</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Hi I&amp;#39;m a neophyte so please pardon what may seem like&amp;nbsp;basic stuff.&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I am having a problem with FastCGI stopping for what seem like no real reason.&amp;nbsp; It works for a while and then following a configuration change PHP.ini it stops. I get&amp;nbsp;an HTTP error 500.0 error.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;If I run a PHP - info from command prompt it seems to be running but I try the same thing in a script I get the error.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;IIS unable to access web.config.&amp;nbsp; Solution proposed is to verify the NTFS permission for web.config. &lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;What now?&amp;nbsp; Any help would be appreciated.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>iis 6 + php 5.2.6 + fast cgi rtm</title><link>http://forums.iis.net/p/1150306/1873512.aspx#1873512</link><pubDate>Wed, 09 Jul 2008 01:37:27 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873512</guid><dc:creator>Megamuch</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;HiGuys,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been struggling with this for over 2 days now and I&amp;#39;ve spent more that 9 hours today on trying to find this bug.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Here is the deal:&lt;/p&gt;&lt;p&gt;I get a 500 error (unspecified) at complete random times. I&amp;#39;ve hit the server so hard with requests (using apache bench btw), I&amp;#39;ve done over 100.000 requests to the website, and everything runs just fine. (Although the load is going sky high on this dual xeon 3ghz machine).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Then when I think I finally got everything stable as it should, I get the stupid 500 error again.&lt;/p&gt;&lt;p&gt;The data is:&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;FastCGI Error&lt;br /&gt;The FastCGI Handler was unable to process the request.&lt;/p&gt;
&lt;p&gt;Error Details:&lt;/p&gt;
&lt;p&gt;* The FastCGI process has failed frequently recently. Try the request again in a while&lt;br /&gt;* Error Number: -2147467259 (0x80004005).&lt;br /&gt;* Error Description: Unspecified error&lt;/p&gt;
&lt;p&gt;HTTP Error 500 - Server Error.&lt;br /&gt;Internet Information Services (IIS)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;All requests go to 1 scripts which then issues a fopen http post to another (can be different scripts depending on the query params given to the first script) script using cURL.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The contents of my ini file:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[Types]&lt;br /&gt;php=PHP&lt;br /&gt;&lt;br /&gt;[PHP]&lt;br /&gt;ExePath=c:\php\php-cgi.exe&lt;br /&gt;MaxInstances=10000&lt;br /&gt;InstanceMaxRequests=200&lt;br /&gt;EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000&lt;br /&gt;IdleTimeout=200&lt;br /&gt;ActivityTimeout=300&lt;br /&gt;RequestTimeout=300&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve have InstanceMaxRequests up to 10000 too, butno avail.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is driving me crazy since I can&amp;#39;t reproduce the error. &lt;/p&gt;&lt;p&gt;I can provide you with more info, just tell me what you need to know, so we can fix this error / misconfiguration.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Server config:&lt;/p&gt;&lt;p&gt;dual xeon 3ghz with HT&lt;/p&gt;&lt;p&gt;2gb ram&amp;nbsp;&lt;/p&gt;&lt;p&gt;iis 6.0 running on win2k3 web&lt;/p&gt;&lt;p&gt;php 5.2.6 non thread safe fast cgi module&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>FAST CGI + header not sended</title><link>http://forums.iis.net/p/1150034/1872383.aspx#1872383</link><pubDate>Mon, 23 Jun 2008 09:34:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1872383</guid><dc:creator>fred_klee</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I just went from CGI to FASTCGI with the new fastCGI handler and get some errors with some header :&lt;/p&gt;&lt;p&gt;I use this header &amp;quot;X-JSON&amp;quot; for web 2.0 issues with prototype,&lt;/p&gt;&lt;p&gt;example :&lt;/p&gt;&lt;p&gt;&lt;b&gt;header(&amp;#39;X-JSON : &lt;i&gt;A_JSON_STRING&lt;/i&gt; &amp;#39; ); &lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;And this header disappears with PHP in fastCGI mode ?&lt;/p&gt;&lt;p&gt;There is another problem with all my &lt;/p&gt;&lt;p&gt;&lt;b&gt;header(&amp;quot;Location : &lt;i&gt;A_WELL_FORMATTED_URL&lt;/i&gt;&amp;quot;)&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Which are located in code, but no text is displayed before it. And with normal CGI it is fonctional and with ISAPI too.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Should I have to add something in FasCGI configuration or is there a BUG with fast cgi and Headers ?&lt;/p&gt;&lt;p&gt;I think that thereis a big problem with php headers with FastCGI module !? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance because whis this problem, I have to rewrite so much code !&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>When i continuously refresh IE window then the php-cgi.exe process will increase too many</title><link>http://forums.iis.net/p/1149628/1870648.aspx#1870648</link><pubDate>Sat, 31 May 2008 15:15:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1870648</guid><dc:creator>iisfans</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hi, &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Currently i have setupped fast-cgi in my IIS 6.0, it works fine:).&lt;/p&gt;&lt;p&gt;But i found a problem, if i continuously refresh the IE window then the php-cgi.exe process will increase too many till 20( This is my MaxInstances setting number in fcgiext.ini ) processes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I thought if user continuously refresh IE window and the IIS just need one php-cgi.exe to process HTTP request the other request we need to ignore them. Maybe some bad guys can use this for ddos attack.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;How can i configure fast-cgi or IIS to ignore continuously HTTP request, we just need to one php-cgi.exe process this situation?&lt;/p&gt;&lt;p&gt;The following is my fcgiext.ini setting. &lt;/p&gt;&lt;p&gt;ExePath=E:\php\php-5.2.5-nts-Win32\php-cgi.exe&lt;br /&gt;Arguments=test&lt;br /&gt;QueueLength=999&lt;br /&gt;MaxInstances=20&lt;br /&gt;IdleTimeout=100&lt;br /&gt;ActivityTimeout=100&lt;br /&gt;RequestTimeout=100&lt;br /&gt;InstanceMaxRequests=10000&lt;br /&gt;EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000 &lt;/p&gt;&lt;p&gt;Can you give advice?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Jack. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>