HTTP 错误 500.19 - Internal Server Error
无法访问请求的页面,因为该页的相关配置数据无效。
环境信息:
操作系统:WIndows 7 x64
IIS:Internet Information Services 7.5
解决方法:
web.config文件内容:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers> <add name="php" path="*.php" verb="*" modules="IsapiModule" scriptProcessor="G:\php5217\php5isapi.dll" resourceType="Unspecified" preCondition="bitness32" /> </handlers> <defaultDocument> <files> <clear /> <add value="Default.htm" /> <add value="index.php" /> <add value="Default.asp" /> <add value="index.htm" /> <add value="index.html" /> <add value="iisstart.htm" /> </files> </defaultDocument> </system.webServer> <location path="CertSrv"> </location> </configuration>刚开始注意到的是HTTP扩展中的文件“
G:\php5217\php5isapi.dll”
发现这个文件并不存在。
本想是找到对应的文件位置修改正确,结果找不到了,而 PHP 从 5.3 版本开始好像就没有 php5isapi.dll 这个文件了。
那就删除 add 节点,还是不行;
把 handlers 节点也删除,问题解决了。
但是这样PHP 就不能用了,怎么办?
如果还想用PHP,而且是以ISAPI的方式,那就只能去下载低版本的了;
高版本的就要使用 FastCGI的方式了。
===========文档信息============
版权声明:非商用自由转载-保持署名-注明出处
署名(BY) :testcs_dn(微wx笑)
文章出处:[无知人生,记录点滴](http://blog.csdn.net/testcs_dn)