From 40800414cb7c48e05d57612175018ed71d210e93 Mon Sep 17 00:00:00 2001 From: floppy0 <31189947+floppy0@users.noreply.github.com> Date: Fri, 2 Mar 2018 16:03:00 +0100 Subject: [PATCH] check mod_rewrite module --- install.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install.php b/install.php index 35935ccb..0b5adbed 100644 --- a/install.php +++ b/install.php @@ -223,6 +223,18 @@ RewriteRule ^(.*) index.php [PT,L] } } + // Check mod_rewrite module + if (function_exists('apache_get_modules') ) { + if (!in_array('mod_rewrite', apache_get_modules())) { + $errorText = 'Module mod_rewrite is not installed or loaded.'; + error_log($errorText, 0); + + $tmp['title'] = 'Apache mod_rewrite module'; + $tmp['errorText'] = $errorText; + array_push($stdOut, $tmp); + } + } + // Try to create the directory content @mkdir(PATH_CONTENT, $dirpermissions, true);