Jan
12

11


I’ve been trying to serve php pages on my IIS7 machine for some hours now, but could not get it to work.
First it took me some time to figure out there is a extra option
in ‘add/remove windows features’ to seperately install ISAPI options in IIS, but that was not too hard too find out.

But after registering my php4isapi.dll , every time I requested a .php file I got the error:

HTTP Error 404.3 - Not Found
Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed.

Error Code: 0x80070032

Notification: ExecuteRequestHandler

Module: StaticFileModule

Requested URL: http://localhost:80/test.php

Physical Path: C:\inetpub\wwwroot\test.php

Logon User: Anonymous

Logon Method: Anonymous

Handler: StaticFile

Wtf, StaticFileHandler? I’m sure I registered the .php extension to the php isapi dll.

After messing around in IIS for some time I found an option ‘Enable 32-Bit applications’ in the ‘advanced settings’ of an application pool.
Setting this property to true made php execute just fine. Would be so much nicer if IIS7 could detect if I register an 32 bit ISAPI and would
ask me if it should enable 32 bit applications automatically.

Being it a problem for 64bit users of Vista only, makes this issue kinda hard to find on the web. Guess there aren’t too many people
with 64 bit vista to try out php hosting yet.


11 Responses to “IIS7 HTTP Error 404.3 – Not Found for PHP, Cfm etc.”

cs says:

Feb 13, 2007

Hi,

I am in exactly the same situation, I can’t find the “enable 32 bit applicatioins” option, where is it? Thanks.



cs says:

Feb 13, 2007

OK, Just found out how to do this, for those wondering, here’s how:

NOTE: this applys to running PHP on Windows Vista 64-bit (retail version).

1. Go to IIS Manager, on the left hand side menu, click on Application Pools.
2. In the main window, right click on “DefaultAppPool” or “Classic .NET AppPool” depending on which one you use for your website.
3. Select “Advanced Settings”, in the “General” section in the pop-up window, check “Enable 32-Bit Applications” to “True”, DONE!

Enjoy!



Buzz says:

May 1, 2007

While searching for a solution to this problem I found this blog. After a bunch of fiddling with IIS 7, I found that by default, IIS on x64 will not allow 32 bit processes to run. You need to open the IIS manager, and select “Application Pools” in the left tree. Then from the new options in the right tree select “Set Application Pool Defaults”. From there, just change “Enable 32-Bit Applications” from false to true.

:)



Tomek says:

Jul 31, 2007

Oh man… this was key: “found an option ‘Enable 32-Bit applications’ in the ‘advanced settings’”… You should re-write the guide and make this a step. Your web site is literally the ONLY one that says it. Thanks!



Dan Andrews says:

Aug 6, 2007

I just posted a solution to this, but I noticed that there are other solutions in your comments – From Buzz on May 1st.



Paul says:

Sep 3, 2007

OMG! One day of my life that I will never get back was spent trying to work out what I had done wrong. Thankfully, after stumbling upon your entry, it was fixed in only a few clicks. Thank you so much :)



Ken says:

Oct 4, 2007

Thanks for the info, it saved me a lot of time.

PHP is working now :-)

Regards,
KJ.



Ryan Williams says:

Feb 13, 2008

God. Thanks for that.

Just wasted 30 mins at work trying to work this out. Don’t think I’d ever have found it myself. :(



Dave Transom says:

Apr 8, 2008

Thanks Chris.

Although, I had added the MIME type for .php to “application/x-httpd-php”, so it was being served without the error you’ve shown above, it was serving the PHP code as plain text.

All good now. I’m guessing you just saved me another hour or so :)



Mark says:

Nov 15, 2008

I’m getting the 404.3 error (Error Code 0×80070032 ) on 32-bit Vista Business. Anyone know how I can resolve this?



Peg Galban says:

May 21, 2010

Hi,this is Peg Galban,just found your web-site on google and i must say this blog is great.may I share some of the Post found in this web site to my local students?i’m not sure and what you think?anyhow,Many thanks!



Leave a Reply