From e1d59822f8cc4dfa553638383d0c31be9aec341b Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Wed, 18 Jun 2014 14:05:48 +1200 Subject: [PATCH] Bug 12439 - check that CGI is enabled when doing koha-create Signed-off-by: Tomas Cohen Arazi Works as expected. --- debian/scripts/koha-create | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 14a6a45e0e..841ef86143 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -168,6 +168,19 @@ Typically this can be enabled with: EOM die fi + + # Check that the CGI module is installed and enabled + # (Apache 2.4 may not have it by default.) + if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q 'cgi_module'; then + cat 1>&2 << EOM +Koha requires mod_cgi to be enabled within Apache in order to run. +Typically this can be enabled with: + + sudo a2enmod cgi +EOM + die + fi + } set_biblios_indexing_mode() -- 2.20.1