盼盼资源网-亲测资源网-盼盼的家园www.panpan.org

 找回密码
 立即注册
查看: 3982|回复: 0

[普通] win2008 R2 IIS7下,显示PHP500错误的解决方法

[复制链接]

2440

主题

2550

帖子

40万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
408884
发表于 2018-7-3 15:19:47 | 显示全部楼层 |阅读模式
win2008 R2 IIS7下,显示PHP500错误的解决方法

玛德,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>

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|民间故事|新华字典|周公解梦|实用工具|加密解密|便民服务|盼盼工具箱|闹钟|默笙工具箱|易经风水|Archiver|手机版|小黑屋|盼盼资源网

GMT+8, 2025-12-21 17:28 , Processed in 2.232337 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表