• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Install phpBB With Apache on Ubuntu 16.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
26
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: Install Apache
  3. Step 2: Install MySQL
  4. Step 3: Install PHP
  5. Step 4: Install phpBB
  6. Step 5: Create a MySQL database for phpBB
  7. Step 6: Install phpBB
  8. Step 7: Finish the installation
  9. Want to contribute?


PhpBB is an open source bulletin board program. This article will show you how to install phpBB on top of an Apache webserver on Ubuntu 16.04. It was written using phpBB 3.2.1, however the instructions provided here may also work for newer versions of phpBB.

Prerequisites

This article assumes that you have already created a Vultr Cloud Compute instance with Ubuntu 16.04 and have logged in as root.

Step 1: Install Apache

Update your repository list.

apt-get update

Install the Apache web server.

apt-get install apache2

Step 2: Install MySQL

phpBB runs on a LAMP stack. Before phpBB can be installed, you will need to install MySQL and PHP.

apt-get install mysql-server php7.0-mysql

Once you enter the above command, you will be prompted for a MySQL password. Enter any password of your choice.

Complete the installation.

/usr/bin/mysql_secure_installation

You will be asked for a password. Enter the password you just created and continue with the installation.

Would you like to setup VALIDATE PASSWORD plugin? [Y/N] N
Change the root password? [Y/N] N
Remove anonymous users? [Y/N] Y
Disallow root login remotely? [Y/N] Y
Remove test database and access to it? [Y/N] Y
Reload privilege tables now? [Y/N] Y

Step 3: Install PHP

You will next need to install PHP 7.0 along with some of its modules that are required by phpBB.

apt-get install php7.0 php7.0-mcrypt libapache2-mod-php7.0 php7.0-curl php7.0-json php7.0-cgi php7.0-xml

Step 4: Install phpBB

Now that you have installed the required dependencies, you can proceed and install phpBB. Download the latest phpBB package to the webserver’s root directory.

cd /var/www/html
wget https://www.phpbb.com/files/release/phpBB-3.2.1.zip

Unzip the downloaded archive.

apt-get install unzip
unzip phpBB-3.2.1.zip

Move the phpBB files to your server’s root directory.

mv ./phpBB3/* .

Delete the default Apache index page.

rm index.html

Set the appropriate file permissions.

chown -R www-data:www-data /var/www/html/
chmod 660 images/avatars/upload/ config.php
chmod 770 store/ cache/ files/

Step 5: Create a MySQL database for phpBB

Before phpBB can be installed, a MySQL database needs to be created. Access the MySQL console.

mysql -u root -p

Enter the MySQL password you created previously. Once you have logged in, create a new database.

mysql>CREATE DATABASE phpbb;

Next, create a new MySQL user and grant it privileges to the database you just created. You can replace username and password with any username and password of your own choice.

mysql>GRANT ALL PRIVILEGES on phpbb.* to 'username'@'localhost' identified by 'password';
mysql>FLUSH PRIVILEGES;

Exit the MySQL console.

mysql>exit

Step 6: Install phpBB

Restart the Apache web server.

systemctl restart apache2

Open a browser window and type in your server’s IP address or domain name followed by /install, for example: http://{your-server-ip}/install. The phpBB installation page will appear. Click on the install tab and then on the “install” button. Enter the administrator username, password, and email of your choice and click on the “Submit” button. This will be used to login to the admin panel. In the next step you will be prompted for the MySQL parameters. You will need to enter the username, password and database name you chose in Step 6.

Database type: MySQL with MySQLi Extensions
Database server hostname or DSN: localhost
Database server port: <leave blank>
Database username: username
Database password: password
Database name: phpbb
Prefix for tables in database: phpbb_

Click on the “Submit” button once you have entered the data and proceed through the rest of the interactive installer. Once the installation is complete, you can click on Take me to the ACP to enter the phpBB administration panel.

Step 7: Finish the installation

Once you have completed the online installer, you must delete the install directory in order to activate your phpBB installation.

cd /var/www/html
rm -r install

You have successfully installed phpBB.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Installing Gentoo Linux on a Vultr Server

Next Post

How To Prevent Concurrent Connections On Linux Using IPTables

Next Post

How To Prevent Concurrent Connections On Linux Using IPTables

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet