How do I display details of a PHP internal server error?

tpower picture tpower · Nov 17, 2009 · Viewed 13.9k times · Source

I have installed a PHP application onto a shared hosting web server. I am getting a 500 Internal Server Error. I don't seem to have access to any log files so I would like the error page to temporarily give details of the error.

Answer

Jeremy Morgan picture Jeremy Morgan · Nov 17, 2009

try:

error_reporting(E_ALL);
ini_set('display_errors', '1');

at the top of the file.