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 Find Services That Need a Restart After Updates with needrestart
Find services using outdated libraries with needrestart on Ubuntu. Read restart reports, review automatic restart policy and plan maintenance safely.
UbuntuHow to Enable Brotli Compression in Nginx on Ubuntu 24.04
Enable Brotli in Ubuntu Nginx, preserve gzip fallback, verify response headers and avoid stale precompressed assets. Measure savings on your own files.
UbuntuHow to Prevent Overlapping Cron Jobs with flock
Prevent overlapping cron jobs with flock. Use a shared lock, understand skipped runs and verify that every entry point follows the locking policy.
UbuntuSecuring Ubuntu 24 SSH and other best practices
How to Lock Down Your Ubuntu 24 Server: A Beginner's Guide So, you just spun up a brand new Ubuntu 24 server. You may find a lot of SSH brute force logins failures.
