Der Installer wurde bereits ausgeführt.
Wenn Sie den Installationsvorgang erneut ausführen möchten, löschen Sie die Datei recovery/install/data/install.lock!
';
echo 'The installation process has already been finished.
If you want to run the installation process again, delete the file recovery/install/data/install.lock!';
exit;
}
// Check the minimum required php version
if (PHP_VERSION_ID < 70200) {
header('Content-type: text/html; charset=utf-8', true, 503);
echo 'Fehler
';
echo 'Auf Ihrem Server läuft PHP version ' . PHP_VERSION . ', Shopware 5 benötigt mindestens PHP 7.2.0.';
echo 'Error
';
echo 'Your server is running PHP version ' . PHP_VERSION . ' but Shopware 5 requires at least PHP 7.2.0.';
exit;
}
require_once __DIR__ . '/../common/autoload.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
ini_set('display_errors', 1);
date_default_timezone_set('UTC');
set_time_limit(0);
use Shopware\Recovery\Install\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
if (PHP_SAPI === 'cli') {
$input = new ArgvInput();
$env = $input->getParameterOption(['--env', '-e'], 'production');
$application = new Application($env);
return $application->run($input);
}
//the execution time will be increased, because the import can take a while
ini_set('max_execution_time', 120);
// Redirect to no mod rewrite path
if (!isset($_SERVER['MOD_REWRITE']) && isset($_SERVER['SCRIPT_NAME']) && isset($_SERVER['REQUEST_URI'])) {
if (empty($_SERVER['PATH_INFO']) && strpos($_SERVER['REQUEST_URI'], $_SERVER['SCRIPT_NAME']) !== 0) {
header('Location: ' . $_SERVER['SCRIPT_NAME'], true);
return;
}
}
$app = require __DIR__ . '/src/app.php';
$app->run();