phpbb cry for help

please SOMEBODY tell me what is going on…..i cant get phpbb2 to run…i installed it on my linode using like 10 different combos and i get different things, and none of them are what i want…..can someone please guide me to what i am doing wrong?

22 Replies

Give us more details like:

Error messages

Versions of MySQL, PHP and Apache

Your linode information (ram,xfer etc)

okay when you go to http://tmi.reactornet.net/phpBB2 it pulls up a download box for you to download a php file, INSTEAD OF DISPLAYING IT!!!! It works fine on my other, slower box…..is there anything i can do? I tried like 10 different combinations….the other box has debian sarge

newest of everything….php4 mysql apache1something

You need to enable php in your apache conf files.

You probably need to install libapache-modphp4 – it's called something like that.

how??? my linux geek (i'm in training) has no clue why it wont work…..i dont see any variant of what you suggested in apt-cache……i just did a apt-get update too.

Hrm.. I shouldn't be able to view the directory like that–it should point me to the index.php file automatically. I think the directory options are messed up. If you have a section in your httpd.conf, remove it. Apache shouldn't need it.

@asura:

Hrm.. I shouldn't be able to view the directory like that–it should point me to the index.php file automatically. I think the directory options are messed up. If you have a section in your httpd.conf, remove it. Apache shouldn't need it.

His problems are because he doesn't have the php mod installed for apache, so apache doesn't see a .php file as text/html.

right! but i dont think the mod is a package referenced by woody….so its either a manual thing or something built into apache…..so what do i need to edit…?

You need to install the package php4.

@pclissold:

You need to install the package php4. already done man….already done.

so what do i need to edit……???

@bd1308:

so what do i need to edit……???

Sounds to me like the real problem here is you need to go back and read the Apache, PHP, MySQL, and phpBB2 manuals… no offense intended, but none of us can help you set it up unless you know a few basic things about how all 4 of those software packages work together and can narrow down what's not working to 2-3 problems rather than 50 while we attempt to blindly guide you through every single step to get all four up and running.

@bd1308:

so what do i need to edit……???

This is for Debian Woody

apt-get install php4

Edit /etc/apache/httpd.conf

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

AddType application/x-httpd-php .php

DirectoryIndex index.php

How about another distro? I just found out that CentOS has a LAMP interface packaged in the template

sorry guys…..

phpmyadmin works though on it….which stumped my linux oracle….but phpbb2 doesnt….

so am i doing something wrong?

sigh Hope this is allowed

Ill configure your linode and install phpbb2 for a small fee. PM Me for more details.

debian is back on…i'm going to try as hard as i can to get this working on my own, as I need to learn….

If PHPMyAdmin works than Apache is parsing PHP fine. One thing to check is a directive in the php.ini file:

short_open_tag=On|Off

shortopentag allows you to use tags.

It is possible that you have it turned off and PHPBB did not use the full tags. I think php has been enabling short open tags by default for some time now…not sure…Just a thought.

Hey,

If PHPMyAdmin works, PHP should be working, but just to be sure:

If you are running Apache 1.3:

apt-get install libapache-mod-php4
/etc/init.d/apache restart

If you are running Apache 2:

apt-get install libapache2-mod-php4
/etc/init.d/apache2 restart

If doesn't work, send me username and pass (of course, you should change them later on) and I'll fix it free of charge.

@bd1308:

phpmyadmin works though on it….which stumped my linux oracle….but phpbb2 doesnt….

That just might be a blessing in disguise.

~~[http://news.netcraft.com/archives/2005/07/08/hostsbanphpbbassecurityissuespersist.html" target="blank">](http://news.netcraft.com/archives/2005/ … rsist.html">http://news.netcraft.com/archives/2005/07/08/hostsbanphpbbassecurityissues_persist.html](

~~[http://seclists.org/lists/webappsec/2005/Jan-Mar/0479.html" target="_blank">](http://seclists.org/lists/webappsec/200 … /0479.html">http://seclists.org/lists/webappsec/2005/Jan-Mar/0479.html](

yea phpbb2 is horrible code and has had alot of nasty exploits in it in the past as well as recently

By default phpmyadmin (on debian, right?) installs a private .htaccess file which enables php parsing for the phpmyadmin directory. Here is the default .htaccess file phpmyadmin on debian:

DirectoryIndex index.php
Options +FollowSymLinks

 <ifmodule mod_mime.c=""><ifmodule mod_php4.c="">AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .</ifmodule> 
    <ifmodule mod_php5.c="">AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .</ifmodule> 
    <ifmodule mod_php5_filter.c="">AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .</ifmodule> 
    <ifmodule mod_php5_hooks.c="">AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .</ifmodule> 

    <ifmodule !mod_php4.c=""><ifmodule !mod_php5.c=""><ifmodule !mod_php5_filter.c=""><ifmodule !mod_php5_hooks.c=""><ifmodule !mod_fastcgi.c=""><ifmodule !mod_fcgid.c=""><ifmodule mod_actions.c=""><ifmodule mod_cgi.c="">AddType application/x-httpd-php .php

        Action application/x-httpd-php /cgi-bin/php</ifmodule></ifmodule></ifmodule></ifmodule></ifmodule></ifmodule></ifmodule></ifmodule></ifmodule> 

From the behavior you are seeing, it seems like you have php installed and running (since myadmin is parsing properly), but the 'AddType' directive is not getting inserted into the other part of your site that isn't parsing php directly.

Were you using apache1 or apache2? It has been a while since I used debian apache1 so….

On apache2, check out /etc/apache2/mods-enabled and ensure there is a soft link for php4.conf and php4.load. If so I'm all outta suggestions except for perhaps to check out your /etc/apache2/apache2.conf or /etc/apache/httpd.conf and manually insert the AddType directives from above.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct