How to Install phpBB on Ubuntu Server

Posted on January 22nd, 2018

How to Install phpBB on Ubuntu Server

PhpBB is the most powerful and popular open source bulletin board system. You can create unique forums on your website using phpBB. In this tutorial, we can check how to install phpBB on Ubuntu server.

 

Installing the LAMP on the server

1) First, you need to login to the server as a root user.

2) Then you need to update all available packages.

# apt-get update

3) Now run the below command to install the LAMP with PHP7.

# apt-get -y install apache2 mysql-server mysql-client libapache2-mod-php7.0 php7.0-mysql php7.0-gd imagemagick unzip

 

Creating a Database for phpBB

1) Log in to the MySQL server and create a database, database user and assign the user to the database with full privileges.

mysql> create database phpBB;

mysql> create user ‘phpBB_dbuser’ identified by ‘password’;

mysql> grant all privileges on phpBB.* to ‘phpBB_dbuser’;

mysql> flush privileges;

 

Installing phpBB

1) Navigate to apache document root.

# cd /var/www/html

2) Delete unwanted files from the location. Download the latest version of phpBB on the server.

# wget https://www.phpbb.com/files/release/phpBB-3.2.1.zip

3) Unzip the file using the below command.

# unzip phpBB-3.2.1.zip

4) Delete the Zip file.

# rm phpBB-3.2.1.zip

5) Change the ownership of the file to www-data user.

# chown -R www-data:www-data /var/www/html/

6) We will need to change some folders permissions:

# chmod 660 images/avatars/upload/ config.php

# chmod 770 store/ cache/ files/

7) After that, you need to browse your domain to complete the installation http://yourdomain.com/install

8) Click on the “INSTALL” tab and then click the Install button. PhpBB will ask for the credentials. Then enter your login credentials.

Administrator username: admin

Contact email address: [email protected]

Administrator password: admin_test1234-

Confirm administrator password: same as above

9) Then click on ‘Submit’ button. Now the phpBB will be prompting you about the database details.

Database Type: MySQL with MySQLi Extension

Database server hostname or DSN: localhost

Database server port: leave blank

Database username: phpBB_dbuser

Database password: random generated password

Database name: phpBB

Prefix for tables in database: phpbb_

10) Now you are successfully installed phpBB. You can access it using http://yourdomain.com

 

Please do reach our support department if you need any further help.

 

3 Responses to “How to Install phpBB on Ubuntu Server”

  1. Kevin says:

    apt-get -y install apache2 mysql-server mysql-client libapache2-mod-php7.0 php7.0-mysql php7.0-gd imagemagick unzip

    Should also include php-xml

  2. mysculaker says:

    Thanks for the productive read!

Leave a Reply