PHP错误日志记录文件位置确定

1、确定web服务器 ( IIS, APACHE, NGINX 等) 以哪一种方式支持PHP,通常是有下面2种方式

通过模块加载的方式, 适用于apache 
    
通过 CGI/fastCGI 模式, 该模式一般web服务器都是支持的
    

2、通过模块加载的方式

php程序中配置如 > httpd.conf > php.ini中配置

3、通过 CGI/fastCGI 模式

错误日志记录在php.ini中配置的error_log位置,错误信息不管display_errors=On/Off都会输出到页面

猜你喜欢

转载自www.cnblogs.com/hnhycnlc888/p/9214189.html