找到C:WindowsSystem32inetsrvconfigapplicationHost.config 文件;
找到这段代码 <handlers accessPolicy="Read, Script">
找到<add name="PHP" path="*.php" ...................................
在结束标签前添加代码 responseBufferLimit="0";
我的完整代码是<add name="PHP" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="F:web_huanjingphp-5.6.40php-cgi.exe" resourceType="File" responseBufferLimit="0"/>