0

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

2 Answers 2

0

In your php.ini you must also set

display_errors = Off
log_errors = true

Then restart your webserver.

2
  • I have log_errors = true
    – Gatura
    Feb 25, 2011 at 8:34
  • and display_errors?
    – keatch
    Feb 25, 2011 at 8:36
-1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .