check mod_rewrite module

This commit is contained in:
floppy0 2018-03-02 16:03:00 +01:00
parent 0995fc8eea
commit 40800414cb

View File

@ -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);