Installing PHP on IIS7 using FastCGI
| From: | Mary Ellen Curtin | Date: | Tue, 15 Jan 2008 17:48:18 +0000 |
| Subject: | Installing PHP on IIS7 using FastCGI | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-28721@lists.php.net to get a copy of this message | ||
Or, more precisely, *trying* to install it.
The "Previously" part of my tale can be found here:
forums.iis.net/t/1147538.aspx
in a post on the IIS.NET forums.
To make a long and circumstantial story short, I currently have
installed:
- IIS7
- PHP 5.2.5, non-thread-safe version
- the FastCGI technical preview
When I was looking at these instructions
blogs.iis.net/bills/archive/2007/05/19/how-to-install-fastcgi-and-php-on-iis7-beta-3-video.aspx
I noticed that everything Bills mentioned looks like what I have, except
in
applicationhost.config under
<location path="Default Web Site">
<system.webServer>
I also have:
<handlers accessPolicy="Script, Execute, Read">
<remove name="PHP" />
<add name="PHP" path="*.php" verb="*" type=""
modules="IsapiModule" scriptProcessor="C:\php\php5isapi.dll"
resourceType="File" requireAccess="Script" preCondition="" />
</handlers>which Bills doesn't mention. So I backed IIS and this file up, and then deleted those lines, in the spirit of scientific enquiry and hitting stuff until it works. Now: 1. Static .php pages appear just fine -- that is, an "index.php" page with only HTML, no actual PHP scripting. 2. I don't get an error message when I run phpinfo() or other actively-scripted pages -- but I don't see anything else, either. It's all a blank. I assume that the problem is the lack of a PHP handler with "Execute", but I have no idea what to call it or where to put it. MEC Doctor Science, MA doctorscience dot blogspot dot com