First time here? Check out the site's "greatest hits" or read a post from the archives. Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. Thanks for visiting!
« The Five Second Rule - Does it Apply Int... | Main | The Weekly Source Code 8 »

IIS 7.0 Detailed Error - 404.17 - Not Found - Windows Internet Explorer If you're getting...

"HTTP Error 404.17 - Not Found - The requested content appears to be script and will not be served by the static file handler."

...on Vista while trying to get PHP working under IIS7 with the standard ISAPI "php5isapi.dll" ask yourself, are you running 64-bit? That ISAPI DLL is a 32-bit DLL, so you'll have to either change your default Application Pool to enable 32-bit, or preferably create a separate 32-bit AppPool for your PHP Application.

Right click on the Application Pool and select "Advanced Settings" then "Enable 32-bit Applications."

Advanced Settings

At this point, you're all set with the standard ISAPI PHP stuff. 

phpinfo() - Windows Internet Explorer

Even better, consider using the FastCGI for IIS component. I'll do a screencast on that soon.



Wednesday, October 17, 2007 3:28:14 AM (Pacific Standard Time, UTC-08:00)
Thanks for the info. Seems to be a good blog to be in touch with.
Wednesday, October 17, 2007 8:36:37 AM (Pacific Standard Time, UTC-08:00)
ISAPI would be my 3rd choice for running PHP on IIS 7. First FastCGI, second CGI. ISAPI is unstable. CGI is slow.

Additionally, on x64 ISAPI requires your php5isapi.dll be the same bitness as w3wp.exe, whereas with CGI and FastCGI php-cgi.exe can be a different bitness to w3wp.exe.
rick
Wednesday, October 17, 2007 8:52:57 AM (Pacific Standard Time, UTC-08:00)
This is the first PHP post I've seen here - I thought you were mostly a visual studio guy.

But good to see ! More PHP posts pl.

For starters what's your preferred editor / environment for php coding ?

Thanks for the great postings - keep'em coming!
Wednesday, October 17, 2007 11:05:52 AM (Pacific Standard Time, UTC-08:00)
Look at your CPU usage when hitting a PHP page on IIS7 using ISAPI. I think I've been told that it eats up CPU in that configuration.
John A. Davis
Wednesday, October 17, 2007 12:23:59 PM (Pacific Standard Time, UTC-08:00)
There is another obscure reason for why you can get a 404 error using PHP on IIS. It's got to do with the way the ISAPI extension is registered in IIS. Sometimes the filename to the PHP ISAPI Dll gets registered in the 8.3 format and that messes things up:

http://blog.gadodia.net/php-5-on-iis-6-giving-404-error-and-how-to-fix-it/

I really had a tough time figuring that one out...
Comments are closed.

Contact

Sponsors

Hosting By

On this page...

Tags

Calendar

<November 2008>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

Archives

Google Ads