On Fri, Oct 23, 2015 at 07:20:43PM +0200, Alessandro DE LAURENZIS wrote:
> Dear misc@ reader,
>
> I've just upgraded my home server to 5.8, so I switched to apache 2.4
> (from 2.2); the problem is that my git server no longer works and the
> root cause seems to be that httpd2 with my current configuration (see [0])
> isn't able to run any cgi scripts.
>
> I noticed that the module mod_cgid.so (which, in my very limited
> understanding, should supersede the old mod_cgi.so when threaded MPM is
> used) is missing in /usr/local/lib/apache2 - Could it be the culprit?
>
> Any hints? Am I doing something very stupid?
>
> I would be glad to give further details, but please point me in the
> right direction, because I'm a bit lost.
>
You may try to build your own version with adding --enable-cgi in the
Makefile configure flags. It seems that even configure tells that
--enable-cgi is the default it seems it is not. Go figure...
Also mod_cgid.so should be built but seems to be missing. mod_cgid.so is
the module that should be used with the worker or event MPM.
So maybe try something like this diff.
--
:wq Claudio
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/apache-httpd/Makefile,v
retrieving revision 1.67
diff -u -p -r1.67 Makefile
--- Makefile 13 Sep 2015 12:37:49 -0000 1.67
+++ Makefile 23 Oct 2015 20:15:37 -0000
@@ -65,6 +65,7 @@ CONFIGURE_ARGS= --enable-layout=OpenBSD
--enable-disk-cache \
--enable-proxy=shared \
--enable-mods-shared=all \
+ --enable-cgi \
--enable-suexec \
--with-suexec-caller=www \
--with-suexec-bin=${TRUEPREFIX}/sbin/suexec2 \
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/www/apache-httpd/pkg/PLIST-main,v
retrieving revision 1.6
diff -u -p -r1.6 PLIST-main
--- pkg/PLIST-main 13 Sep 2015 12:37:49 -0000 1.6
+++ pkg/PLIST-main 23 Oct 2015 20:33:37 -0000
@@ -98,7 +98,8 @@ lib/apache2/mod_buffer.so
lib/apache2/mod_cache.so
lib/apache2/mod_cache_disk.so
lib/apache2/mod_cache_socache.so
-@comment lib/apache2/mod_cgid.so
+lib/apache2/mod_cgi.so
+lib/apache2/mod_cgid.so
lib/apache2/mod_charset_lite.so
lib/apache2/mod_data.so
lib/apache2/mod_dav.so