In this tutorial we are going to provide you with step-by-step instructions on how to install PunBB on a Debian 8 VPS.
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.
This tutorial was tested and written for a Debian VPS, but it should work on any Linux distribution.
This install guide assumes that Apache, MySQL and PHP are already installed and configured on your PunBB virtual server. At the time of writing this tutorial, the latest stable version of PunBB is 1.4.3 and it requires:
- PHP 5 or higher with the MySQL PHP extension enabled
- Apache Web Server >= 2.0 compiled with mod_rewrite module and with the following directives allowed: DirectoryIndex, Deny, Allow, Options, Order, AddHandler, RewriteEngine, RewriteBase, RewriteCond and RewriteRule.
- MySQL, PostgreSQL or SQLite installed on your virtual server.
So, let’s start with the installation procedure. Download the latest version of PunBB available at ‘http://punbb.informer.com/wiki/downloads’ to a directory of your virtual server and extract it using the following commands:
PunBB requires a database to store it’s data, so create a new MySQL database for PunBB to use and assign a user to it with full permissions:
Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘punbb.conf’ on your virtual server:
Then, run the following command:
Alternatively, use the a2ensite to enable the punbb.conf configuration in Apache:
Edit the ‘punbb.conf’ configuration file:
and add the following lines to it:
Restart the Apache web server for the changes to take effect:
Move the PunBB installation files to the document root directory defined in the virtual host directive above:
Set the proper ownership of PunBB files and directories:
Open your favorite web browser and navigate to http://your-domain.com/admin/install.php . Once you do that, you will be taken to the first page of the PunBB web installer. Enter the MySQL database information, set administrator username and password and start the installation. Once the installation is complete, log in at http://your-domain.com/admin/index.php as administrator user and configure your PunBB forum according to your needs.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install PunBB for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.