Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] apache and php wont work
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
pwd
n00b
n00b


Joined: 07 Jun 2010
Posts: 3

PostPosted: Mon Jun 07, 2010 8:28 am    Post subject: [SOLVED] apache and php wont work Reply with quote

hi all,

i've a problem getting php to work with apache.
use flags include php, cgi, /etc/conf.d/apache2 contains "-d PHP5" in apache2_opts. php files dont interpret in /var/www/localhost/htdocs (here the content is printed) nor /var/www/localhost/cgi-bin (500 server error) which *also* wasnt created at apache emerge.

is there an official apache installation guide which includes the php-setup?


Last edited by pwd on Mon Jun 07, 2010 1:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 911
Location: Switzerland

PostPosted: Mon Jun 07, 2010 11:14 am    Post subject: Reply with quote

Hi,

actually there are different ways to use php under apache and you seem to mix them up a bit! :wink:

The "-D PHP5" in /etc/conf.d/apache is used for mod_php, which you get if you set apache2 as useflag for php!

Cgi is another method to use php and others. This is the Default for other webservers like lighttpd or nginx, but can also be used in different variations with apache (mod_suphp, mod_fcgid or mod_fastcgi as example).

I would go for the first option, as it's much easier to setup for the first time! :wink:

Hope that helps,

Cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
pwd
n00b
n00b


Joined: 07 Jun 2010
Posts: 3

PostPosted: Mon Jun 07, 2010 1:01 pm    Post subject: Reply with quote

nativemad wrote:
set apache2 as useflag for php


ARRRRGH!

thank you :)
the power of reverse logic never underestimate you must.
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