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 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
<VirtualHost *:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/html/phpBB3/
<Directory /var/www/html/phpBB3/>
AllowOverride All
allow from all
</Directory>
</VirtualHost>

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
<your ip address>     <your domain name>

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
give httpd request

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

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

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

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

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

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

phpBB is getting installed now.
get installing

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

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

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


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Linux Mint CMS tool
user image Author :  Caden