How To Install PunBB on CentOS 6

To Install PunBB on CentOS 6

PunBB is an open source, lightweight forum software written in PHP with simple layout and clean design. In general, it is faster than other forum software and it is very easy to administrate and moderate. The default theme of PunBB supports responsive design, so it is mobile and tablet friendly. It is really simple to install PunBB and this article demonstrates the method to install PunBB on CentOS 6.

Pre-requirement
Install LAMP (httpd, mysql-server, php )
In mysql (create database, user and give privileges to user)
For install php
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

php module (yum -y install php70w php70w-gd php70w-imap php70w-ldap php70w-odbc php70w-pear php70w-xml php70w-xmlrpc php70w-mbstring php70w-mcrypt php70w-mysql php70w-snmp php70w-soap php70w-tidy curl curl-devel)

Installing PunBB

If you want to download the installation package for PunBB, make sure you get the latest and stable version. So, make sure you use the wget command along with its download link in the following manner. You should download the package in HTML location.

[root@linuxhelp html]# wget https://codeload.github.com/punbb/punbb/zip/master
--2017-11-30 14:03:20--  https://codeload.github.com/punbb/punbb/zip/master
Resolving codeload.github.com... 192.30.255.120, 192.30.255.121
Connecting to codeload.github.com|192.30.255.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 463252 (452K) [application/zip]
Saving to: “ master” 

100%[======================================> ] 463,252      301K/s   in 1.5s    

2017-11-30 14:03:22 (301 KB/s) - “ master”  saved [463252/463252]

Once the file is downloaded, you need to extract the downloaded file as follows.

[root@linuxhelp html]# unzip master 
Archive:  master
b20a80ae87ec5285df5d0e0de1bb64e5923e603f
   creating: punbb-master/
  inflating: punbb-master/.htaccess.dist  
  inflating: punbb-master/COPYING  
  inflating: punbb-master/ChangeLog  
.
.
.
inflating: punbb-master/viewforum.php  
  inflating: punbb-master/viewtopic.php  

Later, you need to rename the extracted directory by running the following command.

[root@linuxhelp html]# mv punbb-master punbb

And then, you are required to change the ownership of extracted directory by making use of the chown command in the following manner.

[root@linuxhelp html]# chown -R apache.apache punbb/

Later, you need to create a VirtualHost for PunBB. Run the following command for the same reason.

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

In that file, you need to make the following modifications.

< VirtualHost *:80> 
ServerAdmin admin@linuxhelp12.com
DocumentRoot /var/www/html/punbb/
ServerName linuxhelp12.com
ServerAlias www.linuxhelp12.com
< Directory /var/www/html/punbb/> 
Options FollowSymLinks
AllowOverride All
< /Directory> 
ErrorLog /var/log/httpd/linuxhelp12.com-error_log
CustomLog /var/log/httpd/linuxhelp12.com-access_log common
< /VirtualHost> 

Once the configuration is done, you need to make an entry in hosts file. So, open the host file by running the following command.

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

And in that file, you need to add the following line.

< ipaddr>    domainname

Once it is all done, you need to restart the httpd service by making use of the following command.

[root@linuxhelp html]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Now, let us continue the process from the browser. Open your browser and give http://yourdomain as URL. The installer of PunBB appears on your screen. Click the install option.

In the next page, you need to fill the database and admin details and then click on the Start Install option.

The installation is now complete. Click to go to the forum index to complete the procedure and view your Forum space.

The forum index page that appears resembles the one displayed on the following image. Click on the Login option.

In the following page, enter your login credentials and click Login.

You are now logged in as an admin.

With this, the installation of PunBB comes to an end.

Tag : CentOS
FAQ
Q
How do I grant a user moderator access to a certain forum?
A
The first step is to change the status of the user so that he/she is a moderator. This can be done in the user's profile. Scroll down to the bottom of the page, select "Moderator" in the drop-down menu and click "Update status".
Q
Avatar uploads doesn't work. What could be wrong?
A
In order for avatar uploads to work, the user account under which the webserver runs must have write permissions to the avatar directory. In UNIX (or UNIX-like) operating systems, this is usually done via the command "chmod". Most FTP clients have support for this and it is usually done by right-clicking the directory and selecting something along the lines of "Attributes" or "Permissions".
Q
What license is PunBB released under?
A
PunBB is released under The GNU General Public License. In short terms this means that PunBB is free to download, use, distribute, modify and even charge for. However, if any of these modific
Q
May I remove the copyright notice from the source code?
A
No. The copyright notice in all the source files must be left intact. Any modification or removal of this copyright is illegal under the terms of the GNU General Public Licence.
Q
May I remove the copyright notice from the page footer?
A
Yes, but please don't. If you must, please try to keep at least "Powered by PunBB" with the link to this site intact