php config on production servers should have the following directives set to

display_errors = off
log_errors = on
error_log = /your/full/path/html/error.log