apache22 build problem: cgi disabled

Kevin Kinsey kdk at daleco.biz
Wed Jul 28 21:24:52 UTC 2010


Michael W. Lucas wrote:
> Hi,
> 
> I'm running a July 26 -current/amd64, both ports and userland, and it
> seems that the newest apache22 doesn't build a lot of modules, such as
> mod_cgi, mod_cache, etc.
> 
> /var/db/ports/apache22/options includes (among other things):
> 
> WITH_CGI=true
> 
> make.conf defines only perl and sendmail.mc.
> 
> The port's config.log shows:
> 
>   $ ./configure --prefix=/usr/local --enable-layout=FreeBSD --with-perl=/usr/local/bin/perl5.8.9 --with-port=80 --with-expat=/usr/local --with-iconv=/usr/local --enable-http --with-pcre=/usr/local --with-apr=/usr/local/bin/apr-1-config --with-apr-util=/usr/local/bin/apu-1-config --disable-authn-file --disable-authn-default --disable-authz-host --disable-authz-groupfile --disable-authz-user --disable-authz-default --disable-auth-basic --disable-charset-lite --disable-include --disable-log-config --disable-env --disable-setenvif --disable-mime --disable-status --disable-autoindex --disable-asis --disable-cgid --disable-cgi --disable-negotiation --disable-dir --disable-imagemap --disable-actions --disable-userdir --disable-alias --disable-filter --disable-proxy --disable-proxy-connect --disable-proxy-ftp --disable-proxy-http --disable-proxy-ajp --disable-proxy-balancer --disable-proxy-scgi --disable-reqtimeout --enable-so --enable-mods-shared=auth_basic auth_digest authn_file 
authn_dbm authn_anon authn_default authn_alias authz_host authz_groupfile authz_user authz_dbm authz_owner authz_default disk_cache file_cache dav dav_fs actions alias asis autoindex cern_meta charset_lite deflate dir dumpio env expires headers imagemap include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias version reqtimeout proxy_connect ssl --with-dbm=sdbm --with-ssl=/usr --disable-ipv6 --with-devrandom --with-mpm=prefork --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd9.0
> 
> There's a --disable-cgi in there, but no cgi listed after
> --enable-mods.
> 
> So, my FreeBSD options are set to enable CGI, but they aren't making
> it down to the Apache build process.
> 
> Am I doing something daft here, or should I file a PR?
> 
> Thanks,
> ==ml

Not sure.  Try something like:

[12] Wed 28.Jul.2010 16:08:53 
[kadmin at archangel][~]
$cd /usr/ports/www/apache22 && sudo make show-modules | grep cgi
cgi: enabled (shared)
proxy_scgi: disabled
cgid: disabled

If "make show-modules" says "enabled" and the port still configures
with "--disable-cgi", I'd definitely contact the maintainer and
see what's up.

My $.02,

Kevin Kinsey


More information about the freebsd-questions mailing list