Today I upgraded apache-2.2.0 to apache-2.2.0-r1. I had a working installation with mod_proxy_ajp. But after this upgrade the mod_proxy_ajp is not compiled anymore. I tried a reemerge as it was necessary with the previous version. The module is enabled with mod_proxy_ajp shared. Any ideas? Portage 2.1_pre5-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.6-r2, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 Intel(R) Xeon(TM) CPU 1.80GHz Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://mirror.pudas.net/gentoo ftp://ftp.uninett.no/pub/linux/Gentoo ftp://trumpetti.atm.tut.fi/gentoo/ http://212.219.247.13/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://gentoo.ub.uu.se/gentoo-portage" USE="x86 X apache2 apm avi berkdb bitmap-fonts crypt eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer imlib ipv6 jce jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis pam pdflib perl png python quicktime readline spell sse sse2 ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
A downgrade to apache-2.2.0 helped to resolve this issue.
Please clarify... did the issue disappear, or did you work around it? If you can reproduce the issue, please attach the contents of /etc/apache2/apache2-builtin-mods The previous ebuild (2.2.0) did not correctly parse apache2-builtin-mods, so I suspect it may have gotten the mod_proxy_ajp from the 2.0 compatible version of the file (and so your server would not have a correct set of modules). 2.2.0-r1 now correctly parses the file (a version check was the issue) and so if you had a non-compatible version of the file it would use the default instead of the custom one in /etc/apache2.
The problem disappeared. On this server has never been an apache installation before. When I did the fresh install of apache 2.2.0 I had to change apache2-builtin-mods afterwards and reemerge apache 2.2.0. All was working well. Then I upgraded to 2.2.0-r1 and the mod_proxy_ajp disappeared. I could see in the build logfile that apache was configured with --disable-mod-proxy-ajp (I can't remember the exact syntax). Here is the content of my /etc/apache2/apache2-builtin-mods # Examples: # mod_access shared ( this would build a DSO ) # mod_actions static ( this would get compiled statically ) # mod_alias disabled ( this module would not be built at all ) # # Also new with 2.2, any shared modules defined in this file will have # LoadModule lines placed in the configuration for them. # # WARNING: Edit this file at your own risk! Some modules depend on other # modules being enabled as well - make sure you have everything satisfied, or # your apache may not compile or work correctly. VERSION: 2.2 mod_actions shared mod_alias shared mod_asis disabled mod_auth_basic shared mod_auth_digest shared mod_authn_alias disabled mod_authn_anon shared mod_authn_dbd shared mod_authn_dbm shared mod_authn_default shared mod_authn_file shared #mod_authnz_ldap disabled # enable via USE-flag mod_authz_dbm shared mod_authz_default shared mod_authz_groupfile shared mod_authz_host shared mod_authz_owner shared mod_authz_user shared mod_autoindex shared mod_cache shared mod_cern_meta disabled mod_cgi shared mod_cgid shared mod_charset_lite disabled mod_dav shared mod_dav_fs shared mod_dav_lock shared mod_dbd shared mod_deflate shared mod_dir shared mod_disk_cache shared mod_dumpio disabled mod_echo disabled mod_env shared mod_example disabled mod_expires shared mod_ext_filter shared mod_file_cache shared mod_filter shared mod_headers shared mod_ident shared mod_imagemap shared mod_include shared mod_info shared #mod_ldap disabled # enable via USE-flag mod_log_config shared mod_log_forensic disabled mod_logio shared mod_mem_cache shared mod_mime shared mod_mime_magic shared mod_negotiation shared mod_proxy shared mod_proxy_ajp sharedmod_proxy_balancer disabled mod_proxy_connect shared mod_proxy_ftp disabled mod_proxy_http shared mod_rewrite shared mod_setenvif shared mod_so static mod_speling shared #mod_ssl disabled # enable via USE-flag mod_status shared #mod_suexec disabled # disable via USE-flag mod_unique_id shared mod_userdir shared mod_usertrack shared mod_version disabled mod_vhost_alias shared
mod_proxy_ajp sharedmod_proxy_balancer disabled it looks like you are missing a newline after shared on the above line, assuming it wasn't an error in copy any paste. check your file to make sure the newline is there and rebuild apache 2.2.0-r1.
It was en error in copy and paste. Sorry for that.
I installed the 2.2.0-r2 version on another computer which haven't got any apache installation on it before. I updated /etc/apache2/apache2-builtin-mods to use mod_proxy_ajp shared. But apache is configured with the following options: * Rebuilding configure * Using GNU config files from /usr/share/libtool * Using /var/tmp/portage/apache-2.2.0-r2/work/gentoo-apache-2.2.0-r2/conf/apache2-builtin-mods * options: --enable-actions=shared --enable-alias=shared --disable-asis --enable-auth_basic=shared --enable-auth_digest=shared --disable-authn_alias --enable-authn_anon=shared --enable-authn_dbd=shared --en able-authn_dbm=shared --enable-authn_default=shared --enable-authn_file=shared --enable-authz_dbm=shared --enable-authz_default=shared --enable-authz_groupfile=shared --enable-authz_host=shared --enable-authz _owner=shared --enable-authz_user=shared --enable-autoindex=shared --enable-cache=shared --disable-cern_meta --enable-cgi=shared --enable-cgid=shared --disable-charset_lite --enable-dav=shared --enable-dav_fs =shared --enable-dav_lock=shared --enable-dbd=shared --enable-deflate=shared --enable-dir=shared --enable-disk_cache=shared --disable-dumpio --disable-echo --enable-env=shared --disable-example --enable-expir es=shared --enable-ext_filter=shared --enable-file_cache=shared --enable-filter=shared --enable-headers=shared --enable-ident=shared --enable-imagemap=shared --enable-include=shared --enable-info=shared --ena ble-log_config=shared --disable-log_forensic --enable-logio=shared --enable-mem_cache=shared --enable-mime=shared --enable-mime_magic=shared --enable-negotiation=shared --enable-proxy=shared --disable-proxy_a jp --disable-proxy_balancer --enable-proxy_connect=shared --disable-proxy_ftp --enable-proxy_http=shared --enable-rewrite=shared --enable-setenvif=shared --enable-so=yes --enable-speling=shared --enable-statu s=shared --enable-unique_id=shared --enable-userdir=shared --enable-usertrack=shared --disable-version --enable-vhost_alias=shared * LoadModules: actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ht tp rewrite setenvif speling status unique_id userdir usertrack vhost_alias As you can see mod_proxy_ajp is disabled Cheers Uwe
Name the file /etc/apache2/apache2-builtin-mods-2.2 and it should work. (The ebuild now installs the default apache2-builtin-mods in the correct location - it didn't before, so it always used the default instead of the custom one.) This is fixed in 2.2.0-r2, without a revision bump. emerge --sync and then rebuild apache for your changes to take effect. Please re-open this bug if you run into this again. Thanks!