Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP won't work. [SOLVED] thanks
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
lyon
n00b
n00b


Joined: 04 Aug 2004
Posts: 16

PostPosted: Tue Jan 25, 2005 5:05 am    Post subject: PHP won't work. [SOLVED] thanks Reply with quote

Some background info.

I am going throught the Postfix vhost guide and php won't work. So I have done "emerge apache mod_php phpmyadmin"

I did check that apache, mod_php and php are installed. (apache2 BTW)

When I try to access phpmyadmin it gives me the index.php file but only the text inside the file without executing it.

I have tried adding ExecCGI for the <Directory> that holds the document root.

Thanks for the help.

Matt


Last edited by lyon on Tue Jan 25, 2005 5:38 am; edited 1 time in total
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Jan 25, 2005 5:11 am    Post subject: Reply with quote

Do you have APACHE2_OPTS="-D PHP4" in your /etc/conf.d/apache2? (assuming you want PHP 4.x)
Back to top
View user's profile Send private message
lyon
n00b
n00b


Joined: 04 Aug 2004
Posts: 16

PostPosted: Tue Jan 25, 2005 5:29 am    Post subject: Reply with quote

Yep that was it.

Thanks.

I am still a bit new on gentoo. Where best do I read and find out this info.

Matt
Back to top
View user's profile Send private message
rex123
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 272

PostPosted: Tue Jan 25, 2005 9:41 am    Post subject: Reply with quote

lyon wrote:
Where best do I read and find out this info.


My advice: when you emerge something, have a look at the output from the emerge. Also look in the /etc/conf.d/xyz files. I also generally have a look at the /etc/init.d/xyz files when they are installed.

In this case you might have seen something when you emerged mod_php - also it's commented in /etc/conf.d/apache2.

A lot of interesting gentoo-specific information is in these files.
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