GICT knowledge base
How to Install phpBB on Ubuntu Server
Published
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.
Related guides
How to Install phpBB Manually
How to Install phpBB Manually phpBB is a free flat-forum bulletin board software solution that can be used to stay in touch with a group of people or can po
phpBBMass Email Settings in phpBB
In this documentation, we can check about mass email settings in phpBB. In this section, you can email a message to either all of your users or all users of
phpBBHow to Ban Emails in phpBB
In this documentation, we can check how to ban email addresses in phpBB. 1) Login to phpBB admin panel. 2) Go to the tab ‘Users and Groups’. 3) Select the o
phpBBHow to Enable and Configure SMTP in phpBB
SMTP is a good way to deliver E-mails from the application. Follow this tutorial to learn How to enable and configure SMTP in phpBB.
