Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP Woes -- Help Help!
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
MudPutty
n00b
n00b


Joined: 06 Oct 2003
Posts: 42

PostPosted: Sat Oct 25, 2003 8:43 pm    Post subject: PHP Woes -- Help Help! Reply with quote

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
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Sat Oct 25, 2003 8:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
MudPutty
n00b
n00b


Joined: 06 Oct 2003
Posts: 42

PostPosted: Sat Oct 25, 2003 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Canadian Chris
n00b
n00b


Joined: 01 Oct 2003
Posts: 22
Location: Nanaimo

PostPosted: Sat Oct 25, 2003 9:34 pm    Post subject: Reply with quote

Do you have apache1 set in the USE flags? (that might disable apache2 support)
Back to top
View user's profile Send private message
MudPutty
n00b
n00b


Joined: 06 Oct 2003
Posts: 42

PostPosted: Sat Oct 25, 2003 9:53 pm    Post subject: Reply with quote

I don't know what the "USE FLAGS" are. Can you expound a bit for me?
Back to top
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Sat Oct 25, 2003 9:58 pm    Post subject: Reply with quote

You need to type in:

Code:
USE="apache2" emerge mod_php


More information about USE flags can be found here
Back to top
View user's profile Send private message
MudPutty
n00b
n00b


Joined: 06 Oct 2003
Posts: 42

PostPosted: Sat Oct 25, 2003 10:11 pm    Post subject: Reply with quote

Thanks, i'll give it a try in a bit.
Back to top
View user's profile Send private message
Air-Op
n00b
n00b


Joined: 02 Apr 2003
Posts: 52

PostPosted: Sun Oct 26, 2003 8:33 am    Post subject: mod_php not working for apache1 Reply with quote

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
View user's profile Send private message
MudPutty
n00b
n00b


Joined: 06 Oct 2003
Posts: 42

PostPosted: Sun Oct 26, 2003 11:24 pm    Post subject: Reply with quote

Quote:
USE="apache2" emerge mod_php

Yup! That did it! Thanks, it works now.
Back to top
View user's profile Send private message
tntkane
n00b
n00b


Joined: 30 Mar 2003
Posts: 24

PostPosted: Wed Oct 29, 2003 10:29 am    Post subject: mod_php Reply with quote

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 ;-)
Back to top
View user's profile Send private message
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