install.php

  1. drupal
    1. 4.7 developer/hooks/install.php
    2. 5 install.php
    3. 5 developer/hooks/install.php
    4. 6 install.php
    5. 6 developer/hooks/install.php
    6. 7 install.php
    7. 8 core/install.php

Initiates a browser-based installation of Drupal.

Constants

NameDescription
DRUPAL_ROOTRoot directory of Drupal installation.
MAINTENANCE_MODEGlobal flag to indicate that site is in installation mode.

File

install.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Initiates a browser-based installation of Drupal.
  5. */
  6. /**
  7. * Root directory of Drupal installation.
  8. */
  9. define('DRUPAL_ROOT', getcwd());
  10. /**
  11. * Global flag to indicate that 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();
Login or register to post comments