What I’ve tried:
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
I’ve tried these in different combinations, stopped and started httpd and verified that these settings are recognized in phpinfo(), but it all still goes to the apache error.log file.
How can I get php error_log() output in a separate file from the httpd error.log file?
PHP 5.3.5
Server version: Apache/2.2.3
Thanks
Source: http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
try to change the the log directory to e.g.
/var/log/php/my_php_errors.logmake sure the folder exists:
/etc/...is usually used not for logging use some folder/file in/var/log/...instead