Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache and PHP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sat May 18, 2002 6:20 pm    Post subject: Apache and PHP Reply with quote

Successfully emerged apache and php, executed "ebuild /var/db/pkg/dev-lang/php-4.2.0/php-4.2.0.ebuild config" like suggested (the config files were updated).
But apache refuses to parse my php scripts. :(
I tried different things like mentioned in other posts - still no luck. The worst thing happend was that opera wanted to download the php scripts, instead of parsing them... 8O

Please help me out, i badly need php.

bye, dek
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sun May 19, 2002 7:44 pm    Post subject: Reply with quote

OK answering to myself: Finally got PHP to work!
"ebuild /var/db/pkg/dev-lang/php-4.2.0/php-4.2.0.ebuild config" doesn't modify the apache.conf properly.
I commended the IfDefine stuff out and it works. ;)

#<IfDefine PHP4>
LoadModule php4_module extramodules/libphp4.so
#</IfDefine>

#<IfDefine PHP4>
AddModule mod_php4.c
#</IfDefine>
Back to top
View user's profile Send private message
Guest






PostPosted: Mon May 27, 2002 1:37 pm    Post subject: Reply with quote

You probably needed to add -D PHP in the apache options file in /etc/conf.d

The definition wasnt being passed
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum