Commit 052909b6 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1131404: checksetup.pl should check if mod_rewrite and mod_version are enabled

r=dkl a=glob
parent fe2e8f64
...@@ -49,6 +49,8 @@ use constant APACHE_MODULES => { ...@@ -49,6 +49,8 @@ use constant APACHE_MODULES => {
mod_headers => 'headers_module', mod_headers => 'headers_module',
mod_env => 'env_module', mod_env => 'env_module',
mod_expires => 'expires_module', mod_expires => 'expires_module',
mod_rewrite => 'rewrite_module',
mod_version => 'version_module'
}; };
# These are all of the binaries that we could possibly use that can # These are all of the binaries that we could possibly use that can
...@@ -512,7 +514,7 @@ sub _missing_apache_modules { ...@@ -512,7 +514,7 @@ sub _missing_apache_modules {
return []; return [];
} }
my @missing; my @missing;
foreach my $module (keys %$modules) { foreach my $module (sort keys %$modules) {
my $ok = _check_apache_module($module, $modules->{$module}, my $ok = _check_apache_module($module, $modules->{$module},
$cmd_info, $output); $cmd_info, $output);
push(@missing, $module) if !$ok; push(@missing, $module) if !$ok;
......
...@@ -286,12 +286,15 @@ EOT ...@@ -286,12 +286,15 @@ EOT
*********************************************************************** ***********************************************************************
* APACHE MODULES * * APACHE MODULES *
*********************************************************************** ***********************************************************************
* Normally, when Bugzilla is upgraded, all Bugzilla users have to * * Some Apache modules allow to extend Bugzilla functionalities. *
* clear their browser cache or Bugzilla will break. If you enable * * These modules can be enabled in the Apache configuration file *
* certain modules in your Apache configuration (usually called * * (usually called httpd.conf or apache2.conf). *
* httpd.conf or apache2.conf) then your users will not have to clear * * - mod_headers, mod_env and mod_expires permit to automatically *
* their caches when you upgrade Bugzilla. The modules you need to * * refresh the browser cache of your users when upgrading Bugzilla. *
* enable are: * * - mod_rewrite permits to write shorter URLs used by the REST API. *
* - mod_version permits to write rules in .htaccess specific to *
* Apache 2.2 or 2.4. *
* The modules you need to enable are: *
* * * *
END END
modules_message_db => <<EOT, modules_message_db => <<EOT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment