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.
Comments ( 0 )
No comments available