How to install phpBB in Linux


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUpon
1.) Install all of the required software for phpBB3 forums:
sudo yum install mysql-server mysql-administrator mysql mysql-gui-common php-mysql

2.) Download, extract, and place the phpBB3 files:
The last step of the following commands will determine what address your guests type to get to your forums. I chose to use “forums” because it’s easier to remember than phpBB3. So, for example when you type, it will take you to the phpBB forums. You can change this to whatever you want.

 tar -xjf phpBB-3.0.4.tar.bz2
 mv phpBB3/ /var/www/html/
 mv phpBB3 forums  

3.) Setup the mySQL Server:
First, setup a password for the root account:

 mysqladmin -u root password 'passwordyouwant'

Login to mySQL

 mysql -u root -p

Create the new phpbb database:
create database phpbb;

Create new user and password for database:
grant all privileges on phpbb.* to username identified by ‘password‘;

Flush the privileges:
flush privileges;

Test the mySQL Setup:

 mysql -u username -p

enter password here
show databases;

The result should look similar to this:
| Database |
| information_schema |
| mysql |
| test |
| phpbb |
4 rows in set (0.29 sec)

4.) Install the phpBB3 forums:

To install the forums, you’ll need to navigate to the install directory in your browser (ie. Firefox). So, goto This will walk you through the setup for the forums. Point phpBB to your mySQL database by filling in the following fields with this information:

Database type: mySQL with mySQLi Extention
Database server hostname or DSN: leave blank
Database server port: leave blank
Database name: phpbb
Database username: username
Database password: password
Prefix for tables in database: phpbb_

Click on the “Proceed to next step” button. You should get a “successful connection” message. If not, there is a problem with the database you created. Check to make sure that you’re not misspelling it.

From here, everything is pretty self explanatory. It will ask you to setup an administrator account and then it will try to automatically configure the config.php file. If you run into permission problems (like I did), you’ll have to open the file permissions by typing this command into the terminal:

 su -


 chmod 777 /var/www/html/forums/config.php

When you have completed the install, phpBB will remind you to delete or rename the installation directory. I suggest you delete it by using this command:

 rmdir --ignore-fail-on-non-empty /var/www/html/forums/install/

5.) Enjoy!

If everything went as it should, you should now be able to view and administer your own phpBB3 forums! If you encountered any problems, I would like to hear about them so that I can update the tutorial if needed. Also, you may refer to the official phpBB3 documentation here.

SHARETHIS.addEntry({ title: “Tutorial: Setup a Totally Free, Self-Hosted phpBB Forum”, url: “” });ShareThis


Source  : derekhildrith