From 7c3cd265100999bba4ea71cff3e04f39839abbc6 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 7 Feb 2011 20:55:33 -0800 Subject: [PATCH] Do an explicit check for MySQL install status. Summary: Test Plan: Reviewers: CC: --- webroot/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webroot/index.php b/webroot/index.php index 4058f14459..3ed1ef866a 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -28,6 +28,13 @@ if (!$env) { "is one of 'development', 'production', or a custom environment."); } +if (!function_exists('mysql_connect')) { + header('Content-Type: text/plain'); + die( + "CONFIG ERROR: ". + "the PHP MySQL extension is not installed. This extension is required."); +} + $conf = phabricator_read_config_file($env); $conf['phabricator.env'] = $env;