Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

In your php.ini you must also set

display_errors = Off
log_errors = true

Then restart your webserver.

share|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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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