diff --git a/setup/permissions-test-folder/.htaccess b/setup/permissions-test-folder/.htaccess
new file mode 100644
index 000000000..782472c78
--- /dev/null
+++ b/setup/permissions-test-folder/.htaccess
@@ -0,0 +1,13 @@
+# Apache 2.4
+
+Require all denied
+
+
+# Apache 2.2
+
+deny from all
+Satisfy All
+
+
+# Apache 2.2 and 2.4
+IndexIgnore *
diff --git a/setup/permissions-test-folder/permissions-test-subfolder/permissions-test-file b/setup/permissions-test-folder/permissions-test-subfolder/permissions-test-file
new file mode 100644
index 000000000..e69de29bb
diff --git a/setup/permissions-test-folder/web.config b/setup/permissions-test-folder/web.config
new file mode 100644
index 000000000..58c9c3ac3
--- /dev/null
+++ b/setup/permissions-test-folder/web.config
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/setup/setup.js b/setup/setup.js
index bdec79eea..0556d9c71 100644
--- a/setup/setup.js
+++ b/setup/setup.js
@@ -53,4 +53,17 @@ function ExecuteStep(sStep)
} );
}
+function CheckDirectoryConfFilesPermissions(sWikiVersion){
+ $.ajax('permissions-test-folder/permissions-test-subfolder/permissions-test-file',
+ {
+ statusCode: {
+ 200: function() {
+ $('#details').prepend('
Security issue: iTop is bundled with directory-level configuration files. You must check that those files will be read by your web server (eg. ' +
+ 'AllowOverride directive should be set to All for Apache HTTP Server) see documentation.
');
+ $(' and 1 Security issue').insertBefore('h2.message button:first');
+ }
+ }
+ });
+}
+
CombodoTooltip.InitAllNonInstantiatedTooltips();
\ No newline at end of file
diff --git a/setup/wizardsteps.class.inc.php b/setup/wizardsteps.class.inc.php
index eb4cba961..dcaa4c13a 100644
--- a/setup/wizardsteps.class.inc.php
+++ b/setup/wizardsteps.class.inc.php
@@ -165,6 +165,7 @@ HTML
$oPage->p('Sorry, the installation cannot continue. Please fix the errors and reload this page to launch the installation again.');
$oPage->p('');
}
+ $oPage->add_ready_script('CheckDirectoryConfFilesPermissions("'.utils::GetItopVersionWikiSyntax().'")');
}
public function CanMoveForward()