PHP Communityhttp://forums.iis.net/1102.aspx/1?PHP+CommunityA forum for the PHP community running on IISMon, 06 May 2013 17:28:37 -0400urn:uuid:00000000-0000-0000-0000-000000001102urn:uuid:00000000-0000-0000-0000-000002050744http://forums.iis.net/p/1198658/2050744.aspx/1?PHP+browscap+on+IIS7+works+on+a+Windows+7+Enterprise+OS+but+not+on+Windows+Server+2008+R2+OSPHP browscap on IIS7 works on a Windows 7 Enterprise OS but not on Windows Server 2008 R2 OS <p>This problem has got me perplexed. Any help greatly appreciated!</p> <hr> <p>The problem: running the following code (simple enough)</p> <pre class="prettyprint">&lt;?php header('Content-type: text/plain'); echo 'Browser Info: '.$_SERVER['HTTP_USER_AGENT'].PHP_EOL. var_export(get_browser(null, true), true); ?&gt;</pre> <p>get the following error:</p> <pre class="prettyprint">PHP Warning: get_browser(): browscap ini directive not set in C:\inetpub\wwwroot\dotTest\test.php on line 4</pre> <hr /> <p>Here's what I've done</p> <p>I'm using the full_php_browscap.ini downloaded from the official site: <a href="http://tempdownloads.browserscap.com/">http://tempdownloads.browserscap.com/</a></p> <p>Here's the snippet from my php.ini file</p> <pre class="prettyprint">[browscap] ; http://php.net/browscap browscap = "C:\inetpub\wwwroot\full_php_browscap.ini"</pre> <p>And I learned I had to use the phpmanager tool to change the setting in IIS to pay attention to changes in php.ini. I had to install it from <a href="http://phpmanager.codeplex.com/releases/view/69115">http://phpmanager.codeplex.com/releases/view/69115</a> on the windows server but not the windows 7 machine interestingly enough.</p> <p>and from phpinfo() Core section (can't copy the tabular format but here's the info):</p> <pre class="prettyprint">Directive: browscap Local Value: C:\inetpub\wwwroot\full_php_browscap.ini Master Value: C:\inetpub\wwwroot\full_php_browscap.ini</pre> <p>so we can see it's loading the correct ini file (same file for both machines, one works one doesn't)</p> <p>I tried checking with procmon: <a href="http://technet.microsoft.com/en-us/sysinternals/bb896645">http://technet.microsoft.com/en-us/sysinternals/bb896645</a> and sure enough the browscap file has read process logs when the server is restarted.</p> <p>I use the following batch script run as an administrator to make sure that permissions are in order on the server</p> <pre class="prettyprint">ICACLS C:\inetpub /grant "IIS AppPool\DefaultAppPool":(OI)(CI)F ICACLS C:\inetpub /grant "IUSR":(OI)(CI)F ICACLS C:\Windows\Temp /grant "IIS AppPool\DefaultAppPool":(OI)(CI)F ICACLS C:\Windows\Temp /grant "IUSR":(OI)(CI)F</pre> <p>(why the temp folder? that's where files get uploaded to from a web upload and for the php_move_uploaded_file method to work permissions need to exist there)</p> <p>As a sanity check I copy pasted the path C:\inetpub\wwwroot\full_php_browscap.ini from the ini file, and from phpinfo() [they are indeed, in fact, the same path, caps and all not that that caps matter on a whindows machine] into notepad's open file dialog. The file does indeed, in fact open.</p> <p>I should also mention on the windows server machine this error was constant whether or not browscap was set properly and "(none)" was shown on php.ini while on the windows 7 machine the var_dump simply showed the text 'false'. Now the windows 7 machine shows</p> <pre class="prettyprint">Browser Info: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 array ( 'browser_name_regex' =&gt; '&sect;^mozilla/5\\.0 \\(.*windows nt 6\\.1.*wow64.*\\).*gecko/.*firefox/20\\..*&#36;&sect;', 'browser_name_pattern' =&gt; 'Mozilla/5.0 (*Windows NT 6.1*WOW64*)*Gecko/*Firefox/20.*', 'parent' =&gt; 'Firefox 20.0', 'platform' =&gt; 'Win7', 'platform_version' =&gt; '6.1', 'platform_description' =&gt; 'Windows 7', 'win32' =&gt; '', 'win64' =&gt; '1', 'comment' =&gt; 'Firefox 20.0', 'browser' =&gt; 'Firefox', 'version' =&gt; '20.0', 'majorver' =&gt; '20', 'minorver' =&gt; '0', 'beta' =&gt; '1', 'frames' =&gt; '1', 'iframes' =&gt; '1', 'tables' =&gt; '1', 'cookies' =&gt; '1', 'javascript' =&gt; '1', 'javaapplets' =&gt; '1', 'cssversion' =&gt; '3', 'device_name' =&gt; 'PC', 'device_maker' =&gt; 'Various', 'renderingengine_name' =&gt; 'Gecko', 'renderingengine_version' =&gt; '20.0', 'renderingengine_description' =&gt; 'For Firefox, Camino, K-Meleon, SeaMonkey, Netscape, and other Gecko-based browsers.', 'alpha' =&gt; '', 'win16' =&gt; '', 'backgroundsounds' =&gt; '', 'vbscript' =&gt; '', 'activexcontrols' =&gt; '', 'ismobiledevice' =&gt; '', 'issyndicationreader' =&gt; '', 'crawler' =&gt; '', 'aolversion' =&gt; '0', )</pre> <p>while the windows server machine still shows the error. Any ideas why it wouldn't load? Are there other things I can check? Is this a bug in IIS that only affects WS 2008 R2? I've run out of things I know to check for, all evidence suggests it's not an immediate problem with php. Any feedback appreciated.</p> <hr> <p>Thanks in advance.</p> 2013-05-17T00:13:14-04:002013-05-17T00:13:14.29-04:00urn:uuid:00000000-0000-0000-0000-000001911605http://forums.iis.net/p/1159556/1911605.aspx/1?Fix+for+PHP+5+3+IIS+7+500+Internal+Server+Error+The+FastCGI+process+exited+unexpectedlyFix for PHP 5.3 IIS 7 500 Internal Server Error The FastCGI process exited unexpectedly <p>This post is to help anyone who is having 500 Internal Server Errors with their install of PHP 5.3 on IIS 7 in the Windows 2008 Server environment. I just spent a few hours troubleshooting this and I hope I can help save more hours of the same for others. I looked this up and found a lot of false leads then I came up with a solution which fixes this for me on my server, so I'll list it all here and hopefully people can add to it if I miss anything. Also if my fix falls apart after a while I can post it back here and see if we can all go back and review the steps and at least have a list of what works and what doesn't work.<br> </p> <p>So this is how it started for me: I just installed PHP 5.3 on my production server Windows 2008 32-bit, I got the download msi installer from http://windows.php.net/download/ the VC9 Non-Thread safe version.</p> <p>I set everything up with the php.ini fine and it worked fine. But after about an hour using WordPress 2.8.2 I kept getting 500 Internal Server Errors and the detailed description from the server Browser says:</p> <p>The FastCGI process exited unexpectedly</p> <p>Module FastCgiModule <br> Notification ExecuteRequestHandler <br> Handler PHP_via_FastCGI <br> Error Code 0xc0000005 </p> <p>I tried all the usual fixes, I set the error_reporting = E_ALL &amp; ~E_DEPRECATED</p> <p>I also set the date.timezone =&quot;America/Los_Angeles&quot; - don't know if the quotes matter </p> <p>I also read that setting Write permission for the Anonymous Identity on the wp-content folder fixed this issue but I did that and it does not fix the issue. </p> <p>Ironically I was doing all of this while creating a write up to <a href="http://www.business-web-host.biz/34/web-host-php-iis-7-windows-2008" title="PHP 5.3 IIS Web Hosting Enhancement"> install PHP 5.3 on the IIS 7 Windows 2008 Server Platform</a> so I was testing it out on my server as I wrote it.<br> </p> <p>I followed my instructions and it worked fine but then about every three clicks I got the 500 Internal Server Error. </p> <p>The odd thing is that if I click the refresh button the page pops up fine without any error, then I can go on for about three or so clicks and I'll get the 500 Internal Error again. Same thing on the Server with the detailed error page, if I click refresh then it's fine for a few more clicks then it happens again.</p> <p>Then finally I removed the open_basedir = directive for each of my custom PHP web site paths and it worked fine with no more 500 Internal Server Error, and that is what I can report is the fix.</p> <p>My next guess would have been giving more Memory than the 16 MB allotted via the &quot;more secure&quot; php settings.</p> <p>There was some fussing around with the Server Handler Mapping and having quotes on it for the Program Files section of the file path to the php-cgi.exe and I set the FastCGI Module to check for the php being a &quot;File or Folder&quot; in the FastCGI settings so I don't know if this helps but just to be complete with my steps I'm including it.</p> <p>Getting rid of the open_basedir did it for me though, so I hope that helps. If people have issues and want to list what they did or are doing to fix it and if any of what is listed here helps please post a reply and I'll try to keep up with it as much as I can.</p> <p>Oh and my last point, I was going to stop troubleshooting this, I have a lot of work to do and I was well beyond the &quot;screw it&quot; point, but being a programmer you know that you just can't walk away when the little bugger machines start acting up. </p> <p>I was about to uninstall PHP 5.3 and go back to what worked - PHP 5.2.9 - but I'm glad I stuck it through, the speed and enhancements from PHP 5.3 are noticeable. If you are frustrated with this, just stick through with this guide and see if we can get others to add to it and have a comprehensive list of issues and fixes for it, PHP 5.3 is really nice and well worth it. After looking at all the Bug reports and angry posts online about PHP 5.3 I just want to get it across that the improvements are worth fixing what ever is bugging the &quot;New&quot; &quot;Just Released&quot; thing, this is the typical hair pulling that comes with the bleeding edge latest and greatest early adopter crowd of anything.<br> </p> <p>Thanks. <br> </p> 2009-07-27T02:20:24-04:002009-07-27T02:20:24.913-04:00urn:uuid:00000000-0000-0000-0000-000002049407http://forums.iis.net/p/1197789/2049407.aspx/1?Faulting+application+php+cgi+exe+version+5+3+19+0+faulting+module+kernelFaulting application php-cgi.exe, version 5.3.19.0, faulting module kernel <p></p> <p>Hi,</p> <p>I have a windows 2003 server with iis6 production server, which runs mu companies website (wordpress), and I have a issue with that fast-cgi hangs a lot and connections to the server times out. The server perfomrce very slowly also. I check the server's eventview today and there is a lot of error reports on:</p> <p>Faulting application php-cgi.exe, version 5.3.19.0, faulting module kernel32.dll, version 5.2.3790.5069, fault address 0x00021671.</p> <p>EventID 1001 appliction error: Fault bucket -772687241.</p> <p>I have a ton of these in the log..</p> <p></p> <p>Any ide helping me in the right direction to solve this issue is very appreciated!</p> <p>Thanks! <img src="http://i3.iis.net/fin2-cdn/scripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif" alt="Laughing" title="Laughing" class="emoticon" border="0"></p> 2013-05-07T17:45:15-04:002013-05-07T17:45:15.29-04:00urn:uuid:00000000-0000-0000-0000-000002049323http://forums.iis.net/p/1197762/2049323.aspx/1?Any+approach+to+determine+the+filename+on+server+side+Any approach to determine the filename on server side? <p>Referring to following PHP script, the previous one is probably no longer work after the change at the start of last year from bin to bi5.</p> <p>I would like to sort it out, but it seems impossible to access the data without&nbsp;knowing the correct bi5 filename format.&nbsp;&nbsp;Is anyone able to sort out what&nbsp;filename format they use? I have tried following code without luck.<br> Does anyone&nbsp;have any suggestions?</p> <p>Thanks you very much for any suggestions</p> <p></p> <p>Previous version worked before changed, once it changes from bin to bi5, they are no longer working</p> <p><strong>File to download </strong>: <a href="http://sdrv.ms/17FwXEF">http://sdrv.ms/17FwXEF</a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;askurl = &quot;<a href="http://www.dukascopy.com/datafeed/&#36;pair/&#36;year/&#36;month/&#36;day/ASK_candles_&#36;candletype.bin">http://www.dukascopy.com/datafeed/&#36;pair/&#36;year/&#36;month/&#36;day/<strong>ASK_candles_&#36;candletype.bin</strong></a>&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;bidurl = &quot;<a href="http://www.dukascopy.com/datafeed/&#36;pair/&#36;year/&#36;month/&#36;day/BID_candles_&#36;candletype.bin">http://www.dukascopy.com/datafeed/&#36;pair/&#36;year/&#36;month/&#36;day/<strong>BID_candles_&#36;candletype.bin</strong></a>&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //error(&quot;Info: Processing &#36;pair &#36;i - &quot;.gmstrftime(&quot;%D %T&quot;,&#36;i).&quot; --- &#36;url\n&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;localpath = &quot;&#36;pair/&#36;year/&#36;month/&#36;day/&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;asklocalfile = &#36;localpath . &quot;<strong>ASK_candles_&#36;candletype.bin</strong>&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;bidlocalfile = &#36;localpath . &quot;<strong>BID_candles_&#36;candletype.bin</strong>&quot;;</p> <p><br> Current version is working</p> <p><strong>File to download </strong>: <a href="http://sdrv.ms/13UdlKZ">http://sdrv.ms/13UdlKZ</a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;url = &quot;<a href="http://www.dukascopy.com/datafeed/&#36;pair/&#36;year/&#36;month/&#36;day/%7B&#36;hour%7Dh_ticks.bi5">http://www.dukascopy.com/datafeed/&#36;pair/&#36;year/&#36;month/&#36;day/{&#36;hour}h_ticks.bi5</a>&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //error(&quot;Info: Processing &#36;pair &#36;i - &quot;.gmstrftime(&quot;%m/%d/%y %H:%M:%S&quot;,&#36;i).&quot; --- &#36;url\n&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;localpath = &quot;&#36;pair/&#36;year/&#36;month/&#36;day/&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;binlocalfile = &#36;localpath . &#36;hour . &quot;h_ticks.bin&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#36;localfile = &#36;localpath . &#36;hour . &quot;h_ticks.bi5&quot;;</p> <hr> <p>Thanks in advance for any suggestions</p> 2013-05-06T21:28:37-04:002013-05-06T21:28:37.35-04:00urn:uuid:00000000-0000-0000-0000-000001953675http://forums.iis.net/p/1170663/1953675.aspx/1?PHP+5+3+3+on+IIS+6+0+helpPHP 5.3.3 on IIS 6.0 help <p>Hi,</p> <p>I had installed PHP 5.2.5 earlier on my system and phpinfo() was displaying correctly. But mysql module was missing and hence I decided to upgrade to php 5.3.3. But after the upgrade the browser while executing phpinfo() still displays the details of the older version. When I ask for php version via command prompt it shows me 5.3.3. I have searched and searched but couldn't find anything. I am using pear DB module to connect to the database and it works fine locally but when accessed via browser doesn't work and gives DB Error: Extension not found. But i have php_mysql.dll file in my php\ext folder and I have mentioned the correct path in the php.ini file.</p> <p>Also, while installing php 5.3.3 using windows installer I used &quot;Do not&nbsp;setup a web sever option&quot; in the &quot;setup a web server wizard'. Is that alright? I have configured IIS to use phpisapi.dll to execute php extension. Would this work with IIS 6.0? I am not uding CGI or FastGCI.<br> Any help would be appreciated. </p> <p>Thanks,<br> Charmie</p> 2010-08-16T21:19:39-04:002010-08-16T21:19:39.85-04:00urn:uuid:00000000-0000-0000-0000-000001638099http://forums.iis.net/p/1091669/1638099.aspx/1?FastCGI+PHP+APCFastCGI, PHP & APC <p>Hello,</p> <p>Has anyone had success getting APC to run under fastcgi?&nbsp;</p> <p>&nbsp;</p> 2007-03-27T00:18:32-04:002007-03-27T00:18:32.623-04:00urn:uuid:00000000-0000-0000-0000-000001868899http://forums.iis.net/p/1149212/1868899.aspx/1?Why+I+can+t+exec+batch+file+Why I can't exec batch file? ??? <p><strong>Hi,<br> I've tried to use PHP exec() to execute DOS command.<br> It works with command exec(&quot;md example_dir&quot;) .<br> But when I put test.bat in same directory and run PHP with exec(&quot;test.bat&quot;) , it doesn't work. No error showed but not work.</strong></p> <p>Anyone can help me?</p> <p>Thanks.</p> 2008-05-06T03:38:12-04:002008-05-06T03:38:12.527-04:00urn:uuid:00000000-0000-0000-0000-000001907308http://forums.iis.net/p/1158487/1907308.aspx/1?Permission+problems+on+Wordpress+Uploads+on+IIS+7Permission problems on Wordpress Uploads on IIS 7 <p>I'm a noob on IIS. But I've been looking everywhere for a solution but nothing works. The following mentions 2 problems. I think I've already fixed the first one but the second one is the key issue.</p> <p>I have Server 2008 x64&nbsp;Virtual Machine / IIS 7&nbsp;/&nbsp;Wordpress 2.8 / MySQL NTS / PHP</p> <p>Everything works fine except&nbsp;media uploads. When I click upload using internet explorer, the blogging platform alerts me that I have a problem:</p> &lt;div id=media-upload-error&gt;Unable to create directory C:\inetpub\wwwroot\blog/wp-content/uploads/2009/06. Is its parent directory writable by the server?&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;To fix this problem, I allowed NETWORK SERVICE to have access to the uploads folder and I'm able to get as far as writing the folders and the file&nbsp;(*upload path*/2009/06/test.jpg)&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;When I look at the permissions on test.jpg, IIS_IUSRS does not have read access. I can simply change that manually and see the picture on the site.&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;But how can I get NETWORK SERVICE to write&nbsp;test.jpg with&nbsp;IIS_IUSRS permissions set automatically to read? I thought if&nbsp;my uploads folder had IIS_IUSRS permissions set, it&nbsp;would&nbsp;propagate the necessary credentials to the nested folders.&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;Thanks in advance.&lt;/div&gt; 2009-06-17T06:25:21-04:002009-06-17T06:25:21.823-04:00urn:uuid:00000000-0000-0000-0000-000001922967http://forums.iis.net/p/1162251/1922967.aspx/1?Can+t+get+phpMyAdmin+to+work+on+Server+2008+R2Can't get phpMyAdmin to work on Server 2008 R2 <p>I just installed Windows Server 2008 R2 and got IIS fully installed.&nbsp; I installed the following:</p> <ul> <li>&lt;div mce_keep=&quot;true&quot;&gt;MySQL 5.1.40 (community)&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;PHP 5.3.0&lt;/div&gt; </li><li>&lt;div mce_keep=&quot;true&quot;&gt;phpMyAdmin 3.2.3&lt;/div&gt;</li></ul> <p>I created the phpMyAdmin config.inc.php as described on my blog (which I've used on several occasions):</p> <p><a href="http://dpotter.net/Technical/2009/03/installing-phpmyadmin-on-windows-and-iis-60/">http://dpotter.net/Technical/2009/03/installing-phpmyadmin-on-windows-and-iis-60/</a></p> <p>I am able to navigate to my phpmyadmin URL and I get the login page.&nbsp; However, after waiting about 30 seconds, the following page is displayed:</p> <p>&nbsp;</p> &lt;div id=header&gt; <h1>Server Error in Application &quot;DEFAULT WEB SITE/PHPMYADMIN&quot;</h1> &lt;/div&gt; &lt;div id=server_version&gt; <p>Internet Information Services 7.5</p> &lt;/div&gt; &lt;div id=content&gt; &lt;div class=content-container&gt; <fieldset><legend>Error Summary</legend> <h2>HTTP Error 500.0 - Internal Server Error</h2> <h3>The page cannot be displayed because an internal server error has occurred.</h3> </fieldset> &lt;/div&gt; &lt;div class=content-container&gt; <fieldset><legend>Detailed Error Information</legend> &lt;div id=details-left&gt; <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr class="alt"> <th>Module</th> <td>FastCgiModule</td> </tr> <tr> <th>Notification</th> <td>ExecuteRequestHandler</td> </tr> <tr class="alt"> <th>Handler</th> <td>PHP_via_FastCGI</td> </tr> <tr> <th>Error Code</th> <td>0x00000000</td> </tr> </tbody> </table> &lt;/div&gt; &lt;div id=details-right&gt; <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr class="alt"> <th>Requested URL</th> <td>http://localhost:80/phpmyadmin/index.php</td> </tr> <tr> <th>Physical Path</th> <td>C:\inetpub\wwwroot\phpMyAdmin\index.php</td> </tr> <tr class="alt"> <th>Logon Method</th> <td>Anonymous</td> </tr> <tr> <th>Logon User</th> <td>Anonymous</td> </tr> </tbody> </table> &lt;div class=clear&gt;&lt;/div&gt;&lt;/div&gt;</fieldset> &lt;/div&gt; &lt;div class=content-container&gt; <fieldset> <legend>Most likely causes:</legend> <ul> <li>IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. </li><li>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly. </li><li>IIS was not able to process configuration for the Web site or application. </li><li>The authenticated user does not have permission to use this DLL. </li><li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li></ul> </fieldset> &lt;/div&gt; &lt;div class=content-container&gt; <fieldset><legend>Things you can try:</legend> <ul> <li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account. </li><li>Check the event logs to see if any additional information was logged. </li><li>Verify the permissions for the DLL. </li><li>Install the .NET Extensibility feature if the request is mapped to a managed handler. </li><li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439"><strong><font color="#007eff">here</font></strong></a>. </li></ul> </fieldset> &lt;/div&gt; &lt;div class=content-container&gt; <fieldset><legend>Links and More Information</legend> This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error. <p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=500,0,0x00000000,7600"><strong><font color="#007eff">View more information ยป</font></strong></a></p> <p>Microsoft Knowledge Base Articles:</p> <ul> <li>294807</li></ul> </fieldset> &lt;/div&gt;&lt;/div&gt; <p>I've been searching the forums for a couple hours now and haven't found anything that will solve this.&nbsp; Can someone help?</p> <p>Thanks,<br> <strong><em>David</em></strong></p> 2009-11-01T09:04:50-05:002009-11-01T09:04:50.737-05:00urn:uuid:00000000-0000-0000-0000-000002044647http://forums.iis.net/p/1196341/2044647.aspx/1?Pls+Help+How+to+implement+htaccess+MIME+Type+in+IISPls Help!!How to implement .htaccess MIME Type in IIS <p>Hi!</p> <p></p> <p>I have a .htaccess file with following code</p> <p>&lt;Files new-arrival&gt;<br> ForceType application/x-httpd-php<br> &lt;/Files&gt;<br> &lt;Files best-seller&gt;<br> ForceType application/x-httpd-php<br> &lt;/Files&gt;<br> &lt;Files bargain-buys&gt;<br> ForceType application/x-httpd-php<br> &lt;/Files&gt;<br> &lt;Files coming-soon&gt;<br> ForceType application/x-httpd-php<br> &lt;/Files&gt;</p> <p></p> <p>The above code was hosted on&nbsp;Apache Web Server and was working fine. And Now we have hosted the application in windows 2008 Server with IIS7. But we are unable to define the above settings in IIS.&nbsp;new-arrival,best-seller,<wbr>bargain-buys.. are name of files. They are not file extension.</p> <p>Can any one help me to define the above MIME type in IIS. &nbsp;Thanks in advance to all.</p> 2013-03-14T06:45:24-04:002013-03-14T06:45:24.823-04:00urn:uuid:00000000-0000-0000-0000-000002045989http://forums.iis.net/p/1196478/2045989.aspx/1?consuming+asp+net+web+service+from+php+consuming asp.net web service from php. <p>We need to call a asp.net hosted web service from php 5.3.&nbsp; We can see exactly what is needed to be sent using Fidder but the documentation is so poor on PHP on this subject plus there is 3 flavors nusoap, zend, etc plus all the versions of PHP soap client.<br> <br> Is there a good example of how to do it anywhere that really works. Below is what we see as the output of the .net code (from fiddler) that has been tested and works.<br> <br> login:<br> <br> &lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;s:Body&gt;&lt;Login xmlns=&quot;http://lxxx.xxxx.com/webservices/&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;asUserName&gt;Bob&lt;/asUserName&gt;&lt;asPassword&gt;Bob&lt;/asPassword&gt;&lt;/Login&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;<br> <br> CreatePurchase:<br> <br> &lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;s:Body&gt;&lt;CreatePurchase xmlns=&quot;http://xxx.xxxx.com/webservices/&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;axCustomer&gt;&lt;Customer Name=&quot;Ron Howard&quot; EMail=&quot;RH@Anysite.com&quot; FirstName=&quot;Ron E&quot; LastName=&quot;Howard&quot; Salutation=&quot;Mr.&quot; Company=&quot;RHP&quot; Address=&quot;1313 Mockingbird Rd.&quot; Address2=&quot;1&quot; City=&quot;Los Angles&quot; StateCode=&quot;CA&quot; CountryISOCode=&quot;USA&quot; PostCode=&quot;99999-9999&quot; Phone=&quot;888.888.8888&quot; Fax=&quot;888.888.8888&quot; Comments=&quot;Now is time for all good men to come to the aid of their country&quot; xmlns=&quot;&quot;&gt;&lt;Purchase LicenseID=&quot;0&quot; PurchaseDate=&quot;9/23/2012&quot; Income=&quot;0.00&quot; Comments=&quot;AAA&quot;&gt;&lt;/Purchase&gt;&lt;/Customer&gt;&lt;/axCustomer&gt;&lt;/CreatePurchase&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;<br> <br> I have used the xmlwriter in php to construct the xml that gets dropped in, the question is how to package it so that it goes out correctly. All help appreciated, or is there a better place to ask?<br> <br> Regards,<br> <br> <br> <br> </p> 2013-03-19T14:44:11-04:002013-03-19T14:44:11.737-04:00urn:uuid:00000000-0000-0000-0000-000002044381http://forums.iis.net/p/1196251/2044381.aspx/1?HTTP+Error+500+in+IISHTTP Error 500 in IIS I am running the MindTouch Core 10.1.3 CMS web application on a 2008 R2 SP1 server and am running into issues. I have posted the issue over on those forums but I think it is more related to PHP itself and the environment. The problem doesn't happen locally with a similar VM on our network, just on the public one hosted online. Basically, every few hours or so, we will receive an HTTP error 500 message either in the browser or in the logs. This happens when browsing pages and is especially reproducible when uploading files (usually between 5-10MB). Simply refreshing the page or trying to upload the file again will allow it to eventually complete. In IIS, I see several entries of the following under FailedReqLogfiles: ModuleName ManagedPipelineHandler Notification 128 HttpStatus 500 HttpReason Internal Server Error HttpSubStatus 0 ErrorCode 0 ConfigExceptionInfo Notification EXECUTE_REQUEST_HANDLER ErrorCode The operation completed successfully. (0x0) The PHP version is 5.2.14 (version that ships with MindTouch). I will also see some entries in the PHP error log that show: [05-Mar-2013 15:03:31] PHP Warning: implode() [&lt;a href='function.implode'&gt;function.implode&lt;/a&gt;]: Invalid arguments passed in C:\Program Files (x86)\MindTouch\MindTouch\web\skins\error-settings.php on line 93 The server is a virtual machine with 4GB RAM and 4 vCPUs. It is hosted in the cloud and accessible over the web. What things can I look at to troubleshoot this issue? Are there settings on the properties of the App Pool that I should review? Any help is greatly appreciated. 2013-03-08T23:47:17-05:002013-03-08T23:47:17.453-05:00urn:uuid:00000000-0000-0000-0000-000002044341http://forums.iis.net/p/1196236/2044341.aspx/1?Getting+HTTP+Error+500+52+URL+Rewrite+Module+Error+Getting HTTP Error 500.52 - URL Rewrite Module Error. <p>i just created a web.config file from .htaccess with the help of IIS Module Application, but getting&nbsp;</p> <h3>HTTP Error 500.52 - URL Rewrite Module Error.</h3> <p>With this error:&nbsp;</p> <h4>The expression &quot;^file/pic/photo/([0-9]&#43;)/([0-9]&#43;)/([A-Za-z0-9]{32}&#43;)\-(.*?)_([0-9]*?)\.(.*)&#36;&quot; contains a repeat expression (one of '*', '?', '&#43;', '{' in most contexts) that is not preceded by an expression.</h4> <p></p> <p>What change should i made to get the things right.</p> <p></p> <p>My full Code is</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br> &lt;configuration&gt;<br> &lt;system.webServer&gt;<br> &lt;rewrite&gt;<br> &lt;!--This directive was not converted because it is not supported by IIS: RewriteBase /.--&gt;<br> &lt;rules&gt;<br> &lt;!--######################################--&gt;<br> &lt;!--## [PHPFOX_HEADER]--&gt;<br> &lt;!--##--&gt;<br> &lt;!--## @copyright [PHPFOX_COPYRIGHT]--&gt;<br> &lt;!--## @author Raymond Benc--&gt;<br> &lt;!--## @package PhpFox--&gt;<br> &lt;!--## @version &#36;Id: htaccess.txt 5074 2012-12-06 10:37:26Z Raymond_Benc &#36;--&gt;<br> &lt;!--######################################--&gt;<br> &lt;!--# Options -Indexes--&gt;<br> &lt;!--# Options -Multiviews--&gt;<br> &lt;!--# Header unset Pragma--&gt;<br> &lt;!--# FileETag None--&gt;<br> &lt;!--# Header unset ETag--&gt;<br> &lt;!--# URL Rewrite--&gt;<br> &lt;rule name=&quot;Imported Rule 1&quot;&gt;<br> &lt;match url=&quot;^file/pic/photo/([0-9]&#43;)/([0-9]&#43;)/([A-Za-z0-9]{32}&#43;)\-(.*?)\.(.*)&#36;&quot; ignoreCase=&quot;false&quot; /&gt;<br> &lt;action type=&quot;Rewrite&quot; url=&quot;file/pic/photo/{R:1}/{R:2}/{R:3}_{R:5}.{R:6}&quot; /&gt;<br> &lt;/rule&gt;<br> &lt;rule name=&quot;Imported Rule 2&quot;&gt;<br> &lt;match url=&quot;^file/pic/photo/([0-9]&#43;)/([0-9]&#43;)/([A-Za-z0-9]{32}&#43;)\-(.*?)\.(.*)&#36;&quot; ignoreCase=&quot;false&quot; /&gt;<br> &lt;action type=&quot;Rewrite&quot; url=&quot;file/pic/photo/{R:1}/{R:2}/{R:3}.{R:5}&quot; /&gt;<br> &lt;/rule&gt;<br> &lt;rule name=&quot;Imported Rule 3&quot;&gt;<br> &lt;match url=&quot;^(.*)&quot; ignoreCase=&quot;false&quot; /&gt;<br> &lt;conditions&gt;<br> &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&gt;<br> &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&gt;<br> &lt;/conditions&gt;<br> &lt;action type=&quot;Rewrite&quot; url=&quot;index.php?do=/{R:1}&quot; appendQueryString=&quot;false&quot; /&gt;<br> &lt;/rule&gt;<br> &lt;rule name=&quot;Imported Rule 4&quot;&gt;<br> &lt;match url=&quot;^file/pic/photo/(.*)\.(.*)&#36;&quot; ignoreCase=&quot;false&quot; /&gt;<br> &lt;action type=&quot;Rewrite&quot; url=&quot;static/image.php?file={R:1}&amp;amp;ext={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;<br> &lt;/rule&gt;<br> &lt;/rules&gt;<br> &lt;/rewrite&gt;<br> &lt;/system.webServer&gt;<br> &lt;/configuration&gt;</p> 2013-03-08T11:01:51-05:002013-03-08T11:01:51.4-05:00urn:uuid:00000000-0000-0000-0000-000002043186http://forums.iis.net/p/1195862/2043186.aspx/1?IIS+7+PHP+5+3+6+require+statement+generates+server+error+500IIS 7 PHP 5.3.6 require statement generates server error 500 <p>I just installed IIS on my Win 7 professional, and manually configured it to use my pre-existing php-cgi.exe using fastCGI.</p> <p>An index.php file in wwwroot folder saying</p> <p>echo &quot;hello&quot;;</p> <p>echo phpinfo();</p> <p>works fine. If I now add</p> <p>require 'foo.php'</p> <p>where foo.php is also in wwwroot folder, it fails with server error 500. Also, in IIS Manager, if I go to Default web site/Basic Settings and click on TEST SETTINGS it says:</p> <p><img src="http://www.brisk.org.uk/pics/iis1.png"></p> <p>If I right-click on Default web site and go to Permissions it shows:</p> <p>&nbsp;</p> <p><img src="http://www.brisk.org.uk/pics/iis2.png"></p> <p>In any case, if php can read index.php surely permissions could not stop it reading foo.php from same folder. My php.ini has include_path=&quot;.;c:\php\includes&quot; and I tried putting foo.php in the \php\includes folder also but that doesn't work.</p> <p>Finally, despite having Detailed Errors set and error_reporting =<span size="2" style="font-size:small">E_ALL &amp; ~E_DEPRECATED</span>, I cannot get anything except the standard 500 server error message out of IIS.</p> <p>Help please! P.S. Please don't say &quot;Why don't you use the Microsoft Web Platform Installer?&quot; because, as far as I can see, the latest version will only install Windows Azure (I have no idea what Azure is and I don't want to know, but&nbsp;I assume it isn't IIS&#43;PHP&#43;MySQL.)&nbsp;</p> 2013-02-19T13:26:56-05:002013-02-19T13:26:56.377-05:00urn:uuid:00000000-0000-0000-0000-000002043911http://forums.iis.net/p/1196086/2043911.aspx/1?Require+Steps+to+Setting+up+php+on+WindowsRequire Steps to Setting up php on Windows <p>Hi,</p> <p>I am a PHP developer. Could any one help me to set up php&nbsp;environment using IIS. I used XAMPP previously, and I am completely new to this setup. I am inerested to develop my webpage using Microsoft Visual Studio.</p> <p>Thanks</p> 2013-03-01T02:45:14-05:002013-03-01T02:45:14.63-05:00urn:uuid:00000000-0000-0000-0000-000002042544http://forums.iis.net/p/1195662/2042544.aspx/1?IIS+PHP+Site+not+displaying+correctlyIIS + PHP Site not displaying correctly <p>I have a php website that I've been running on an OLD version of Windows. I am trying to migrate it to a Windows Server 2008 64bit but not having any luck. <br> <br> PHP is installed and running correctly as when I do the php info file, all the information is displayed.</p> <p>Here is a print screen of what appears:</p> <p>==</p> <p>'); define('_MOBILEGEAR_CATTITLE','Mobile Gear'); define('_MOBILEGEAR_CATBLURB','</p> <p>Some text</p> <p>'); define('_SUBSEA_CATTITLE','Subsea Telecom'); define('_SUBSEA_CATBLURB','</p> <p>more text</p> <p>===</p> <p>Essentially it looks like the site and sub menu pages are all being displayed on one page and compressed together.</p> <p>Any ideas?</p> <p><br> Thanks</p> <p>&nbsp;</p> 2013-02-08T18:07:45-05:002013-02-08T18:07:45.36-05:00urn:uuid:00000000-0000-0000-0000-000002042447http://forums.iis.net/p/1195629/2042447.aspx/1?php+errors+ibm_db2+etcphp errors ibm_db2, etc <p>I am having the follwoing erros on IIS server. I am completely lost on how to find these files. I know a few of them are in the ext folder. PHP Manger shows them enabled.</p> <p>Please point to the right answer to fix this problem.</p> <p>[07-Feb-2013 09:09:00 America/Tegucigalpa] PHP Warning:&nbsp; PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.4\ext\ibm_db2' - The specified module could not be found.<br> &nbsp;in Unknown on line 0<br> [07-Feb-2013 09:09:00 America/Tegucigalpa] PHP Warning:&nbsp; PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.4\ext\pdo_ibm' - The specified module could not be found.<br> &nbsp;in Unknown on line 0<br> [07-Feb-2013 09:11:58 America/Tegucigalpa] PHP Warning:&nbsp; PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.4\ext\php_ibm_db2.dll' - The specified module could not be found.<br> &nbsp;in Unknown on line 0<br> [07-Feb-2013 09:11:58 America/Tegucigalpa] PHP Warning:&nbsp; PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.4\ext\php_pdo.dll' - The specified module could not be found.<br> &nbsp;in Unknown on line 0<br> [07-Feb-2013 09:11:58 America/Tegucigalpa] PHP Warning:&nbsp; PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.4\ext\php_xdebug-2.2.1-5.4-vc9-x86_64.dll' - The specified module could not be found.</p> 2013-02-07T14:36:40-05:002013-02-07T14:36:40.42-05:00urn:uuid:00000000-0000-0000-0000-000002041698http://forums.iis.net/p/1195422/2041698.aspx/1?Wordpress+cannot+write+to+windows+shareWordpress cannot write to windows share <p>We have a configuration (all windows 2012 and IIS 8) with a cluster share setup and all sit econtent located in the share. Application pool idnetity is set to an AD user and pass-through auth is enabled along with the anonymous auth set as the app pool identity. We're using the fastcgi module and PHP was installed through WPI. We can create a php simple script to write a directory, but Wordpress is not able to. We also tried switching the auth to an administrator which we know has complete access and it didn't work.&nbsp;</p> <p>Does anyone have any idea? Is there a WP bug where it cannot write to shares?</p> 2013-01-29T21:52:38-05:002013-01-29T21:52:38.717-05:00urn:uuid:00000000-0000-0000-0000-000002041972http://forums.iis.net/p/1195486/2041972.aspx/1?PHP+security+issuePHP security issue <p>Hope this is the correct forum for my question.</p> <p>I have installed PHP on a IIS7.5 Windows 2008R2 server shared hosting server. PHP works. But with a simple php script I can browse over the complete server. I can set open_basedir to the users home directory by add add name=&quot;PHP via FastCGI&quot; path=&quot;*.php&quot; verb=&quot;*&quot; modules=&quot;FastCgiModule&quot; scriptProcessor=&quot;C:\php54\php-cgi.exe|-d open_basedir=c:\inetpub\wwwroot\userwebsite&quot; resourceType=&quot;Unspecified&quot; /&gt; into web.config. But the user can change the web.config so after change this he can again browse over the complete server. So this is not the way to do this.</p> <p>Can anyone tell me how I can hold the user in his own website directory?</p> 2013-02-01T11:06:15-05:002013-02-01T11:06:15.64-05:00urn:uuid:00000000-0000-0000-0000-000001929425http://forums.iis.net/p/1163729/1929425.aspx/1?Wordpress+on+iis+500+Server+ErrorsWordpress on iis - 500 Server Errors <p>OK finally got the php working but Wordpress is giving me 500 errors.&nbsp; Any ideas? I have searched and searched...................</p> 2009-12-29T17:16:58-05:002009-12-29T17:16:58.073-05:00