From 60b70001fd59bed089dd78bec9a897ffd3916850 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Tue, 11 Mar 2014 10:01:19 -0400 Subject: [PATCH] Implemented apache module check and mod_authz_compat warning for OpenSuSE --- install/dist/lib/opensuse.lib.php | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/install/dist/lib/opensuse.lib.php b/install/dist/lib/opensuse.lib.php index d4cb7cf..6d792f0 100644 --- a/install/dist/lib/opensuse.lib.php +++ b/install/dist/lib/opensuse.lib.php @@ -29,7 +29,23 @@ */ class installer_dist extends installer_base { - + + public function __construct() { + //** check apache modules */ + $mods = getapachemodules(); + if(in_array('authz_compat', $mods, true)) { + swriteln($inst->lng(' WARNING! You are using mod_authz_compat.')); + swriteln($inst->lng(' Please make sure that your apache config uses the new auth syntax:')); + swriteln($inst->lng(' <Directory />')); + swriteln($inst->lng(' Options None')); + swriteln($inst->lng(' AllowOverride None')); + swriteln($inst->lng(' Require all denied')); + swriteln($inst->lng(' </Directory>'."\n")); + + swriteln($inst->lng(' If it uses the old syntax (deny from all) ISPConfig would fail to work.')); + } + } + public function configure_mailman($status = 'insert') { global $conf; -- Gitblit v1.9.1