diff --git a/core/install.php b/core/install.php
index 12d998c75f7c8bb79b538bd42f771aa8d8068c72..156ff917a16dc2980a729ec1ea79dad14843fe6d 100644
--- a/core/install.php
+++ b/core/install.php
@@ -8,8 +8,6 @@
 // Change the directory to the Drupal root.
 chdir('..');
 
-require_once __DIR__ . '/vendor/autoload.php';
-
 /**
  * Global flag to indicate the site is in installation mode.
  *
@@ -29,5 +27,6 @@
 }
 
 // Start the installer.
+require_once __DIR__ . '/vendor/autoload.php';
 require_once __DIR__ . '/includes/install.core.inc';
 install_drupal();