apache托管php错误日志

[root@izbp18dv3a3metugyd02qxz ~]# cat /etc/httpd/conf/httpd.conf | grep -i 'LogLevel'
# LogLevel: Control the number of messages logged to the error_log.
LogLevel warn
[root@izbp18dv3a3metugyd02qxz ~]# php -r "phpinfo()" | grep -i 'error_log'
PHP Parse error:  syntax error, unexpected end of file in Command line code on line 1
[root@izbp18dv3a3metugyd02qxz ~]# php -r "phpinfo();" | grep -i 'error_log'
error_log => no value => no value
opcache.error_log => no value => no value
[root@izbp18dv3a3metugyd02qxz ~]# php -r "phpinfo();" | grep -i 'log_errors'
log_errors => On => On
log_errors_max_len => 1024 => 1024

猜你喜欢

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