install.php

Initiates a browser-based installation of Drupal.

File

drupal/install.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Initiates a browser-based installation of Drupal.
  5. */
  6. /**
  7. * Defines the root directory of the Drupal installation.
  8. */
  9. define('DRUPAL_ROOT', getcwd());
  10. /**
  11. * Global flag to indicate the site is in installation mode.
  12. */
  13. define('MAINTENANCE_MODE', 'install');
  14. // Exit early if running an incompatible PHP version to avoid fatal errors.
  15. if (version_compare(PHP_VERSION, '5.2.4') < 0) {
  16. print 'Your PHP installation is too old. Drupal requires at least PHP 5.2.4. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.';
  17. exit;
  18. }
  19. // Start the installer.
  20. require_once DRUPAL_ROOT . '/includes/install.core.inc';
  21. install_drupal();

Constants

Namesort descending Description
DRUPAL_ROOT Defines the root directory of the Drupal installation.
MAINTENANCE_MODE Global flag to indicate the site is in installation mode.