I am running mac 10.6.4 on an iMac and am using it as a developer server.

I have Apache and Entropy php5 installed, when i write my applications, some pages wont run when php has errors, however these are not recorded on a log file, I created one php_errors.log and entered the following on the php.ini file

error_log = /usr/local/php5/logs/php_errors.log

However errors are not written to this file and i have

log_errors = true

What could be the problem

link|improve this question

39% accept rate
feedback

2 Answers

In your php.ini you must also set

display_errors = Off
log_errors = true

Then restart your webserver.

link|improve this answer
I have log_errors = true – Gatura Feb 25 '11 at 8:34
and display_errors? – keatch Feb 25 '11 at 8:36
feedback

And if in script exist code like this error_reporting(0); than errors wouldn't be written to log file

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.