Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 09:45:14 +0200
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        "John R. Owens" <jowens@ghiapet.homeip.net>
Cc:        apache@FreeBSD.org
Subject:   Re: make apache2 not making mod_cgi
Message-ID:  <20050730074514.GD12195@goofy.cultdeadsheep.org>
In-Reply-To: <42EAE006.2040806@ghiapet.homeip.net>
References:  <42EAE006.2040806@ghiapet.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--5gxpn/Q6ypwruk0T
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi John,

On Fri, Jul 29, 2005 at 09:03:50PM -0500, John R. Owens wrote:
> First asked over in FreeBSD-Stable, until I realized that was the wrong
> place for it. Then at FreeBSD-Ports, until I fgured there was an even
> more specific place for it.
>=20
> I'm new to FreeBSD and ports, and don't know make well yet, so this
> could just be something I messed up on my own, redoing the ports tree
> and all. But the first couple of times I remade apache2, I got a
> mod_cgi.so installed. Now, the past couple of times I've remade it
> (perhaps since Wednesday or so?), it's making all the modules I want
> except mod_cgi. I've cvsup'ed a couple of times since then, and I've got
> WITH_MISC_MODULES=3Dyes, but in config.log I find this:
>   $ ./configure --prefix=3D/usr/local --enable-layout=3DFreeBSD
> --with-perl=3D/usr/local/bin/perl5.8.7 --with-port=3D80
> --with-expat=3D/usr/local --with-iconv=3D/usr/local
> --libdir=3D/usr/local/lib/apache2 --includedir=3D/usr/local/include/apach=
e2
> --enable-v4-mapped
> <snip a bit of irrelevant modules etc.
> --disable-autoindex --disable-asis --disable-cgid --disable-cgi
> --disable-negotiation
> <snip>
> --enable-mods-shared=3Daccess auth auth_anon auth_dbm auth_digest dav
> dav_fs ldap auth_ldap actions alias asis autoindex cache cern_meta
> charset_lite deflate dir disk_cache env expires file_cache headers imap
> include info log_config logio mime mime_magic negotiation rewrite
> setenvif speling status unique_id userdir usertrack vhost_alias proxy
> proxy_connect proxy_ftp proxy_http ssl suexec cgid suexec
> --with-mpm=3Dworker i386-portbld-freebsd5.4 --prefix=3D/usr/local
> i386-portbld-freebsd5.4
>=20
> Note that in --enable-mods-shared, the rest of the MISC category is
> included, except cgi. I also find these lines in Makefile.modules that
> might be relevant (since I'm not familiar with make syntax, I'm not sure
> under what conditions these lines will be active):
> WITHOUT_MODULES+=3D   cgi
> ...
> MISC_MODULES=3D       actions alias asis autoindex cache cern_meta \
>                 cgi charset_lite deflate dir disk_cache env expires \
>                 file_cache headers imap include info log_config logio mim=
e \
>                 mime_magic negotiation rewrite setenvif speling status \
>                 unique_id userdir usertrack vhost_alias
>=20
> So, if it's not actually broken in the port, how do I fix it so it
> installs mod_cgi on my system? Even if it is just a dirty hack to inject
> the option into a Makefile or configure. If it's broken in the port, of
> course, that should probably be fixed!
>=20
> I ran make in script, and found this amongst the output:
> ...
> checking whether to enable mod_suexec... checking dependencies
> checking whether to enable mod_suexec... shared
> checking whether to enable mod_cgid... shared
> checking whether to enable mod_cgi... no
> checking for pthread_kill... no
> checking whether to enable mod_dav_fs... shared
> checking whether to enable mod_vhost_alias... shared
> ....
>=20
> but I suppose that should be fairly evident from the config.log.
>=20
> Since the time I posted this to the stable list, I've done make
> rmconfig, make clean, and when that didn't cut it, I did (in order) rm
> -rf /usr/ports/*, sysinstall, cvsup ports-supfile, portmanager -u, make
> deinstall/reinstall, just to be on the safe side. I still get no mod_cgi
> when including WITH_MISC_MODULES.


You're trying to use mod_cgi with a threaded MPM (worker). According=20
to mod_cgi documentation (http://httpd.apache.org/docs/2.0/mod/mod_cgi.html=
):

"When using a multi-threaded MPM under unix, the module mod_cgid=20
should be used in place of this module. At the user level, the two modules=
=20
are essentially identical."

apache2 ports just do the job for you.

clem

--5gxpn/Q6ypwruk0T
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFC6zAKsRhfjwcjuh0RAthlAJ4yUys5efZd3vuAerjLug+Ez810jwCgtWy5
foVkhmqxa7HC4ZbrmaqJfVM=
=x7IX
-----END PGP SIGNATURE-----

--5gxpn/Q6ypwruk0T--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050730074514.GD12195>