apache: Use cgid module instead of cgi

Trying to enable cgi module results in cgid being enabled. Checking for cgi
being enabled always results in failure.

Your MPM seems to be threaded. Selecting cgid instead of cgi.
Module cgid already enabled

No module matches cgi (disabled by site administrator)

This is the reason why installing ikiwiki was causing Apache restart even though
the modules required by ikiwiki are already enabled.

Closes: #1448.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-02-26 19:01:37 -08:00 committed by James Valleroy
parent 3af207a4e8
commit 7bdf47eea2
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -139,7 +139,8 @@ def subcommand_setup(arguments):
# enable some critical modules to avoid restart while installing
# FreedomBox applications.
webserver.enable('cgi', kind='module')
webserver.disable('cgi', kind='module') # For process MPMs
webserver.enable('cgid', kind='module') # For threaded MPMs
webserver.enable('proxy_uwsgi', kind='module')
webserver.enable('proxy_wstunnel', kind='module')