linux下查看php错误日志的位置的方法:可以通过执行【echo| php 2>&1 |grep -i error_log】命令查看错误日志的存放位置。通过php.ini来查看错误日志存放地址(推荐教程:linux视频教