How to install PunBB on OpenSUSE Leap 42.3

To install PunBB on OpenSUSE leap 42.3

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 so simple to install PunBB on OpenSUSE Leap 42.3.

Requirements
LAMP Stack
Apache
Mariadb
PHHP 7
zypper in php php-mysql php-gd php-mbstring php-common


Installing PunBB

In order to install PunBB, you need the latest stable installation package of it. So get the download link from its official website and fetch the package by using the wget command along with that link in the following method.

linuxhelp:~ # wget http://punbb.informer.com/download/punbb-1.4.4.zip
--2017-11-22 13:43:06--  http://punbb.informer.com/download/punbb-1.4.4.zip
Resolving punbb.informer.com (punbb.informer.com)... 208.88.224.220
Connecting to punbb.informer.com (punbb.informer.com)|208.88.224.220|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 465057 (454K) [application/zip]
Saving to: ‘ punbb-1.4.4.zip’ 

100%[==============================================================================================================================================> ] 465,057     --.-K/s   in 0.02s   

2017-11-22 13:43:10 (27.1 MB/s) - ‘ punbb-1.4.4.zip’  saved [465057/465057]

Once it is downloaded, you should extract the package in Apache document root by running the following command.

linuxhelp:~ # unzip  punbb-1.4.4.zip -d /srv/www/htdocs/
Archive:  punbb-1.4.4.zip
   creating: /srv/www/htdocs/punbb-1.4.4/
   creating: /srv/www/htdocs/punbb-1.4.4/data-style/
   creating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/
  inflating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/Oxygen_ie6.css  
  inflating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/Oxygen_ie7.css  
   creating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/font/
  inflating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/font/responsivenav.svg  
  inflating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/font/responsivenav.ttf  
  inflating: /srv/www/htdocs/punbb-1.4.4/data-style/Oxygen/font/responsivenav.eot  
.
.
.
inflating: /srv/www/htdocs/punbb-1.4.4/lang/English/admin_ranks.php  
  inflating: /srv/www/htdocs/punbb-1.4.4/lang/index.html  
  inflating: /srv/www/htdocs/punbb-1.4.4/delete.php  
  inflating: /srv/www/htdocs/punbb-1.4.4/ChangeLog  
  inflating: /srv/www/htdocs/punbb-1.4.4/search.php  
  inflating: /srv/www/htdocs/punbb-1.4.4/help.php  

And then move inside Apache document root location by using the following command.

linuxhelp:~ # cd /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # ls -l
total 16
drwxrwxrwx 2 wwwrun www  4096 Oct  9 23:15 gif
-rwxrwxrwx 1 wwwrun www  2356 Mar 18  2017 info2html.css
drwxr-xr-x 9 root   root 4096 Oct 28  2015 punbb-1.4.4

From that location, you can rename the extracted directory as per your convenience.

linuxhelp:/srv/www/htdocs # mv punbb-1.4.4 punbb

And then, provide appropriate owner and file execution permissions by invoking the following commands.

linuxhelp:/srv/www/htdocs # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # chmod -R 775 /srv/www/htdocs/

Next, you need to make an important configuration to the Apache VirtualHost for your PunBB application. You need to open the .conf file by running the following command.

linuxhelp:/srv/www/htdocs # vim /etc/apache2/conf.d/punbb.conf

And when the .conf file gets opened, you need to make the following configuration to it.

< VirtualHost *:80> 
DocumentRoot " /srv/www/htdocs" 
ServerName www.linuxhelp1.com
< Directory " /srv/www/htdocs/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 


After the configuration is made, you should restart Apache service. Run the following command for the same purpose.

linuxhelp:/srv/www/htdocs # systemctl restart apache


Now, switch to your browser and type http://your domain in the URL field. Choose the punbb directory.

You will be taken to the PunBB installer. In the Page 1 of the installer, you need to set up the database.

In the Page 2, you beed to enter details for setting up the Forum Administrators.

And in the page 3 of the installer, you need to give the URL and click on the Start Install option. Check all the details you' ve entered before you click the install button.

The installation is done, you are now asked to go to the forum index.

The forum index displays the list of the forum threads.

You can check the user list in it as well.


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

FAQ
Q
Does PunBB support BBCode and if so, how do I use it?
A
Yes, PunBB supports BBCode. It supports a subset of the tags that are present in many other bulletin boards. The tags supported by PunBB are bold, underline, italic, color, url, email, img, quote and code. Usage instructions can be found in the script help.php. Links to this script can be found to the left or text areas that allow BBCode (e.g. when posting a message).
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 add my own copyright notice to the page footer?
A
Yes, but you may not alter the original copyright in such a way that it loses it's original "meaning". It must, in other words, be absolutely clear who is the copyright holder of PunBB. Addin