Hello, I am trying to diagnose a 500 error on my site, and I was wondering how I could enable 500 errors to either be displayed in the browser or logged in the error logs, preferably both. Thank you.

Accepted answer

Hi colbyat,

re display in the browser: the problem is that when a 500 occurs, this PHP process died before being able to render anything. So that won't work.

Logging is possible, but still won't provide much info - for the same reason (process died). Some info may be available in the webserver log, but usually only the triggering request.

Comments

indigoxela's picture

Hi colbyat,

re display in the browser: the problem is that when a 500 occurs, this PHP process died before being able to render anything. So that won't work.

Logging is possible, but still won't provide much info - for the same reason (process died). Some info may be available in the webserver log, but usually only the triggering request.