diff --git a/core/install.php b/core/install.php
index 7152fd812b02..b12947a618d4 100644
--- a/core/install.php
+++ b/core/install.php
@@ -36,6 +36,12 @@ if (ini_get('safe_mode')) {
exit;
}
+// Exit early if the PHP option open_basedir is enabled to avoid fatal errors.
+if (ini_get('open_basedir')) {
+ print 'Your PHP installation has open_basedir enabled. Drupal currently requires the open_basedir option to be turned off. See the PHP manual for details of how to do this. This issue is currently under discussion at drupal.org.';
+ exit;
+}
+
// Start the installer.
require_once __DIR__ . '/includes/install.core.inc';
install_drupal();