install.php 688 B

1234567891011121314151617181920212223242526
  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();