
phpBB, also known as a “PHP Bulletin Board” is a free flat-forum bulletin board software that provides a space for people to gather and communicate with each other. It is written in PHP and supports many database engines including, MySQL, Oracle Database, SQLite, PostgreSQL, etc. It comes with hundreds of style and image packages that help you to customize your board.
In this post, we will show you how to install phpBB on Ubuntu 20.04.
Table of Contents
Prerequisites
- A Ubuntu 20.04 VPS with root access enabled or a user with sudo privileges.
Log in via SSH and Update your System
First, you will need to log in to your Ubuntu 20.04 VPS via SSH as the root user:
ssh root@IP_ADDRESS -p PORT_NUMBER
Next, run the following commands to upgrade all installed packages on your VPS:
apt-get update -y
Once all the packages are updated, restart your system to apply the changes.
Install Apache, PHP and MariaDB
First, you will need to install the Apache, MariaDB, PHP, and other required PHP extensions to your server. Run the following command to install all the packages:
After installing all the packages, start the Apache and MariaDB service using the command given below:
Create a Database and User for phpBB
Now, you will need to create a database and user for phpBB. First, log in to the MariaDB with the following command:
Once you are log in, create a database and user with the following command:
Next, flush the privileges and exit from the MariaDB with the following command:
Download and Configure phpBB
First, go to the phpBB official download page and download the latest version of phpBB using the following command:
Once the download is completed, unzip the downloaded file with the following command:
Next, move the extracted directory to the Apache web root directory:
Next, change the ownership and permission of the phpBB directory:
Create an Apache Virtual Host for phpBB
Next, you will need to create an Apache virtual host configuration file to host the phpBB on the internet.
Add the following configuration:
Save and close the file then activate the phpBB virtual host and Apache rewrite module with the following command:
Finally, restart the Apache service to apply the changes.
You can also check the status of the Apache using the following command:
You will get the following output:
Finalizing the phpBB Installation
At this point, Apache virtual host is configured to serve the phpBB. Now, open your web browser and access the phpBB web installation wizard using the URL http://phpbb.example.com/install. You will be redirected to the following page:
Click on the Install button to start the installation. You should see the Administrator configuration page:
Provide your admin username and password, and click on the Submit button. You should see the database configuration page:
Provide your database information and click on the Submit button. You should see the server configuration page:
Provide the protocol, website URL, port, and click on the Submit button. You should see the email configuration page:
Provide your desired options and click on the Submit button. You should see the board configuration page:
Select the language, type board name, and description, and click on the Submit button. Once the installation has been finished, you should see the following page:
Click on the Take me to the ACP button. You should see the phpBB dashboard on the following page:
Of course, if you are one of our Ubuntu Hosting customers, you don’t have to install phpBB on your Ubuntu 20.04 VPS – simply ask our admins, sit back, and relax. Our admins will install phpBB on Ubuntu 20.04 for you immediately.
PS. If you liked this post about how to install phpBB on Ubuntu 20.04 VPS, please share it with your friends on the social networks using the buttons below, or simply leave a comment in the comments section. Thanks.
Could not connect to the database, see error message below.
Access denied for user ‘phpbb’@’localhost’ (using password: YES)
You should check if you are using the correct password for the database user ‘phpbb’.
Thank you for this fine tutorial.
Some comments:
1. should remove zip file after you have expanded it
2. after completing the install screens you need to delete the folder
/var/www/html/phpbb/install
(and all its contents)
before you can access the board.
3. Access the board in your browser at
http://youripaddres/phpbb/
Thanks again