View previous topic :: View next topic |
Author |
Message |
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Sat May 18, 2002 6:20 pm Post subject: Apache and PHP |
|
|
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...
Please help me out, i badly need php.
bye, dek |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Sun May 19, 2002 7:44 pm Post subject: |
|
|
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 |
|
|
Guest
|
Posted: Mon May 27, 2002 1:37 pm Post subject: |
|
|
You probably needed to add -D PHP in the apache options file in /etc/conf.d
The definition wasnt being passed |
|
Back to top |
|
|
|