Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.