How To Install PhpBB On CentOS 7

To Install phpBB on CentOS 7

Pre-requirements

install LAMP(apache, mariadb, php7)

in mariadb (create database and user and give privilages to that user)

For php

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

php modules (yum install -y mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml)

Installing phpBB

Before you begin the installation, you should enter your html location from where you' ll download the installation package.


\[root@linuxhelp ~\]# cd /var/www/html/

From there, you shall download the phpBB installation package with the help of the following command.


\[root@linuxhelp html\]# wget https://www.phpbb.com/files/release/phpBB-3.2.1.zip \--2017-11-10 12:09:00-- https://www.phpbb.com/files/release/phpBB-3.2.1.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: 7767156 (7.4M) \[application/zip\]
Saving to: &lsquo phpBB-3.2.1.zip&rsquo 

100%\[======================================> \] 77,67,156 843KB/s in 11s

2017-11-10 12:09:12 (705 KB/s) - &lsquo phpBB-3.2.1.zip&rsquo  saved \[7767156/7767156\]

Once it is done, you shall extract the downloaded package by running the following command.


\[root@linuxhelp html\]# unzip phpBB-3.2.1.zip Archive: phpBB-3.2.1.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/language/en/posting.php
inflating: phpBB3/language/en/captcha\_recaptcha.php
inflating: phpBB3/language/en/viewtopic.php
creating: phpBB3/language/en/help/
.
.
inflating: phpBB3/images/upload\_icons/zip.gif
inflating: phpBB3/images/upload\_icons/mid.gif
inflating: phpBB3/images/index.htm
inflating: phpBB3/images/spacer.gif


Once it is done, you should change the ownership and permission of file in html location.


\[root@linuxhelp html\]# chown -R apache.apache phpBB3
\[root@linuxhelp html\]# chmod -R 775 phpBB3

Later you ought to create VirtualHost by creating new .conf file as follows.


\[root@linuxhelp html\]# vim /etc/httpd/conf.d/phpbb.conf

In it, add the following modifications.


< VirtualHost \*:80> 
ServerAdmin admin@phpbb.ab
DocumentRoot /var/www/html/phpBB3/
ServerName phpbb.ab
ServerAlias www.phpbb.ab
< Directory /var/www/html/phpBB3/> 
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
< /Directory> 
ErrorLog /var/log/httpd/phpbb.ab-error\_log
CustomLog /var/log/httpd/phpbb.ab-access\_log common
< /VirtualHost> 

Then, you should make an entry in hosts file as follows.


\[root@linuxhelp html\]# vim /etc/hosts

And in that file, you should add the following line.


< machine ip >  domain\_name

Once it is done, you shall restart the apache service by running the following command.


\[root@linuxhelp html\]# systemctl restart httpd

You shall now continue the process via browser. Open the browser and enter http://phpbb.com/install as URL. The installation module of phpBB appears on your screen.

Click on the Install button.

Fill all the admin details and click the submit option.

Also, you need to fill all the database details and click submit option.

Fill server configuration and click submit.

You should also fill email configuration details and click submit.

And after that, you need to fill site details and click submit.

The installation process is taking place now.

Once the installation is complete, you can click on the ACP option to open the application.

You can view the admin page.

With this, the installation of phpBB on CentOS 7 comes to an end.

Tag : CentOS phpBB
FAQ
Q
I keep getting Mail sending errors when I (or my users) post/send PM's/etc.how to solve this issue ?
A
This error will occur if phpBB cannot send mail. phpBB can send email two ways; using the PHP mail() function or directly via SMTP. Some hosting providers limit the mail() function to prevent
Q
Hi, i can't install phpmyadmin on my system, it seem's no package available on centos . What can I do ?
A
Please install the EPEL repository before you try to install phpmyadmin, use the below command if the epel repo is not installed yum install epel-release -y
Q
I just cannot get gallery avatars to appear.what can I do ?
A
phpBB categorises gallery avatars and it does this by reading through folders contained in the location you specified as being the gallery path. For example, if you set the gallery path to im
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
Q
what are the features?
A
Features • Intuitive web interface • Support for most MySQL features: o browse and drop databases, tables, views, fields and indexes o create, copy, drop, rename and alter databases, tables,