玛德,IIS就是个坑,害得老子进行摸索了那么久,才找到了解决方法:
1、除了将php.ini配置为:
display_errors = on;
error_reporting = E_ALL & ~E_NOTICE;
2、还要再php网站的根目录下面新建一个web.config文件:
iis的配置, 注意你首先需要在你的网站根目录添加web.config文件:
代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.webServer>
<httpErrors errorMode="DetailedLocalOnly" existingResponse="PassThrough"></httpErrors>
</system.webServer>
</configuration>