How to install PhpBB on Linux mint 18.03

To install PhpBB on Linux mint 18.03

phpBB is an open source forum software that provides a virtual space for discussion among the members of your website. It has a variety of features like flat topic structure, sub-forums, forum-specific data-styles, user groups, group-based permissions, database query and template caching, support for PHP 7, multiple database engines and much more.

Prerequisites

To install LAMP(Apache, MariaDB and php7.0)
In MariaDB (create database and user and give privileges to that user)

Php installation with required following modules
add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common 
php7.0-xmlrpc php7.0-soap php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Installation

Download a phpBB cms package using by wget command.

linuxhelp ~ # wget https://www.phpbb.com/files/release/phpBB-3.2.2.zip
--2018-08-18 05:43:40--  https://www.phpbb.com/files/release/phpBB-3.2.2.zip
Resolving www.phpbb.com (www.phpbb.com)... 140.211.15.244
Connecting to www.phpbb.com (www.phpbb.com)|140.211.15.244|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7934361 (7.6M) \[application/zip\]
Saving to: ‘phpBB-3.2.2.zip’

phpBB-3.2.2.zip             100%\[=========================================>\]   7.57M  1.12MB/s    in 8.1s    

2018-08-18 05:43:50 (958 KB/s) - ‘phpBB-3.2.2.zip’ saved \[7934361/7934361\]

The downloaded package is a zip file, so we need to unzip the package now.

linuxhelp ~ # unzip phpBB-3.2.2.zip 
Archive:  phpBB-3.2.2.zip
   creating: phpBB3/
   creating: phpBB3/language/
   creating: phpBB3/language/en/
  inflating: phpBB3/language/en/viewforum.php  
  inflating: phpBB3/language/en/memberlist.php  
  inflating: phpBB3/language/en/install.php  
.
.
.
  inflating: phpBB3/images/upload\_icons/flash.gif  
  inflating: phpBB3/images/upload\_icons/zip.gif  
  inflating: phpBB3/images/upload\_icons/mid.gif  
  inflating: phpBB3/images/index.htm  
  inflating: phpBB3/images/spacer.gif

Change the ownership and permission for phpBB directory

linuxhelp ~ # ls 
phpBB3  phpBB-3.2.2.zip
linuxhelp ~ # chown -R www-data:www-data phpBB3/
linuxhelp ~ # chmod -R 775 phpBB3

Move the composer directory into the /html location

linuxhelp ~ # mv phpBB3/ /var/www/html/

Create a new virtual host configuration to accessing the phpBB cms application

linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim php.conf
 ServerName www.linuxhelp1.com
DocumentRoot /var/www/html/phpBB3/
 AllowOverride All
allow from all 

Enable the site access.

linuxhelp sites-available # a2ensite php.conf
Enabling site php.
To activate the new configuration, you need to run:
  service apache2 reload

Enable the rewrite module.

linuxhelp sites-available # a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart

Entry to the host file

linuxhelp sites-available # vim /etc/hosts  

Then we need to restart the apache2 service

linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL of http://local IP (or) domain name

The installation setup of phpBB appears on your screen. Proceed with the installation.

In the next page, you need to fill the admin detail and click Submit.

In the next page, you need to fill database details and click Submit.

Next, you should fill server configuration details and click Submit.

After that, you need to fill the email-configuration details and click Submit.

on the below following page, you need to give the site details and click Submit.

phpBB is getting installed now.

The installation is now complete, Click on ‘Take me to ACP.’

The admin page of the phpBB now appears on the screen.

with this, the method to install phpBB on Linuxmint-18.03 comes to an end.

FAQ
Q
What is PhpBB Application?
A
phpBB is an open source bulletin board forum software that provides a virtual space for discussion among the members of your website. It has a huge variety of features like flat topic structure, sub-forums, forum-specific styles, user groups, group-based permissions, database query and template caching, support for PHP 7, multiple database engines and much more.
Q
How to provide host file entry for PhpBB?
A
To provide host file entry for PhpBB,

# vim /etc /hosts

Q
Why do I need to register on PhpBB?
A
You may not have to, it is up to the administrator of the board as to whether you need to register in order to post messages. However; registration will give you access to additional features not available to guest users such as definable avatar images, private messaging, emailing of fellow users, user group subscription, etc. It only takes a few moments to register so it is recommended you do so.
Q
what are the features in phpBB?
A
Features of phpBB are
• Intuitive web interface
• Support for most MySQL features:
.To browse and drop databases, tables, views, fields and indexes
.To create, copy, drop, rename and alter databases, tables,
Q
what are the system requirements ?
A
phpBB has a few requirements which must be met before you are able to install and use it.
A webserver or web hosting account running on any major Operating System with support for PHP
• A SQ