zoukankan      html  css  js  c++  java
  • IIS7下,显示PHP错误(不显示500错误,而显示详细错误)

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

  • 相关阅读:
    JVM字节码(七)
    JVM字节码(六)
    JVM字节码(五)
    JVM字节码(四)
    JVM字节码(三)
    JVM字节码(二)
    JVM字节码(一)
    JVM类加载器(五)
    JVM类加载器(四)
    php之 人员的权限管理
  • 原文地址:https://www.cnblogs.com/qing123/p/9127520.html
Copyright © 2011-2022 走看看