projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7181de4
)
Bug 12439 - check that CGI is enabled when doing koha-create
author
Robin Sheat
<robin@catalyst.net.nz>
Wed, 18 Jun 2014 02:05:48 +0000
(14:05 +1200)
committer
Tomas Cohen Arazi
<tomascohen@gmail.com>
Wed, 18 Jun 2014 14:40:53 +0000
(11:40 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Works as expected.
debian/scripts/koha-create
patch
|
blob
|
history
diff --git
a/debian/scripts/koha-create
b/debian/scripts/koha-create
index
14a6a45
..
841ef86
100755
(executable)
--- 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()