diff --git a/install.php b/install.php index 6b7be3fe..7e9553bd 100644 --- a/install.php +++ b/install.php @@ -190,7 +190,7 @@ function checkSystem() $phpModules = get_loaded_extensions(); } - if ((stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) && !file_exists(PATH_ROOT.'.htaccess')) { + if (array_key_exists('SERVER_SOFTWARE', $_SERVER) && ((stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) && !file_exists(PATH_ROOT.'.htaccess'))) { $errorText = 'Missing file, upload the file .htaccess (ERR_201)'; error_log($errorText, 0);