Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 + php for phpBB
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
lethe
n00b
n00b


Joined: 25 Jun 2002
Posts: 49

PostPosted: Fri Jun 03, 2005 1:31 am    Post subject: apache2 + php for phpBB Reply with quote

Hi Kids.

I'm trying to install a phpBB forum (like this one!) with little or no knowledge. I emerged phpBB, started apache, and don't know what to do next. The phpBB website says everything gets done from some configuration page through a webbrowser, but I can't get to that page.

When I go to http://myhostname/phpBB/ (is this the right place to go? The documentation didn't say, but it seems like a good guess), I don't see a forum page, instead I see a bunch of unrendered php code. I have the impression that I just have to switch some flag somewhere for apache to tell it to execute php code, instead of serving the text. But I'm not really sure. And if that is right, then where to I turn this flag?

thanks for the help.
Back to top
View user's profile Send private message
lethe
n00b
n00b


Joined: 25 Jun 2002
Posts: 49

PostPosted: Fri Jun 03, 2005 1:52 am    Post subject: Reply with quote

I put a line like
Code:
AddType application/x-httpd-php .php
in my apache.conf, according to some instructions I found here, but that didn't fix it. I wanted to also put a line like
Code:
LoadModule php5_module modules/libphp5.so
, but that module wasn't found in my apache/modules directory. Does that mean I have to recompile apache or some such nonsense?
Back to top
View user's profile Send private message
lethe
n00b
n00b


Joined: 25 Jun 2002
Posts: 49

PostPosted: Wed Jun 08, 2005 5:43 am    Post subject: Reply with quote

So the directions found in the php/apache documentation don't quite work with the gentoo setup. To turn-on php/apache, you have to edit /etc/conf.d/apache2 and add something like

Code:
APACHE2_OPTS="-D PHP4"


rather than adding the stuff I said in the last post to the main apache conf file, /etc/apache/conf/apache2.conf. That fixed my problem.
Back to top
View user's profile Send private message
Lousie_Louie
n00b
n00b


Joined: 06 Jun 2005
Posts: 13

PostPosted: Thu Jun 09, 2005 2:49 am    Post subject: Reply with quote

Are you trying to get php4, or php5? I tried adding that line (after emerging php) and I still get back pages of ugly code. (I know it's ugly, cuz I wrote it!)
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