标签云

微信群

扫码加入我们

WeChat QR Code


That's the apache error log, which is separate to the PHP error log (see other comments)

2019年01月23日42分19秒

php's error log defaults to apache's error log.

2019年01月23日42分19秒

relative to what? the directory of the httpd.conf it's written in, or?

2019年01月23日42分19秒

how could this be voted as the best answer ?

2019年01月23日42分19秒

Depending on your config, you may need to manually create the log file and set the owner/group to the same user/group that Apache is using. Apache won't warn you if it can't write to the log file.

2019年01月23日42分19秒

Note that the "error_reporting" value changes with new versions of PHP as they add more error levels. E_ALL = "30719" right now.

2019年01月23日42分19秒

Since "error_reporting" values keep changing and since you can't use PHP constants like "E_ALL" and "E_STRICT" outside of php, this is how you ensure you always have ALL errors logged: php_value error_reporting 2147483647

2019年01月23日42分19秒

Why would you want your log in your public domain space?

2019年01月23日42分19秒

The log file wouldn't be public. /html/ is the public space.

2019年01月23日42分19秒

Can anyone comment on the difference between php_admin_value and php_value?

2019年01月23日42分19秒

This explains the difference: mattiasgeniar.be/2012/02/18/…

2019年01月23日42分19秒

I will check. I just wonder if it is possible to still have apache and php error log separate when we want to give developers a chance to debug their code without giving them the apache error log which might contain other sensitive data.

2019年01月23日42分19秒

Interesting. Does this behavior depend on the path of the error_log file?

2019年01月23日42分19秒

We're talking about the PHP log, not the Apache log here.

2019年01月23日42分19秒