Page 1 of 1
PHP on Vista (IIS 7.0)
Posted: Tue Feb 13, 2007 1:02 pm
by aliasxneo
Hey all,
Recently I upgraded to Vista Home Premium and am trying to get PHP working with IIS 7.0. The Installer fails when it try's to register IIS with PHP so I have to do it manually, which is not very easy.
I followed this tutorial posted by our friend David Wang:
http://blogs.msdn.com/david.wang/archiv ... art-2.aspx
And it seemed to work fine except when requesting a PHP script I get the following error:
HTTP Error 500.0 - Internal Server Error
Description: Handler "PHP-ISAPI" has a bad module "IsapiModule" in its module list
Error Code: 0x8007000d
Notification: ExecuteRequestHandler
Module: IIS Web Core
Requested URL:
http://localhost:80/test1.php
Physical Path: C:\webpages\test1.php
Logon User: Anonymous
Logon Method: Anonymous
Handler: PHP-ISAPI
I know what the problem is, I'm missing the ISAPI module, but I am very new to IIS and have no idea how to get it. I see places where you can add these modules but they all ask for a file path so I'm a little confused on what I need to do. Can anyone clarify this matter for me, or help me figure out what I am missing and what I need to do? Thanks.
Cheers,
- Josh
Posted: Tue Feb 13, 2007 1:20 pm
by Burrito
you need to add the extension in IIS for php and point it to the php5sapi.dll file (usually in c:\php).
you should also copy your php.ini file to your windows folder and delete all other instances of the php.ini file.
with IIS 6 (win 2k3) you have to add the extension outside of just the properties for your web site. I assume that the new version of IIS (with Vista) is the same.
Posted: Tue Feb 13, 2007 1:28 pm
by Kieran Huggins
Y'all could consider using a WAMP package like Uniform Server instead of IIS... unless you need IIS for something in particular.
Posted: Tue Feb 13, 2007 1:34 pm
by aliasxneo
Burrito wrote:you need to add the extension in IIS for php and point it to the php5sapi.dll file (usually in c:\php).
you should also copy your php.ini file to your windows folder and delete all other instances of the php.ini file.
with IIS 6 (win 2k3) you have to add the extension outside of just the properties for your web site. I assume that the new version of IIS (with Vista) is the same.
That's not my problem, read my post again. My problem is I don't know how to add the ISAPI module so that IIS can work with php5isapi.dll.
Posted: Tue Feb 13, 2007 1:50 pm
by Burrito
and I told you how to do just that.
Posted: Tue Feb 13, 2007 1:57 pm
by aliasxneo
Burrito wrote:and I told you how to do just that.
I'm not sure where you're talking about. IIS 7.0 does look a lot different than 6.0, everything is more organized. Could you be a little more specific in what I have to change to add the module and maybe I can find it.
Posted: Tue Feb 13, 2007 2:43 pm
by Burrito
I haven't seen the new version of IIS...I was basing my suggestions on previous versions of IIS with the assumption it's not much different. I will look tonight when I get home at vista's IIS and see if I can figure it out for you.
Posted: Tue Feb 13, 2007 7:05 pm
by aliasxneo
Burrito wrote:I haven't seen the new version of IIS...I was basing my suggestions on previous versions of IIS with the assumption it's not much different. I will look tonight when I get home at vista's IIS and see if I can figure it out for you.
Well I have a section labeled "Modules" that lists all the registered modules but I do not see any ISAPI which makes sense since I am getting that error. I can add either a "Managed Module" or "Native Module", I'm not sure what Managed is, but Native gives me a list of a few modules not registered, but ISAPI is not in that list either. It gives me a option of registering a new module and asks for a name and then a file path. That's about all I can find related to my issue.
Posted: Tue Feb 13, 2007 8:18 pm
by Burrito
I honestly don't know. Sorry, I thought it would be similar to older versions...I guess it's not

Posted: Tue Feb 13, 2007 8:27 pm
by Burrito
ahh I think I may have found it
you need to make sure you have the isapi extension component installed with IIS.
it is under world wide web service -> application development features
Posted: Wed Feb 14, 2007 8:53 pm
by aliasxneo
Burrito wrote:ahh I think I may have found it
you need to make sure you have the isapi extension component installed with IIS.
it is under world wide web service -> application development features
Can you tell me where you found this because I do not see it anywhere.
Posted: Tue Mar 27, 2007 9:59 am
by bhmahler
aliasxneo wrote:Burrito wrote:ahh I think I may have found it
you need to make sure you have the isapi extension component installed with IIS.
it is under world wide web service -> application development features
Can you tell me where you found this because I do not see it anywhere.
You need to go to Control Panel->Programs and features->Turn Windows features on or off
then go to Internet Information services and select isapi extensions under web services->application development features