I'm familiar with the "not unstable as in does not work" idea - I'm running AMD64 on my production box. ^_^CHTEKK wrote:For mod_php to work with the new Apache releases, you need to use the unstable (4.4.0-r3) mod_php package, since it's the only one compatible with the new Apache config layout, but it's not unstable as in "does not work", it's the same as the stable mod_php package, just with changed configuration paths.
Best regards, CHTEKK.
Good, no problem.andrewd18 wrote:I'm familiar with the "not unstable as in does not work" idea - I'm running AMD64 on my production box. ^_^
I've got 4.4.0-r3 emerging now... thank you in advance.
What the heck does this mean?check the module's .conf for IfDefine and add the name to /etc/conf.d/apache{|2} to enable it.
Code: Select all
APACHE2_OPTS="-D PHP4"Code: Select all
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 1097 of /etc/apache2/httpd.conf:
Invalid command 'APACHE2_OPTS="-D', perhaps mis-spelled or defined by a module not included in the server configuration
Code: Select all
Define PHP4Code: Select all
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 1096 of /etc/apache2/httpd.conf:
Invalid command 'Define', perhaps mis-spelled or defined by a module not included in the server configuration
and add APACHE2_OPTS="-D PHP4" to /etc/conf.d/apache.confemerge =dev-php/mod_php-4.4.0-r3
ebuild /usr/portage/dev-php/mod_php/mod_php-4.4-0-r3.ebuild config
Code: Select all
APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D DOC -D PHP4"Other than the -D DOC one, that's exactly how my line reads. And it still wants to download the file.dtremblay wrote:You're supposed to put that option in /etc/conf.d/apache2
Mine saysCode: Select all
APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D DOC -D PHP4"
Very funny mine problem is nearly the same:zomps wrote:
but i have similar problem with virtual hosts
when i use http://vhost.host.com/ then downloads php file
and with http://vhost.host.com/index.php shows page
Edit: these are example urls, not real ones
Andrew... Uhmm I just visited your page, the welcome.php works perfectly, displaying a site with the Born To Frag Linux image in the middle.andrewd18 wrote:Doing a shift-click (force cache bypass) doesn't fix mine. Suggestions?
~~ Andrew D.

Code: Select all
checking for fopencookie... yes
configure: error: can not run test program while cross compiling
!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/mod_php-4.4.0-r3/work/php-4.4.0/config.log
!!! ERROR: dev-php/mod_php-4.4.0-r3 failed.
!!! Function econf, Line 496, Exitcode 0
!!! econf failed

Hi, CHTEKK, it's my /etc/make.conf:CHTEKK wrote:Hi, I've had a similar problem some time ago.
Please post the content of /etc/make.conf, so I may see if the problem is there.
Best regards, CHTEKK.
Code: Select all
USE="x86 -arts alsa 3dnow aalib apache2 crypt dvd encode flash fbcon -java jpeg -kde -gnome libg++ libwww mikmod mbox mmx mpeg ncurses nls nptl oggvorbis opengl pam pnp perl pdflib png python sasl samba sdl slang spell ssl svga sock5 -qtmt tiff tcpd truetype quicktime readline X xml2 xmms xv zlib"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
DISTDIR= /mnt/disk2/gentoo/distfiles/
GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT=180
FEATURES="fixpackages"
Code: Select all
# emerge --info
Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r2-yumi i686)
=================================================================
System uname: 2.6.13-gentoo-r2-yumi i686 Pentium II (Deschutes)
Gentoo Base System version 1.12.0_pre8
dev-lang/python: 2.3.5, 2.4.1-r1
sys-apps/sandbox: 1.2.13
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
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe"
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="-march=pentium2 -O3 -pipe"
DISTDIR="/mnt/disk2/gentoo/distfiles/"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="ru_RU.KOI8-R"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm avi berkdb bitmap-fonts crypt cups curl dvd eds emboss encode fam fbcon flash foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg ldap libg++ libwww mad mbox mikmod mmx motif mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png pnp python qt quicktime readline samba sasl sdl slang sock5 spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis x86 xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY