View previous topic :: View next topic |
Author |
Message |
MudPutty n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2003 Posts: 42
|
Posted: Sat Oct 25, 2003 8:43 pm Post subject: PHP Woes -- Help Help! |
|
|
I am trying to get PHP to work under Apache2. I have run the "<? phpinfo(); ?>" line in a file called test.php, and it works under Apache but not under Apache2. I have made sure I have Code: | APACHE2_OPTS="-D SSL -D PHP4" | in the "/etc/conf.d/apache2" file, and made sure it is not commented out. When I did the emerged for the second time I did Code: | emerge mod_sql php mod_php | Could it be that I messed up the main config file somehow? Anyway, any suggestions would be helpful. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Celtis l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1262362168404dfaa2e665f.jpg)
Joined: 05 Jul 2003 Posts: 737
|
Posted: Sat Oct 25, 2003 8:49 pm Post subject: |
|
|
You restarted apache after you added the php option to the /etc/conf.d/apache file?
Failing that is there anything in the /var/log/apache2/error_log and when you start apache does it say "[OK]" or "[!!]" (indicating an error) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MudPutty n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2003 Posts: 42
|
Posted: Sat Oct 25, 2003 9:03 pm Post subject: |
|
|
Quote: | You restarted apache after you added the php option to the /etc/conf.d/apache file? | Yes Quote: | Failing that is there anything in the /var/log/apache2/error_log | Nothing in the error-log
Quote: | when you start apache does it say "[OK]" or "[!!]" (indicating an error) | It says "OK" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Canadian Chris n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 22 Location: Nanaimo
|
Posted: Sat Oct 25, 2003 9:34 pm Post subject: |
|
|
Do you have apache1 set in the USE flags? (that might disable apache2 support) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MudPutty n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2003 Posts: 42
|
Posted: Sat Oct 25, 2003 9:53 pm Post subject: |
|
|
I don't know what the "USE FLAGS" are. Can you expound a bit for me? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Celtis l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1262362168404dfaa2e665f.jpg)
Joined: 05 Jul 2003 Posts: 737
|
Posted: Sat Oct 25, 2003 9:58 pm Post subject: |
|
|
You need to type in:
Code: | USE="apache2" emerge mod_php |
More information about USE flags can be found here |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MudPutty n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2003 Posts: 42
|
Posted: Sat Oct 25, 2003 10:11 pm Post subject: |
|
|
Thanks, i'll give it a try in a bit. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Air-Op n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Megaman/megamanjetpack.gif)
Joined: 02 Apr 2003 Posts: 52
|
Posted: Sun Oct 26, 2003 8:33 am Post subject: mod_php not working for apache1 |
|
|
I'm still using apache 1... and I surely don't have apache2 in my use flags.
but mod_php don't work now... it worked just an itty bit ago before I upgraded apache versions.
I think I got my apache2 configs working... I'll try setting apache2 in my use flags and switch to apache2... it seems the desktop configuration guide dropped apache1 config like a rock. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MudPutty n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Oct 2003 Posts: 42
|
Posted: Sun Oct 26, 2003 11:24 pm Post subject: |
|
|
Quote: | USE="apache2" emerge mod_php |
Yup! That did it! Thanks, it works now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tntkane n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/18609638753f9f9ab80fa39.jpg)
Joined: 30 Mar 2003 Posts: 24
|
Posted: Wed Oct 29, 2003 10:29 am Post subject: mod_php |
|
|
Hi,
i've got the problem right now and i don't know why. I allready find out that the mod_php:so or mod_php4.so doesnt exists on my Xbox I use the Apache 2.0.47 and if I emerge mod_php it says that it is a security fix. So i installed in anyway. But i can repeat it. The probplem is: emerge doesnt show any errors in this case. What do i have to do? Sorry for my english ![Wink ;-)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|