From 7bdf47eea202423fa5594ce41a35535ff0c06d5c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 26 Feb 2019 19:01:37 -0800 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- actions/apache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/apache b/actions/apache index 8028d6e8c..01f5e8e93 100755 --- a/actions/apache +++ b/actions/apache @@ -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')