View | Details | Raw Unified | Return to bug 25480
Collapse All | Expand All

(-)a/debian/scripts/koha-create (-7 / +6 lines)
Lines 151-166 check_apache_config() Link Here
151
{
151
{
152
152
153
    # Check that mpm_itk is installed and enabled
153
    # Check that mpm_itk is installed and enabled
154
    if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q 'mpm_itk'; then
154
    if ! /usr/sbin/apachectl -M | grep -q 'mpm_itk'; then
155
        # Check Apache version
155
        # Check Apache version
156
        APACHE_DISABLE_MPM_MSG=""
156
        APACHE_DISABLE_MPM_MSG=""
157
        if /usr/sbin/apache2ctl -v | grep -q "Server version: Apache/2.4"; then
157
        if /usr/sbin/apache2ctl -v | grep -q "Server version: Apache/2.4"; then
158
            # mpm_event or mpm_worker need to be disabled first. mpm_itk depends
158
            # mpm_event or mpm_worker need to be disabled first. mpm_itk depends
159
            # on mpm_prefork, which is enabled if needed. See
159
            # on mpm_prefork, which is enabled if needed. See
160
            # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734865
160
            # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734865
161
            if /usr/sbin/apachectl -M 2> /dev/null | grep -q 'mpm_event'; then
161
            if /usr/sbin/apachectl -M | grep -q 'mpm_event'; then
162
                APACHE_DISABLE_MPM_MSG=" sudo a2dismod mpm_event ;"
162
                APACHE_DISABLE_MPM_MSG=" sudo a2dismod mpm_event ;"
163
            elif /usr/sbin/apachectl -M 2> /dev/null | grep -q 'mpm_worker'; then
163
            elif /usr/sbin/apachectl -M | grep -q 'mpm_worker'; then
164
                APACHE_DISABLE_MPM_MSG=" sudo a2dismod mpm_worker ;"
164
                APACHE_DISABLE_MPM_MSG=" sudo a2dismod mpm_worker ;"
165
            # else mpm_prefork: a2enmod mpm_itk works
165
            # else mpm_prefork: a2enmod mpm_itk works
166
            fi
166
            fi
Lines 179-185 EOM Link Here
179
    fi
179
    fi
180
180
181
    # Check that mod_rewrite is installed and enabled.
181
    # Check that mod_rewrite is installed and enabled.
182
    if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q 'rewrite_module'; then
182
    if ! /usr/sbin/apachectl -M | grep -q 'rewrite_module'; then
183
        cat 1>&2  <<EOM
183
        cat 1>&2  <<EOM
184
184
185
Koha requires mod_rewrite to be enabled within Apache in order to run.
185
Koha requires mod_rewrite to be enabled within Apache in order to run.
Lines 192-198 EOM Link Here
192
192
193
    # Check that the CGI module is installed and enabled
193
    # Check that the CGI module is installed and enabled
194
    # (Apache 2.4 may not have it by default.)
194
    # (Apache 2.4 may not have it by default.)
195
    if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q 'cgi_module'; then
195
    if ! /usr/sbin/apachectl -M | grep -q 'cgi_module'; then
196
        cat 1>&2 << EOM
196
        cat 1>&2 << EOM
197
Koha requires mod_cgi to be enabled within Apache in order to run.
197
Koha requires mod_cgi to be enabled within Apache in order to run.
198
Typically this can be enabled with:
198
Typically this can be enabled with:
Lines 204-210 EOM Link Here
204
204
205
    # Check that mod_ssl is installed and enabled.
205
    # Check that mod_ssl is installed and enabled.
206
    if [ "$CLO_LETSENCRYPT" = "yes" ]; then
206
    if [ "$CLO_LETSENCRYPT" = "yes" ]; then
207
        if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q 'ssl_module'; then
207
        if ! /usr/sbin/apachectl -M | grep -q 'ssl_module'; then
208
            cat 1>&2  <<EOM
208
            cat 1>&2  <<EOM
209
209
210
Koha requires mod_ssl to be enabled within Apache in order to run with --letsencrypt.
210
Koha requires mod_ssl to be enabled within Apache in order to run with --letsencrypt.
211
- 

Return to bug 25480