Try enabling debugging by adding the following lines to config.php:
@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
These should appear before the require_once(__DIR__ . '/lib/setup.php'); line at the end.
Hopefully the error will then have more detail to help troubleshoot the issue.