PunBB is a lightweight PHP-based internet discussion board system. It is released under the GNU General Public License.

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

Step5. Setup database


Step6. Create a database and user

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

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 PHP 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 punbbclear software

yum install wget unzip
wget http://punbb.informer.com/download/punbb-1.4.4.zip

Step10. Unzip the file and move to HTML folder

unzip punbb-1.4.4.zip
mv punbb-1.4.4  /var/www/html/punbb

Step11. Set permission

chown -R apache.apache /var/www/html/punbb

Step12. Create a virtual host file

vi /etc/httpd/conf.d/punbb.conf 

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

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

Step13. Start the apache service.

systemctl start httpd 

Step14. Open the web browser.

http://<server ip>/punbb


Please enter your comment!
Please enter your name here