<?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>IIS 7 - FastCGI Module</title><link>http://forums.iis.net/1104.aspx</link><description>Questions related to the FastCGI module for IIS7</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1926975.aspx</link><pubDate>Thu, 03 Dec 2009 10:56:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1926975</guid><dc:creator>_CallMeLaNN_</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1926975.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1926975</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you tell me the specific account name? Which one.&lt;br /&gt;
I know IIS in WinXp and Win2003 using different account that is ASPNET
and NETWORKSERVICE but for IIS7 Win2008 what is the account you mean to
solve the realpath() for php?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1891306.aspx</link><pubDate>Wed, 28 Jan 2009 13:00:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1891306</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1891306.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1891306</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I explained it a bit further on my blog - &lt;a href="http://david.steadson.com/2008/12/17/migrating-to-a-new-iis7-install-from-iis6/"&gt;Migrating to a new IIS7 install from IIS6.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Basically just make sure the folder above your website is readable by IIS7 &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1891299.aspx</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><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1891299.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1891299</wfw:commentRss><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>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1887764.aspx</link><pubDate>Wed, 17 Dec 2008 12:33:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887764</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887764.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887764</wfw:commentRss><description>&lt;p&gt;After much gnashing of teeth the solution has been found. &lt;/p&gt;&lt;p&gt;The problem described does not occur if the account the website is running under has Read permission for the parent folder. If you have your sites setup under inetpub then this is already in place.&lt;/p&gt;&lt;p&gt;I&amp;#39;m using DotNetPanel and it uses a different folder structure which does not have this permission, however it can easily be added through the DNP file manager, or of course it can be done via console.&lt;br /&gt;&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/thread/1887716.aspx</link><pubDate>Wed, 17 Dec 2008 01:56:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887716</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887716.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887716</wfw:commentRss><description>&lt;p&gt;An additional note, I&amp;#39;ve confirmed this is not just a fast-cgi problem, it&amp;#39;s also occurring with php5isapi.dll on IIS7.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;this was NOT a problem on my IIS6 setup. Either there&amp;#39;s something odd about my setup or IIS7 is not compatible with running common PHP apps from website root folder.&lt;/p&gt;&lt;p&gt;Please somebody tell me this is not so! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1887713.aspx</link><pubDate>Wed, 17 Dec 2008 01:35:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887713</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887713.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887713</wfw:commentRss><description>&lt;p&gt;Moving the sites off of wwwroot to a sub directory seems to solve the problem, but quite obviously this is not an ideal solution.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1887710.aspx</link><pubDate>Wed, 17 Dec 2008 01:02:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887710</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887710.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887710</wfw:commentRss><description>&lt;p&gt;A simple write to a session variable worked fine, so not a permissions problem.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;?php&lt;br /&gt;$_SESSION[&amp;#39;myvar&amp;#39;] = 5;&lt;br /&gt;echo $_SESSION[&amp;#39;myvar&amp;#39;];&lt;br /&gt;?&amp;gt;&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1887709.aspx</link><pubDate>Wed, 17 Dec 2008 00:54:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887709</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887709.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887709</wfw:commentRss><description>&lt;p&gt;Thanks for the link, it seems to be the same problem, but I&amp;#39;m not 100% convinced of the reply. As noted above there&amp;#39;s an entire page on setting up MediaWiki on IIS7 with fast-cgi, so it apparently is working fine for some!&lt;/p&gt;&lt;p&gt;I also tried wordpress on another site and got the same problem, and I think both wordpress and mediawiki failing on IIS7 would be rather notable! There was though a further hint there&amp;#39;s something else going on. A Joomla site on the server is working fine - but after I loaded it up, the test files with realpath() on other sites on the server reported the path to the Joomla site.&lt;/p&gt;&lt;p&gt;So it appears there&amp;#39;s something screwing up with session variables. Checking the c:\php\session folder the files are being created, but are all zero length. I&amp;#39;m no php programmer, but that doesn&amp;#39;t seem right?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;re ISAPI, it&amp;#39;s a brand new VPS so I swapped PHP handlers to see what happens.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1887707.aspx</link><pubDate>Wed, 17 Dec 2008 00:28:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887707</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887707.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887707</wfw:commentRss><description>&lt;p&gt;Look at &lt;a class="" href="http://forums.iis.net/p/1153647/1887067.aspx" target="_blank"&gt;this thread&lt;/a&gt; regarding current working directory for php under fastcgi vs cgi - the ISAPI example you gave seems wierd, how can that work if you have 2 websites hosted in the same worker process and both receive requests at the same time?&lt;/p&gt;</description></item><item><title>Re: PHP realpath() problem</title><link>http://forums.iis.net/thread/1887704.aspx</link><pubDate>Tue, 16 Dec 2008 22:52:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887704</guid><dc:creator>david.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887704.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887704</wfw:commentRss><description>&lt;p&gt;Just to add, I tried running the script from command line PHP on w2k8 and it responds correctly, so it&amp;#39;s some issue within the IIS7 context.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>PHP realpath() problem</title><link>http://forums.iis.net/thread/1887702.aspx</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><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887702.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887702</wfw:commentRss><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>