Trying to install PHP on IIS7
Trying to install PHP on IIS7
am 04.01.2008 00:45:53 von Mary Ellen Curtin
I have been trying to install PHP to run on IIS7 under Vista. I've followed
Amos Soh's instructions http://znownet.com/article.php with care, but I get
a 404 error when I try to run any php page.
The Failed Request Log looks like this:
-----------
IIS Diagnostics Output
Url: http://localhost:80/test.php
Site: 1
App Pool: DefaultAppPool
Process: 1912
Authentication: anonymous
User from token: NT AUTHORITY\IUSR
Activity ID: {00000000-0000-0000-0500-0080000000FA}
Failure Reason: STATUS_CODE
Final Status: 404
Time Taken: 15 msec
IIS Trace Detail Highlights
No. EventName Details Time
38. n n r MODULE_SET_RESPONSE_ERROR_STATUS
Warning ModuleName="IsapiModule", Notification="EXECUTE_REQUEST_HANDLER",
HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The
specified module could not be found. (0x8007007e)", ConfigExceptionInfo=""
---------------
Is this enough information for you to tell me what's going on and how to fix
it?
MEC
Doctor Science, MA
http://doctorscience.blogspot.com
Re: Trying to install PHP on IIS7
am 04.01.2008 06:57:57 von David Wang
0x8007007e indicates that the PHP ISAPI DLL is missing DLL dependency.
This is usually a PHP installation problem that you should resolve in
a PHP forum. This assumes that your IIS configuration is correct
relative to where your files are placed, but you haven't told us that,
so be aware of that assumption.
FYI: If you have followed the instructions verbatim and think the
author's instructions are mistaken, you really should report the
discrepancies to the author. It's really his responsibility to fix his
own instructions (if he wants) and not our responsibility to correct
everyone else's works since there's a million of them and only a few
of us. Your discretion helps everyone a great deal. Thanks.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Jan 3, 3:45=A0pm, "Mary Ellen Curtin"
wrote:
> I have been trying to install PHP to run on IIS7 under Vista. I've followe=
d
> Amos Soh's instructionshttp://znownet.com/article.phpwith care, but I get
> a 404 error when I try to run any php page.
>
> The Failed Request Log looks like this:
> -----------
> IIS Diagnostics Output
> Url:http://localhost:80/test.php
> Site: 1
> App Pool: DefaultAppPool
> Process: 1912
> Authentication: anonymous
> User from token: NT AUTHORITY\IUSR
> Activity ID: {00000000-0000-0000-0500-0080000000FA}
> Failure Reason: STATUS_CODE
> Final Status: =A0404
> Time Taken: 15 msec
> IIS Trace Detail Highlights
> No. =A0EventName Details Time
> 38. n n r =A0MODULE_SET_RESPONSE_ERROR_STATUS
> Warning ModuleName=3D"IsapiModule", Notification=3D"EXECUTE_REQUEST_HANDLE=
R",
> HttpStatus=3D"404", HttpReason=3D"Not Found", HttpSubStatus=3D"0", ErrorCo=
de=3D"The
> specified module could not be found. (0x8007007e)", ConfigExceptionInfo=3D=
""
> ---------------
>
> Is this enough information for you to tell me what's going on and how to f=
ix
> it?
>
> MEC
> Doctor Science, MAhttp://doctorscience.blogspot.com
Re: Trying to install PHP on IIS7
am 05.01.2008 06:45:05 von MR. Arnold
"Mary Ellen Curtin" wrote in message
news:eFl7RLmTIHA.4712@TK2MSFTNGP04.phx.gbl...
>I have been trying to install PHP to run on IIS7 under Vista. I've followed
>Amos Soh's instructions http://znownet.com/article.php with care, but I get
>a 404 error when I try to run any php page.
>
He is not the only rooster in the hen house.
Re: Trying to install PHP on IIS7
am 14.01.2008 23:29:58 von Mary Ellen Curtin
I'm sorry to not have replied earlier, I have been trying one thing after
another. (You can see the tale of my travails here:
http://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
http://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
I also have:
modules="IsapiModule" scriptProcessor="C:\php\php5isapi.dll"
resourceType="File" requireAccess="Script" preCondition="" />
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
http://doctorscience.blogspot.com