install.php 581 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Elgg install script
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. */
  8. // check for PHP < 5.4 before we do anything else
  9. if (version_compare(PHP_VERSION, '5.4.0', '<')) {
  10. echo "Your server's version of PHP (" . PHP_VERSION . ") is too old to run Elgg.\n";
  11. exit;
  12. }
  13. $autoload_path = __DIR__ . "/vendor/autoload.php";
  14. $autoload_available = include_once($autoload_path);
  15. if (!$autoload_available) {
  16. die("Couldn't include '$autoload_path'. Did you run `composer install`?");
  17. }
  18. $installer = new ElggInstaller();
  19. $step = get_input('step', 'welcome');
  20. $installer->run($step);