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


In your php.ini you must also set

display_errors = Off
log_errors = true

Then restart your webserver.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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