View previous topic :: View next topic |
Author |
Message |
Lemen n00b
Joined: 26 May 2004 Posts: 3
|
Posted: Thu May 27, 2004 5:29 pm Post subject: Apache and php |
|
|
i have emerged apache (apache2), php and mod_php
But i cant get php too work! What doo i need too doo?
Sry fore my english:P
I hope somone can help me with the php thing
thanx |
|
Back to top |
|
|
grepcomputers Guru
Joined: 16 Sep 2003 Posts: 375
|
Posted: Thu May 27, 2004 7:13 pm Post subject: |
|
|
I hear that if you put "apache2" (or "apache" I guess, depending on the version you are using) and emerge all the php packages needed, it should work. However, I did not use this. I emerged apache and all the needed php modules, (mod_php and php), and then edited "/etc/conf.d/apache2"
Find the line with "APACHE2_OPTS" in it, and make sure it has "-D PHP4" in it, ie, mine looks like this:
/etc/conf.d/apache2:
APACHE2_OPTS="-D PHP4 -D SSL"
which means I have PHP4 installed and running, as well as SSL.
cheers... |
|
Back to top |
|
|
Sabbie n00b
Joined: 23 May 2004 Posts: 24 Location: Netherlands
|
Posted: Fri May 28, 2004 1:01 am Post subject: |
|
|
Make sure:
Code: |
LoadModule php4_module modules/libphp4.so
|
is in you /etc/apache2/conf/apache.conf |
|
Back to top |
|
|
|