Please test and stable mod_chroot-0.4 for new-style apache.
Tested on amd64 for apache-1.3.33-r12 Builds and loads. Sites are chrootable. Tests stable for amd64/apache-1.3 Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r9 x86_64) ================================================================= System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks multilib-strict sandbox sfperms strict test" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/etc/portage/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 alsa avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib ipv6 java jpeg libwww lzw lzw-tiff mp3 mpeg ncurses nls opengl pam pdflib perl png python quicktime readline sdl spell ssl tcpd tetex tiff truetype-fonts type1-fonts usb userlocales xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
builds and runs without problems and as expected on amd64 with: net-www/apache-2.0.54-r31 www-apache/mod_chroot-0.4
I get the errors below, trying to access /var/run, when trying to run apache2. Have I missed something? Perhaps it's because I'm not using the new style apache, but mod_chroot doesn't seem to require it. I've tried this with 0.4 and 0.5 (see bug 95910). [Tue Oct 25 09:28:02 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2) [Tue Oct 25 09:28:02 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 25 09:28:02 2005] [notice] Digest: done [Tue Oct 25 09:28:02 2005] [notice] mod_chroot: changed root to /var/www. [Tue Oct 25 09:28:02 2005] [error] (2)No such file or directory: Couldn't bind unix domain socket /var/run/cgisock [Tue Oct 25 09:28:02 2005] [error] (2)No such file or directory: could not create /var/run/apache2.pid [Tue Oct 25 09:28:02 2005] [error] apache2: could not log pid to file /var/run/apache2.pid
Ah, indeed, the answer to my problem lies in the documentation at http://core.segfault.pl/~hobbit/mod_chroot/apache20.htmlhttp://core.segfault.pl/~hobbit/mod_chroot/apache20.html.
Marked pcc stable.