From eb3d5955de86a7a7ca7c7809672784a9dd80415b Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Tue, 23 Aug 2016 01:57:21 -0300 Subject: [PATCH] Look for .htaccess only on Apache or LiteSpeed Doesn't make any sense to look for a .htaccess file if bludit is running on other web server that isn't Apache or Litespeed. I've just placed a small verification to not generate errors if you try to install it using Nginx, for example, and the .htaccess file isn't in place.( --- install.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.php b/install.php index ab9b56f8..6b7be3fe 100644 --- a/install.php +++ b/install.php @@ -189,9 +189,8 @@ function checkSystem() if(function_exists('get_loaded_extensions')) { $phpModules = get_loaded_extensions(); } - - if(!file_exists(PATH_ROOT.'.htaccess')) - { + + if ((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);