"HTTP Error 404.17 - Not Found - The requested content appears to be script and will not be served by the static file handler."
“ HTTP错误404.17-找不到-请求的内容似乎是脚本,并且不会由静态文件处理程序提供。”
...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.
...在Vista上,同时尝试使PHP在IIS7下使用标准ISAPI“ php5isapi.dll”运行时,问自己,您是否在运行64位? 该ISAPI DLL是32位DLL,因此您必须更改默认的应用程序池以启用32位,或者最好为您PHP应用程序创建一个单独的32位AppPool。
Right click on the Application Pool and select "Advanced Settings" then "Enable 32-bit Applications."
右键单击“应用程序池”,然后选择“高级设置”,然后选择“启用32位应用程序”。
At this point, you're all set with the standard ISAPI PHP stuff.
至此,您已经设置了标准的ISAPI PHP东西。
Even better, consider using the FastCGI for IIS component. I'll do a screencast on that soon.
更好的是,考虑使用FastCGI for IIS组件。 我将尽快对此进行截屏。
翻译自: https://www.hanselman.com/blog/http-error-40417-php-on-iis7-under-64bit-vista