【发布时间】:2011-06-21 12:46:20
【问题描述】:
我尝试过的:
php.ini
log_errors = On
error_log = /etc/httpd/logs/php_error.log
httpd.conf
php_value error_log /etc/httpd/logs/php_error.log
我已经尝试了这些不同的组合,停止并启动了 httpd 并验证了这些设置在 phpinfo() 中被识别,但它仍然会进入 apache error.log 文件。
如何从 httpd error.log 文件的单独文件中获取 php error_log() 输出?
PHP 5.3.5
服务器版本:Apache/2.2.3
谢谢
【问题讨论】:
-
奇怪,我尝试了这么多,但我也无法让它工作。 SELinux禁用,没有区别。 php.ini 中的完整或相对路径,没有区别。确保文件存在并且可由 apache 写入 - 没有区别。