View previous topic :: View next topic |
Author |
Message |
lethe n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jun 2002 Posts: 49
|
Posted: Fri Jun 03, 2005 1:31 am Post subject: apache2 + php for phpBB |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lethe n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jun 2002 Posts: 49
|
Posted: Fri Jun 03, 2005 1:52 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lethe n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jun 2002 Posts: 49
|
Posted: Wed Jun 08, 2005 5:43 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lousie_Louie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Jun 2005 Posts: 13
|
Posted: Thu Jun 09, 2005 2:49 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|