]> git.koha-community.org Git - koha.git/commit
Bug 10646 - warn if mod_rewrite is not enabled
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 19 Nov 2013 03:19:12 +0000 (16:19 +1300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 18 Feb 2014 09:00:40 +0000 (10:00 +0100)
commit445437658d9f0281d6af9c424ff55859bcd1313b
treeb1c58895d723c9b40f28d4758b287be5e322b4b4
parent16e8985a9abe94a27ff0873edb84c6838900b4a5
Bug 10646 - warn if mod_rewrite is not enabled

Koha requires mod_rewrite. If it's not enabled in Apache, then
koha-create will now abort with a helpful error message. Also adds a
warning when not run as root to avoid confusing errors.

Test plan:
 * apply the patch
 * a2dismod rewrite
 * run koha-create without sudo, note the error about being root
 * run koha-create with sudo, note the error about rewrite
 * a2enmod rewrute
 * repeat test above, note that it works

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Works as expected.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit e4387c1de9738cf19eb4d78b620b92a03fe1b131)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/scripts/koha-create