diff --git a/core/install.php b/core/install.php
index 5940fbeb..06b0f99 100644
--- a/core/install.php
+++ b/core/install.php
@@ -7,6 +7,8 @@
 
 // Change the directory to the Drupal root.
 chdir('..');
+// Store the Drupal root path.
+$root_path = realpath('');
 
 /**
  * Global flag to indicate the site is in installation mode.
@@ -27,6 +29,6 @@
 }
 
 // Start the installer.
-$class_loader = require_once 'autoload.php';
-require_once __DIR__ . '/includes/install.core.inc';
+$class_loader = require_once $root_path . '/autoload.php';
+require_once $root_path . '/core/includes/install.core.inc';
 install_drupal($class_loader);
