正确记录配置
php.ini
display_errors = On
error_reporting = E_ALL
log_errors = On
error_log = F:/data/php/error.log
xx.php文件
ini_set("error_log", $error_path)
http.conf
ErrorLog "F:/data/apache/logs/localhost.www.cytxl.com.cn-error.log"
display_errors = On
error_reporting = E_ALL
log_errors = On
error_log = F:/data/php/error.log
xx.php文件
ini_set("error_log", $error_path)
http.conf
ErrorLog "F:/data/apache/logs/localhost.www.cytxl.com.cn-error.log"
正确的日志查找顺序从上之下
页面显示出来的错误信息
php.ini指定的日志文件
php代码日志处理指定记录异常、错误的日志文件
apache服务器指定记录错误的日志文件
php.ini指定的日志文件
php代码日志处理指定记录异常、错误的日志文件
apache服务器指定记录错误的日志文件