It sounds dumb but... did you uncomment the line where -D PHP must be?
(i has having the same stuff than magnus... when i revised the
/etc/conf.d/apache2 i saw my error... and the simptoms where the same
than magnus descrieve)

Good look.

PS: as i see you need to add apache2 to use,export ACCEPT_KEYWORDS=~x86
(for getting the apache2 instead the apache "1");emerge apache2 ; emerge
mod_php; edit /etc/conf.d/apache2 uncoment the line 
#APACHE2_OPTS="-D SSL" 
and let it like 
APACHE2_OPTS="-D SSL -D PHP"

start apache2 and it should work. :)

On Tue, 2003-02-04 at 11:56, Luis Morales wrote:
> on apache.conf add:
> 
> LoadModule php4_module        extramodules/libphp4.so
> AddModule mod_php4.c
> Include  conf/addon-modules/mod_php.conf
> 
> and review your make .conf  USE parameters and made emerge mod_php
> 
> 
> LM
> 
> 
> Magnus Lie Hetland wrote:
> 
> >I'm trying to install Apache 2 and PHP together, and I'm having
> >trouble making Apache actually process my PHP documents with PHP -- it
> >simply returns them as-is with an application/x-httpd-php MIME type.
> >I've looked around and I haven't found anything directly helpful. I
> >guess that somehow PHP isn't getting loaded... I've added apache2 to
> >my USE variable before merging mod_php, so libphp ends up in
> >extramodules. 70_mod_php.conf ends up in conf/modules.d and gets
> >included (I've gotten syntax errors on stuff I've attempted in it.)
> >
> >I've added -D PHP to APACHE_OPTS in /etc/conf.d/apache2, and it seems
> >that the LoadModule command in 70_mod_php.conf is executed. (I tried
> >moving it outside the IfDefine and IfModule clauses, and that didn't
> >seem to help.)
> >
> >I saw a mention somewhere on the net that another user had gotten rid
> >of this problem by uncommenting and setting ServerName in
> >apache2.conf; sounds like a longshot, and hasn't helped me.
> >
> >Merging and running Apache 1 and mod_php has worked just fine, so I
> >guess this may be related to Apache 2's "non-official" status in
> >Gentoo (being masked) -- but I'm guessing that it's just as likely
> >that I'm doing/missing something really dumb...
> >
> >Any help would be greatly appreciated,
> >
> >- Magnus
> >
> >  
> >
> 


--
[EMAIL PROTECTED] mailing list

Reply via email to