Tutorial: How to Install phpBB 3 on Ubuntu 14.04

phpBB is an online bulletin board web application. Often used as a community web forum, online bulletin boards promote online collaboration and discussion between groups with similar interests. Read on to learn how to install a self-hosted bulletin board on an Ubuntu 14.04.

Video Tutorial

Written Tutorial

Prerequisites

This tutorial assumes the following setup:

  • A computer installed with Ubuntu 14.04 desktop/server edition. (Tutorial)
  • (Optional) a public web address (domain or subdomain). (Tutorial)

Install Apache Web Server

  1. Open Terminal and install tasksel with the following command:
    sudo apt-get install tasksel

    08-installTasksel

  2. Once tasksel is installed, run tasksel
    sudo tasksel

    tasksel will display a menu. Use the arrow keys to navigate to “LAMP server”, hit the “spacebar” key to select the option and the “Enter” key to confirm the installation.
    09-selectLAMPDuring the install, the installer will prompt for a password for mySQL.
    10-mySQLpw

Install phpBB

  1. Open a web browser and navigate to www.phpbb.com. Then click on the “Download” button int he top right corner of the screen. 01-firstFrame
  2. Click on the orange download latest zip file. (Optional, if you would like a different language other than British English, download the language packs, which is the blue button beside the orange button).
    02a-downloadButton
  3. Select the radio button to open the zip file with “Archive Manager” (A) and then click “OK” (B).
    02b-archivemanager
  4. In the Archive Manager, click on the phpBB3 folder (A) and then click on the “Extract” button in the menu (B). 03-extract
  5. In the file manager, the “Home” location should be selected by default; however, in case it is not, click on the “Home” location in the sidebar (A) and then click the “Extract” button (B). 04-selectHome
  6. Open Terminal and type in the following command to move the phpBB3 folder to the web server.
    sudo mv phpBB3 /var/www/html/

    05-mvFolder

  7. In Terminal, type the following command to change the ownership of the phpBB3 folder to the web server:
    sudo chown www-data:www-data -R /var/www/html/phpBB3
  8. In Terminal, type the following command to change the permission level of the phpBB3 folder:
    sudo chmod 775 -R /var/www/html/phpBB3

Create a MySQL Database

  1. Still in Terminal, type in the following command to access MySQL:
    mysql -u root -p

    NOTE: When prompted for a password, use the password created during the LAMP server install.

  2. Type in the following command to create the database “phpbb”:
    create database phpbb;

    09-createDatabase

  3. Exit the MySQL shell but typing “exit.”

Complete Installation in the Web Browser

  1. In the web browser, navigate to the web server and append the folder name (most likely “/phpBB3”). For example, “http://technerdservices.ddns.net/phpBB3” is the web address and phpBB folder for the demo in the YouTube video. 11-introPage
  2. Click on the “Install” tab (A), then click on the “Proceed to next step” button (B).12-installPage
  3. The following page will test to ensure that all dependencies are installed. All sections should have green confirmation text except for the database section, where only the MySQL section will have green text and the others are red. This is normal. Click the “Start Install” button if all other sections are green. If there are sections that are still red, ensure that the folder permissions are correct and that the LAMP server is installed correctly.
    13-startInstall
  4. Fill out the information for the Database that was created. If you have followed all the instructions of this tutorial, the database server hostname is “localhost”, the database name is “phpbb”, the username is “root” and the password is the one from the LAMP installation. The server port can be blank and the table prefix can remain the default. Once all the previous fields are filled (A), click on the “Proceed to next step” button (B).
    14-DBinfo
  5. phpBB will test the database connection to ensure the information is successful. If there is an error, go back and check the database information. Click on the “Proceed to next step” button if the test is successful.
    15-proceedNextStep
  6. Create the first administrator user. Fill in the username, password, and email address of the administrator account (A) and then click on the “Proceed to next step” button (B).
    16-adminInfo
  7. phpBB will test the administrator settings, click on the “Proceed to next step” button.
    17-adminProceed
  8. phpBB email settings must be setup. Enter the email SMTP settings and then click the “Proceed to next step” button when complete.
    18-emailSettings1
  9. The next page will confirm that the database is created. Simply click on the “Proceed to next step” button.
    19-nextStep
  10. If there are no errors, a confirmation page will appear. Click on the “Login” button at the bottom of the page to enter phpBB. 20-congratulationsPage
  11. OPTIONAL: The next screen will request to send statistical data. This step is optional. If you choose to send data to help improve the product, click on the “Send statistical information” button. Else skip this step.
    21-sendStatData
  12. Click on the “General” tab to go to the settings. A big red “Warning” banner will appear providing instructions to remove the installation files.
    22-clickonGeneral
  13. In Terminal, type the following command to remove the folders identified by the warning.
    sudo rm -rf /var/www/html/phpBB3/install
  14. Restart the Apache web server.
    sudo service apache2 restart

Congratulations, you have successfully installed phpBB 3!

Closing Words

Whether it is to brainstorm business proposals or arrange family gatherings, phpBB provides an easily accessible platform to promote discussion. With its many extensions and apps, phpBB can be tailored to your home or business needs.


Support Us!

Thank you for reading this article. If you found it useful, please consider buying us a coffee, subscribing to the YouTube Channel, and/or changing your Amazon bookmark to our affiliate link (CAN, USA, UK). We do this out of general interests and to help others. Thanks!




Leave a Reply

Your email address will not be published.