Magento supports PHP 5.3.0 or newer. Find out how to install Magento using PHP-CGI as a work-around.
'; exit; } /** * Compilation includes configuration file */ define('MAGENTO_ROOT', getcwd()); $compilerConfig = MAGENTO_ROOT . '/includes/config.php'; if (file_exists($compilerConfig)) { include $compilerConfig; } $mageFilename = MAGENTO_ROOT . '/app/Mage.php'; $maintenanceFile = 'maintenance_dk.html'; if (!file_exists($mageFilename)) { if (is_dir('downloader')) { header("Location: downloader"); } else { echo $mageFilename." was not found"; } exit; } $ip = $_SERVER['REMOTE_ADDR']; $allowed = ['185.15.74.89']; if (file_exists($maintenanceFile) && !in_array($ip, $allowed)) { // include_once dirname(__FILE__) . '/errors/503.php'; include_once dirname(__FILE__) . '/maintenance_dk.html'; exit; } require MAGENTO_ROOT . '/app/bootstrap.php'; require_once $mageFilename; #Varien_Profiler::enable(); if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } #ini_set('display_errors', 1); umask(0); /* Store or website code */ $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : ''; /* Run store or run website */ $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store'; Mage::run($mageRunCode, $mageRunType);