PHP on Vista (IIS 7.0)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
aliasxneo
Forum Contributor
Posts: 136
Joined: Thu Aug 31, 2006 12:01 am

PHP on Vista (IIS 7.0)

Post 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
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
aliasxneo
Forum Contributor
Posts: 136
Joined: Thu Aug 31, 2006 12:01 am

Post 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.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

and I told you how to do just that.
aliasxneo
Forum Contributor
Posts: 136
Joined: Thu Aug 31, 2006 12:01 am

Post 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.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
aliasxneo
Forum Contributor
Posts: 136
Joined: Thu Aug 31, 2006 12:01 am

Post 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.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

I honestly don't know. Sorry, I thought it would be similar to older versions...I guess it's not 8O
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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
aliasxneo
Forum Contributor
Posts: 136
Joined: Thu Aug 31, 2006 12:01 am

Post 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.
bhmahler
Forum Newbie
Posts: 1
Joined: Tue Mar 27, 2007 9:57 am

Post 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
Post Reply