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

error-logging, php

Solution

try:

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

at the top of the file.

Problem

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.

Original source