Page 1 of 1

Enable PHP logger in Mageia 3 64 bits

PostPosted: Sep 6th, '13, 19:59
by jemartins
Hi,

I am trying enable PHP logger. I made some changes in /etc/php.ini following all I could found in google.

That is what I changed in /etc/php.ini:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
track_errors = Off
html_errors = Off
error_log = "/var/log/httpd/php_errors.log"


It don't works and /var/log/httpd/php_errors.log is empty using
Code: Select all
tail -f /var/log/httpd/php_errors.log


Have someone the solution for this problem?

---
Eduardo

Re: Enable PHP logger in Mageia 3 64 bits

PostPosted: Sep 6th, '13, 21:16
by djennings
Is the log file writable by apache?

Re: Enable PHP logger in Mageia 3 64 bits

PostPosted: Sep 6th, '13, 21:21
by jemartins
Yes, it is.

$ ls -l /var/log/httpd/php_errors.log
-rw-r--r-- 1 apache apache 256 Set 6 13:38 /var/log/httpd/php_errors.log