Syed Jahanzaib Personal Blog to Share Knowledge !

September 15, 2011

Howto install phpBB Forum on Ubuntu

Filed under: Linux Related — Tags: , , , , , , , — Syed Jahanzaib / Pinochio~:) @ 2:31 PM

Following is a guide on howto install phpBB forum on freshly installed Ubuntu.
PhpBB is a web forum application which runs on apache, mysql and php. With it, you can host your own forum site.
Example of such forum is

In this tutorial I use the hostname linux with the IP address
These settings might differ for you, so you have to replace them where appropriate.
You need the following components for the phpBB forum.

Pre-Requisite for phpBB3 Forum:

1) Mysql
2) Apache
3) Php

After configuring your networking interface, Install the above mentioned components step by step. I’m running all the steps in this tutorial with root privileges, so make sure you’re logged in as root:

1. Installing MYSQL

apt-get install mysql-server mysql-client

You will be asked to provide a password for the MySQL root user – this password is valid for the user root@localhost

2. Installing APACHE2

Apache2 is available as an Ubuntu package, therefore we can install it like this:

apt-get install apache2

Now point your browser to and you should see the Apache2 placeholder page (It works!):

3. Installing PHP

We can install PHP5 and the Apache PHP5 module as follows:

apt-get install php5 libapache2-mod-php5

Now restart apache by following command

/etc/init.d/apache2 restart

Install Phpbb3

apt-get install phpbb3

The installation of that package will also install the phpbb3 package and perform all the database configuration for you. You will be prompted for the mysql root user password (not the same as the root user, but the mysql’s user named root)

Run this command to make the forum accessible through the web server

ln -s /usr/share/phpbb3/www /var/www/phpbb

/etc/init.d/apache2 restart

Now point your browser to

The PHPBB3 webpage should display that the forum is disabled.

Click Log in.

Use the default username and password:

username = admin
password = admin

Click on the small link at the bottom of the page – Administration Control Panel

  • Select the Board Settings link which is located under the sub heading Board Configuration on the left hand side of the page.
  • Set the option Disable Forum to No and click Submit at the bottom of the page.

Note: Also, Don’t forget to change the admin password as well.

Now you FORUM is ready, Enjoy !

Just create New categories and add appropriate permissions.  (Give users at least read+write permission for the forum)


  1. This works well for a LAMP server where you already have your PHP Apache and MySQL installed. And the line about setting up the symbolic link is particularly usefull.

    Once installed (Note I am not sure about this so I’m looking into it) theroreticaly you should be able to create a copy using

    cp -a phpbb3 phpbbb

    of the phpbb3 folder that apt-get has made in the //usr/share folder i’ve used phpbbb as an example however the symbolic links created automatically in phpbb3/www point back to phpbb3 however it should be posible to bake a script that will ask the user for the new name delete the old symbolic links and create new ones thatlink back to this new folder name this should (note in theory) allow you to use the install routine in this new instalation to create a second phpbb running on the same server.

    for that matter the script should be capable of creating the new required symbolic link to //var/www

    I wonder if there is anyone out there with a better knowledge of scriping that could advise?

    Comment by Jim Clark — May 31, 2012 @ 1:10 PM

  2. You can try moreforum forum, pretty easy to use and its free.

    Comment by jaychenfeng5 — September 16, 2013 @ 1:48 PM

  3. Hi, I just wanted to say hi. I read this forum for quite some time and finally I registered.

    PS. Sorry for my English is not perfect yet …

    Comment by creevoick — November 23, 2013 @ 3:57 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: