View previous topic :: View next topic |
Author |
Message |
lyon n00b
Joined: 04 Aug 2004 Posts: 16
|
Posted: Tue Jan 25, 2005 5:05 am Post subject: PHP won't work. [SOLVED] thanks |
|
|
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 |
|
|
hw-tph l33t
Joined: 08 Jan 2004 Posts: 768 Location: Uppsala, Sweden
|
Posted: Tue Jan 25, 2005 5:11 am Post subject: |
|
|
Do you have APACHE2_OPTS="-D PHP4" in your /etc/conf.d/apache2? (assuming you want PHP 4.x) |
|
Back to top |
|
|
lyon n00b
Joined: 04 Aug 2004 Posts: 16
|
Posted: Tue Jan 25, 2005 5:29 am Post subject: |
|
|
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 |
|
|
rex123 Apprentice
Joined: 21 Apr 2004 Posts: 272
|
Posted: Tue Jan 25, 2005 9:41 am Post subject: |
|
|
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 |
|
|
|