<?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 'fascgi'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=fascgi&amp;orTags=0</link><description>Search results matching tag 'fascgi'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS 7 Windows Server 2008 R2 Ruby On Rails</title><link>http://forums.iis.net/p/1160523/1915356.aspx#1915356</link><pubDate>Tue, 01 Sep 2009 06:42:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915356</guid><dc:creator>vecchia</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>Hi all,&lt;br /&gt;
i&amp;#39;m sorry for my bad english but i don&amp;#39;t speak it very well. I&amp;#39;m using Windows Server 2008 R2 in trial version and i&amp;#39;m configuring IIS 7 + FastCGI + Ruby On Rails but i&amp;#39;m having issues. I tried to search on google and here but all links go on a old site with a removed guide. I&amp;#39;ve installed ruby and it works with webrick but i need to use IIS. So i put into
&lt;p&gt;C:\inetpub\wwwroot\ruby-app&lt;/p&gt;
&lt;p&gt;my ruby application and i added the fastcgi module to the website:&lt;/p&gt;
&lt;p&gt;iis manager -&amp;gt; site -&amp;gt; handler mappings -&amp;gt; add module mapping&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Request path:&lt;/b&gt; *&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Module:&lt;/b&gt; FastCgiModule&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Executable:&lt;/b&gt; C:\Ruby\bin\ruby.exe|C:\inetpub\wwwroot\ruby-app\public\dispatch.fcgi production&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;all it&amp;#39;s ok, i can run the site but when i try to run the ruby application i retrieve this 500 error:&lt;/p&gt;
&lt;div class="content-container"&gt;&lt;h2&gt;HTTP Error 500.0 - Internal Server Error&lt;/h2&gt;
&lt;h3&gt;c:\ruby\bin\ruby.exe - The FastCGI process exited 
unexpectedly&lt;/h3&gt; &lt;/div&gt;
&lt;div class="content-container"&gt;
Detailed Error Information
&lt;div id="details-left"&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Module&lt;/th&gt;
&lt;td&gt;FastCgiModule&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;th&gt;Notification&lt;/th&gt;
&lt;td&gt;ExecuteRequestHandler&lt;/td&gt;
&lt;/tr&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Handler&lt;/th&gt;
&lt;td&gt;RubyOnRails&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;th&gt;Error Code&lt;/th&gt;
&lt;td&gt;0x00000001&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div id="details-right"&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Requested URL&lt;/th&gt;
&lt;td&gt;http://localhost:80/ruby-app&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;th&gt;Physical Path&lt;/th&gt;
&lt;td&gt;C:\inetpub\wwwroot\ruby-app&lt;/td&gt;
&lt;/tr&gt;

&lt;tr class="alt"&gt;
&lt;th&gt;Logon Method&lt;/th&gt;
&lt;td&gt;Anonymous&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;th&gt;Logon User&lt;/th&gt;
&lt;td&gt;Anonymous&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;please help me&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>Re: FastCGI does not pass PHP error to syslog (windows event log)</title><link>http://forums.iis.net/p/1159662/1913629.aspx#1913629</link><pubDate>Fri, 14 Aug 2009 17:34:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913629</guid><dc:creator>mspoerleintu</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Solved:&lt;/p&gt;&lt;p&gt;grant write access on (application) event log (&lt;a href="http://www.ravenreport.com/blog/post/Remote-Event-Viewer-Access-Windows-2003--2008.aspx" class="external free" title="http://www.ravenreport.com/blog/post/Remote-Event-Viewer-Access-Windows-2003--2008.aspx" rel="nofollow"&gt;http://www.ravenreport.com/blog/post/Remote-Event-Viewer-Access-Windows-2003--2008.aspx&lt;/a&gt;) 

&lt;/p&gt;&lt;p&gt;Here is our scenario: &lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;get windows Security IDentifier (SID) for all 3 accounts (!)&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;IUSR&lt;/b&gt; (S-1-5-17) 
&lt;/li&gt;&lt;li&gt;&lt;b&gt;iis_iusrs&lt;/b&gt; (S-1-5-32-568) 
&lt;/li&gt;&lt;li&gt;&lt;b&gt;network services&lt;/b&gt; (S-1-5-20) [application pool user] 
&lt;/li&gt;&lt;li&gt;&lt;a href="http://support.microsoft.com/kb/243330" class="external free" title="http://support.microsoft.com/kb/243330" rel="nofollow"&gt;http://support.microsoft.com/kb/243330&lt;/a&gt; (well known SIDs) 
&lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc980032%28PROT.10%29.aspx" class="external free" title="http://msdn.microsoft.com/en-us/library/cc980032(PROT.10).aspx" rel="nofollow"&gt;http://msdn.microsoft.com/en-us/library/cc980032(PROT.10).aspx&lt;/a&gt; 
&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Security_Identifier" class="external free" title="http://en.wikipedia.org/wiki/Security_Identifier" rel="nofollow"&gt;http://en.wikipedia.org/wiki/Security_Identifier&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;
&lt;/li&gt;&lt;li&gt;extract current permissions on command line using: &lt;b&gt;wevtutil gl application 
&amp;gt;temp.txt&lt;/b&gt; 
&lt;/li&gt;&lt;li&gt;edit line &amp;quot;channelAccess&amp;quot;, e.g: &lt;b&gt;channelAccess: O:BAG:&lt;/b&gt;&lt;i&gt;[...]&lt;/i&gt; 
&lt;ul&gt;&lt;li&gt;Remove any brackets staring with &lt;b&gt;(D;;&lt;/b&gt; and containing any of your SIDs 

&lt;/li&gt;&lt;li&gt;add each of your SIDs in brackets &lt;b&gt;(A;;0x3;;;&lt;/b&gt;&lt;i&gt;&amp;lt;SID&amp;gt;&lt;/i&gt;&lt;b&gt;)&lt;/b&gt; (0x1 = read; 
0x2 = write; 0x4=delete) to channelAccess line 
&lt;/li&gt;&lt;li&gt;in our case: 
&lt;b&gt;(A;;0x3;;;S-1-5-17)&lt;/b&gt;&lt;b&gt;(A;;0x3;;;S-1-5-32-568)&lt;/b&gt;&lt;b&gt;(A;;0x3;;;S-1-5-20)&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/li&gt;&lt;li&gt;grant permission by pasting your edited channelAccesson command line: 
&lt;b&gt;wevtutil sl application /ca:O:BAG:&lt;/b&gt;&lt;i&gt;[...]&lt;/i&gt; &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;You may imagine the odysee i&amp;#39;ve been through :)&lt;br /&gt;Let me know if it is working, our which settings you had to modify..&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: FastCGI does not pass PHP error to syslog (windows event log)</title><link>http://forums.iis.net/p/1159662/1913338.aspx#1913338</link><pubDate>Wed, 12 Aug 2009 16:41:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913338</guid><dc:creator>mspoerleintu</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi j3rky,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I found some more hints:&lt;/p&gt;&lt;p&gt;1. If you have severe errors in your php.ini, it gets logged in the event log, e.g.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;i&gt;PHP Warning:&amp;nbsp; PHP Startup: Unable to load dynamic library &amp;#39;[..]\ext\php_mbstring.dll&amp;#39; - The specified procedure could not be found.&lt;/i&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;2. I found some helpings on IIS6 and PHP5 with fastcgi add-on:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Copy the &lt;b&gt;PHP 5 binaries&lt;/b&gt; to &lt;b&gt;&amp;quot;C:\php&amp;quot;&lt;/b&gt;. 
&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;My Computer&lt;/b&gt; and select &lt;b&gt;Properties&lt;/b&gt; to bring up the Computer Properties dialog. Switch to the &lt;b&gt;Advanced&lt;/b&gt; tab and click &lt;b&gt;Environment Variables&lt;/b&gt;. Find the system environment variable &lt;b&gt;PATH&lt;/b&gt;, edit it and add &lt;b&gt;&amp;quot;;C:\php&amp;quot;&lt;/b&gt; (without the quotes) to the end. 
&lt;/li&gt;&lt;li&gt;Make sure that the &lt;b&gt;configuration file &amp;quot;php.ini&amp;quot;&lt;/b&gt; resides in the directory &lt;b&gt;&amp;quot;C:\php&amp;quot;&lt;/b&gt; and contains the correct path settings. 
&lt;/li&gt;&lt;li&gt;DELETE any old &amp;quot;php.ini&amp;quot; files from &lt;b&gt;&amp;quot;C:\WINDOWS&amp;quot;&lt;/b&gt; and other directories. 
&lt;/li&gt;&lt;li&gt;Open REGEDIT, navigate to the key &lt;b&gt;&amp;quot;HKEY_LOCAL_MACHINE\SOFTWARE\PHP&amp;quot;&lt;/b&gt; and DELETE the string value &lt;b&gt;&amp;quot;IniFilePath&amp;quot;&lt;/b&gt; from there. It is outdated and no longer necessary! 
&lt;/li&gt;&lt;li&gt;Modify NTFS security permissions of the directory &lt;b&gt;&amp;quot;C:\php&amp;quot;&lt;/b&gt; to give &lt;b&gt;Read and Execute&lt;/b&gt; permissions to (1) the IIS Guest Account and (2) the group IIS_WPG. 
&lt;/li&gt;&lt;li&gt;Modify NTFS security permissions of the directories &lt;b&gt;&amp;quot;C:\php\session&amp;quot;&lt;/b&gt; and &lt;b&gt;&amp;quot;C:\php\upload&amp;quot;&lt;/b&gt; to give additional &lt;b&gt;Modify&lt;/b&gt; permissions to (1) the IIS Guest Account and (2) the group IIS_WPG.&lt;/li&gt;&lt;li&gt;Navigate to the registry key &lt;b&gt;&amp;quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application&amp;quot;&lt;/b&gt; and edit the value &lt;b&gt;&amp;quot;CustomSD&amp;quot;&lt;/b&gt; there. Find the substring &lt;b&gt;&amp;quot;(D;;0xf0007;;;BG)&amp;quot;&lt;/b&gt; which &lt;b&gt;D&lt;/b&gt;enies access to the application event log for &lt;b&gt;B&lt;/b&gt;uiltin &lt;b&gt;G&lt;/b&gt;uest accounts (like the IIS Web User account) and replace this substring with &lt;b&gt;&amp;quot;(A;;0x3;;;BG)&amp;quot;&lt;/b&gt;
which allows read and write access. Please pay attention to leave the
rest of the security string intact. Damaging this value can have
dangerous effects! &lt;/li&gt;&lt;li&gt;Create or update the registry key &lt;b&gt;&amp;quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\PHP-5.2.0&amp;quot;&lt;/b&gt; (adapt the last to your version part if necessary) with the following values: 
&lt;ul&gt;&lt;li&gt;&amp;quot;EventMessageFile&amp;quot; (REG_EXPAND_SZ) = &amp;quot;C:\php\php5ts.dll&amp;quot; 
&lt;/li&gt;&lt;li&gt;&amp;quot;TypesSupported&amp;quot; (REG_DWORD) = 7 
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;That didn&amp;#39;t work out as well. I assume this isn&amp;#39;t support by W2K8 any longer?! Any help?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Cheers&lt;/p&gt;</description></item><item><title>Re: How to detect fastcgi is running on IIS7?</title><link>http://forums.iis.net/p/1156701/1899923.aspx#1899923</link><pubDate>Wed, 08 Apr 2009 18:38:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1899923</guid><dc:creator>pierrejoye</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;You can use the php_sapi_name function. For example:&lt;/p&gt;&lt;p&gt;&amp;lt;?php echo &amp;quot;PHP running using the &amp;quot; . php_sapi_name() . &amp;quot; SAPI&amp;quot;; ?&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;will output:&lt;/p&gt;&lt;p&gt;PHP running using the cgi-fcgi SAPI&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/p/1153823/1891299.aspx#1891299</link><pubDate>Wed, 28 Jan 2009 12:10:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1891299</guid><dc:creator>huotg01</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>&lt;p&gt;Good job isolating the problem.&lt;/p&gt;
&lt;p&gt;For a &amp;quot;morron user&amp;quot;, could you summarize what should be done.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Gaston&lt;/p&gt;</description></item><item><title>PHP realpath() problem</title><link>http://forums.iis.net/p/1153823/1887702.aspx#1887702</link><pubDate>Tue, 16 Dec 2008 22:48:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887702</guid><dc:creator>david.s</dc:creator><cs:applicationKey>fastcgi_module-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve been trying to migrate a MediaWiki installation to a w2k8 IIS7 server and been encountering headaches. I&amp;#39;ve eventually tracked it to an issue with the PHP function &lt;a href="http://se.php.net/realpath" target="_blank"&gt;realpath()&lt;/a&gt;. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The following PHP code demonstrates the problem -&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;echo realpath( &amp;#39;.&amp;#39; );&lt;br /&gt;?&amp;gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;On IIS6 using php5isapi.dll this reports the correct path, eg -&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;c:\inetpub\wwwroot &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;On IIS7 with FastCgi using c:\php\php-cgi.exe this reports -&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;c:\PHP &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;On IIS7 with php5isapi.dll this reports -&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;C:\Windows\System32\inetsrv&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Clearly the IIS7 responses are not what is wanted! Both servers are using PHP 5.6.8 and all MS updates. I&amp;#39;ve been unable to find any differences in php.ini settings that might make a difference, and no idea where to look in IIS7.&lt;/p&gt;&lt;p&gt;Any help greatly appreciated! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>