phpBB is an Internet forum package in the PHP scripting language. The name “phpBB” is an abbreviation of the PHP Bulletin Board.

Step1. Install packages

yum install httpd mariadb mariadb-server   

Step2. Start services

systemctl start httpd
systemctl enable httpd
systemctl status httpd

systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb

Step3. Enable HTTP port on the firewall

firewall-cmd --zone=public --permanent --add-service=httpĂ‚ 
firewall-cmd --reload

Step4. Setup Database

mysql_secure_installation

Step5. Create a database and user

mysql -u root -p
 
show databases;
Create database phpbbdb;
CREATE USER 'phpbbuser'@'%' IDENTIFIED BY 'redhat@123';
GRANT ALL PRIVILEGES ON phpbbdb.* TO 'phpbbuser'@'%';
select Host,User,Password from user;
FLUSH PRIVILEGES;
quit
Bye

Step7. Install/configure PHP repository

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72

Step8. Install packages

yum install php-mysql php-gd php-ldap php-xml php-xmlrpc php-mbstring php-mcrypt curl zlib libtool-ltdl php-pdo

Step9. Download the phpBB software

yum install wget unzip
wget https://download.phpbb.com/pub/release/3.2/3.2.8/phpBB-3.2.8.zip

Step10. Unzip the file and move in HTML folder

unzip phpBB-3.2.8.zip
mv phpBB-3.2.8  /var/www/html/phpBB

Step11. Set the permission

chown -R apache.apache /var/www/html/phpBB
 
cd /var/www/html/phpBB
chmod 660 images/avatars/upload/ config.php
chmod 770 store/ cache/ files/

Step12. Create a virtual host file

vi /etc/httpd/conf.d/phpbb.conf 

<VirtualHost *:80>
     ServerAdmin localhost
     DocumentRoot "/var/www/html/phpBB/"
     ServerName 192.168.33.51
     ErrorLog "/var/log/httpd/phpbb-error_log"
     CustomLog "/var/log/httpd/phpbb-access_log" combined

     <Directory "/var/www/html/phpBB/">
         DirectoryIndex index.html index.php install.php
         Options FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
</VirtualHost>

Step13. Start the service.

systemctl start httpd

Step14. Open the web browser.

http://<server ip>/phpBB

2 COMMENTS

  1. Completely I share your opinion. In it something is also I think, what is it excellent idea.
    [url=http://megabreastsize.pro]megabreastsize.pro[/url]

LEAVE A REPLY

Please enter your comment!
Please enter your name here