Howto: Install PHPBB2

A collection of tips on howto tweak your Bubba.
Post Reply
Magnus
Posts: 51
Joined: 02 Jan 2007, 03:52
Location: Sweden
Contact:

Howto: Install PHPBB2

Post by Magnus » 16 Jun 2008, 15:51

A guide how to install the Open Source forum PHPBB2. You will need MySQL as well, installation described here as well.

Using ssh, log on to Bubba (as your regular user). Type

Code: Select all

su

to become root. The root password is

Code: Select all

excito
Edit your sources.list file

Code: Select all

nano /etc/apt/sources.list
It should look like

Code: Select all

deb http://ftp.se.debian.org/debian/ sarge main
deb http://security.debian.org/ sarge/updates main
deb http://ftp.se.debian.org/debian/ sarge non-free

deb http://update.excito.net/testing bubba main

To update the package lists, type

Code: Select all

apt-get update

To install PHPBB2, type

Code: Select all

apt-get install phpbb2
*You will get a question about "additional disk space will be used", answer YES.
*A splash screen will ask about your web server, choose Apache2.


To install MySQL server, type

Code: Select all

apt-get install mysql-server
*You will get a question about "additional disk space will be used", answer YES.
*A splash screen will appear, press OK.

Configure MySQL, type

Code: Select all

apt-get install phpbb2-conf-mysql
*You will get a question about "additional disk space will be used", answer YES.
*When prompted "Webserver(s) to configure" choose "apache2".
*You will after that get some alternatives but choosing the defaults will do (press enter when prompting for MySQL password).


To be able to reach your forum at for example 'http://*your domain*/phpbb2', type

Code: Select all

ln -s /usr/share/phpbb2/site /var/www/html/phpbb2

Restart your webserver, type

Code: Select all

/etc/init.d/apache2 reload
Don't forget to restore your sources.list file

Code: Select all

nano /etc/apt/sources.list
It should look like

Code: Select all

#deb http://ftp.se.debian.org/debian/ sarge main
#deb http://security.debian.org/ sarge/updates main
#deb http://ftp.se.debian.org/debian/ sarge non-free

deb http://update.excito.net/testing bubba main
Log into your forum with a web browser 'http://*your domain*/phpbb2/admin' using:
user: admin
password: admin

Change your admin pasword and start using your new forum!

If you want to fine tune Bubbas performance have a look in this thread: http://forum.excito.net/viewtopic.php?t=420


That all! Any problems let me know...
Magnus, Excito developer
www.excito.com
support@excito.com

pcrene
Posts: 305
Joined: 17 May 2008, 15:49

AwStats

Post by pcrene » 20 Jun 2008, 03:49

Hello congratulations on this detailed description..worked perfect for me..can you do this for awStats too?

pcrene
Posts: 305
Joined: 17 May 2008, 15:49

phpbb2

Post by pcrene » 20 Jun 2008, 12:17

on a second bubba i got an error when installing phpbb2

The: Configuring phpbb2-conf-mysql returned with an error..
Parameters: localhost
phpbb2
phpbb2 (username)
excito (as MySql root password)
Then: error trying to connect to the database

Please advise......

pcrene
Posts: 305
Joined: 17 May 2008, 15:49

phpbb2

Post by pcrene » 20 Jun 2008, 12:22

oeps entered a password...now i managed to get it working...

Have a nice weekend

rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

can't access phpbb2

Post by rewien » 18 Oct 2008, 20:34

Hello all,

I installed phpbb2 on bubba two, but can't reach it by typing http://bubba/phpbb2

This is what i did:


server:/home/rewien# apt-get install phpbb2
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
phpbb2-languages
Recommended packages:
phpbb2-conf-mysql
The following NEW packages will be installed:
phpbb2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 555kB of archives.
After unpacking 2761kB of additional disk space will be used.
Get:1 http://ftp.se.debian.org etch/main phpbb2 2.0.21-7 [555kB]
Fetched 555kB in 4s (116kB/s)
Preconfiguring packages ...
Selecting previously deselected package phpbb2.
(Reading database ... 33859 files and directories currently installed.)
Unpacking phpbb2 (from .../phpbb2_2.0.21-7_all.deb) ...
Setting up phpbb2 (2.0.21-7) ...

server:/home/rewien# ln -s /usr/share/phpbb2/site /var/www/html/phpbb2
ln: creating symbolic link `/var/www/html/phpbb2' to `/usr/share/phpbb2/site': No such file or directory
server:/home/rewien# ln -s /usr/share/phpbb2/site /var/www/html/phpbb2
ln: creating symbolic link `/var/www/html/phpbb2' to `/usr/share/phpbb2/site': No such file or directory


Rewien

Xet
Posts: 53
Joined: 12 May 2008, 02:40

Post by Xet » 19 Oct 2008, 01:06

I dont think the web-root is located at /var/www/html on the B2, it's /var/www.
Try executing:

Code: Select all

ln -s /usr/share/phpbb2/site /var/www/phpbb2
or

Code: Select all

ln -s /usr/share/phpbb2/site /home/web/phpbb2
/var/www is a symlink to /home/web so using the last example is probably best.

rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

Post by rewien » 19 Oct 2008, 06:31

Xet wrote:I dont think the web-root is located at /var/www/html on the B2, it's /var/www.
Try executing:

Code: Select all

ln -s /usr/share/phpbb2/site /var/www/phpbb2
or

Code: Select all

ln -s /usr/share/phpbb2/site /home/web/phpbb2
/var/www is a symlink to /home/web so using the last example is probably best.
Hello Xet,

Thank you for youre fast reply. this is what I get when executing the codes:

Using username "rewien".
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
Linux server 2.6.26.2 #1 Thu Aug 14 22:23:09 CEST 2008 ppc

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Oct 19 02:39:41 2008 from 192.168.123.189
rewien@server:~$ su
Password:
server:/home/rewien# ln -s /usr/share/phpbb2/site /var/www/phpbb2
server:/home/rewien# ln -s /usr/share/phpbb2/site /home/web/phpbb2
server:/home/rewien#


And when I try accessing it through http://bubba/phpbb2

I get:


Forbidden
You don't have permission to access /phpbb2 on this server.


--------------------------------------------------------------------------------

Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at server Port 80


Any idea what I did wrong?

Thanks,
Rewien

Xet
Posts: 53
Joined: 12 May 2008, 02:40

Post by Xet » 19 Oct 2008, 07:00

The folder, phpbb2, has to be world readable.

Since regular users has write permission in /home/web you don't have to be root to make the symlink, btw.

So, make sure that the symlink and also the "real" folder, i.e the one the symlink is pointing to, are world readable.

I think that the symlink inherits the permissions from the folder it points to, but I might be wrong about that, so try to remove the link, set the correct permission on the real folder and do the link again.

rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

Post by rewien » 19 Oct 2008, 07:13

Xet wrote:The folder, phpbb2, has to be world readable.

Since regular users has write permission in /home/web you don't have to be root to make the symlink, btw.

So, make sure that the symlink and also the "real" folder, i.e the one the symlink is pointing to, are world readable.

I think that the symlink inherits the permissions from the folder it points to, but I might be wrong about that, so try to remove the link, set the correct permission on the real folder and do the link again.
Hello Xet,

Sorry i'm a Linux newbee. could you please tell me how to change the settings you just said? :oops:

Thank you,
Rewien

Xet
Posts: 53
Joined: 12 May 2008, 02:40

Post by Xet » 19 Oct 2008, 10:41

The command for changing permission on a file or folder is chmod.
If you google it I'm sure you find a lot of pages explaining it better than me...
http://en.wikipedia.org/wiki/Chmod is one.

BTW, I noticed another thread that you started, http://forum.excito.net/viewtopic.php?t=1293. It seems like you have some other, more serious, issues when it comes to apache....

rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

Post by rewien » 20 Oct 2008, 17:25

Xet wrote:The command for changing permission on a file or folder is chmod.
If you google it I'm sure you find a lot of pages explaining it better than me...
http://en.wikipedia.org/wiki/Chmod is one.

BTW, I noticed another thread that you started, http://forum.excito.net/viewtopic.php?t=1293. It seems like you have some other, more serious, issues when it comes to apache....
Hello Xet,

Thank you, I'm gonne give it a try and inform you how it went.
yes, that's true am unable to access my bubba welcome page http://bubba/

But installed gallery2 and that does work

Rewien

rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

Solved

Post by rewien » 21 Oct 2008, 15:24

Hello Xet,

You where right. I had installed phpbb2 correctly but the problem was that my index.html was locked some how.

So I changed the permissions with bubba2 filemanager and allowd others to be able to read it.

And that did the trick it works@

Thanks you! :wink:
Rewien

Post Reply