Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 915
tpower Avatar asked Nov 17 '09 20:11

tpower


1 Answers

try:

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

at the top of the file.

like image 69
Jeremy Morgan Avatar answered Oct 21 '22 04:10

Jeremy Morgan