Add the following code to lines 2-3 below "<?php".
error_reporting( -1 );
ini_set( 'display_errors', 1 );
And add the following code below the code you just added.
$wgShowExceptionDetails = true ;
$wgShowDBErrorBacktrace = true ;
$wgShowSQLErrors = true ;