Latest stable mod_php doesn't auto configures for latest apache-1.3.33-r12 due to changed apache config layout. storm ~ # ebuild /usr/portage/dev-php/mod_php/mod_php-4.4.0-r3.ebuild config * Due to some previous bloopers with PHP and slotting, you may have * multiple instances of mod_php installed. Please look at the autoclean * output at the end of the emerge and unmerge all but relevant * instances. /usr/portage/dev-php/mod_php/mod_php-4.4.0-r3.ebuild: line 224: //usr/sbin/ apacheaddmod: No such file or directory storm ~ # emerge -pv apache mod_php These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-www/apache-1.3.33-r12 -apache2 -doc -lingerd -no-suexec +pam (-selinux) +ssl -static-modules 0 kB [ebuild R ] dev-php/mod_php-4.4.0-r3 +X -apache2 +berkdb +crypt +curl - debug -doc -fdftk -firebird -flash -freetds +gd -gd-external +gdbm -gmp - hardenedphp -imap -informix -ipv6 +java* +jpeg -kerberos -ldap -mcal -memlimit - mssql +mysql +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB Reproducible: Always Steps to Reproduce: 1. emerge =apache-1.3.33-r12 mod_php 2. 3. Expected Results: mod_php ebuild correctly places correct conf file (with LoadModule apache directive) in /etc/apache/modules.d Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6. 12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) XP 2100+ 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -m3dnow -msse - mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /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="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -m3dnow -msse - mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" LINGUAS="ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apm arts avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups curl dvd dvdr eds emboss encode fam foomaticdb fortran gd gdbm geoip gif gpm gstreamer gtk2 guile iconv icq imlib java jpeg kde kdexdeltas libg++ libwww mad mikmod mmx motif mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sdl slang spell sse ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv xvid zlib linguas_ru userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
*** This bug has been marked as a duplicate of 106557 ***
Created attachment 68857 [details] Proposed simple /etc/apache/modules.d/mod_php.conf Modification to mod_php.conf to add LoadModule and DirectoryIndex apache directives.
(In reply to comment #2) > Created an attachment (id=68857) [edit] > Proposed simple /etc/apache/modules.d/mod_php.conf > > Modification to mod_php.conf to add LoadModule and DirectoryIndex apache > directives. Uhm, you misunderstood the issue, it's missing /usr/sbin/apacheaddmod that breaks the ebuild config phase (see the other bug).
(In reply to comment #3) > Uhm, you misunderstood the issue, it's missing /usr/sbin/apacheaddmod that > breaks the ebuild config phase (see the other bug). Yes, thanks, I'm new to gentoo and portage system, but this worked for me as temporary hack-fix :P