PunBB: version 1.2.5
In short, PunBB is a fast and lightweight PHP-powered discussion board. It is released under the GNU Public License. Its primary goal is to be a faster, smaller and less graphic alternative to otherwise excellent discussion boards such as phpBB, Invision Power Board and vBulletin. PunBB has fewer features than many other discussion boards, but is generally faster and outputs smaller pages.
Installation Procedure 
Quick Tips 


The script can be downloaded from here.

The file that you will download is saved in .zip format; this is a compressed bundle containing the files in the distribution. Unzip this archive in a temporary directory on your computer using decompression software.

Start your FTP software and upload all content from the upload/ directory to your web server preserving the file structure.
Note: Let's assume you install the contents of the script to /var/www/html/forum/

Run install.php from the forum root directory (e.g. open http://www.mywebsite.com/forum/install.php in your browser). Follow the instructions.

Enter your DB and Administrator account info. Please use "127.0.0.1" for the DB host address.


To finalize the installation all you need to do is to copy and paste the text in the text box below into a file called config.php and then upload this file to the root directory of your PunBB installation. Make sure there are no linebreaks or spaces before <?php and after ?> in the file. You can later edit config.php if you reconfigure your setup (e.g. change the database password or ).


Congratulations, the installation PunBB is now complete.

I keep seeing messages like "Bad HTTP_REFERER.". How can I get rid of them?
When a script in PunBB receives form data, it checks the CGI variable HTTP_REFERER (misspelled in the HTTP standard) to make sure that the form was submitted from the correct script. The check is only made for administrators and moderators. The referrer check is a security mechanism that prevents malicious users from deceiving administrators and moderators by silently and invisibly submitting a form from an external page to one of the scripts in PunBB.
The referrer check can fail for a number of reasons. The check relies on the variable "Base URL" from the options page in the admin interface. If "Base URL" is not correctly set, the referrer check will fail. It is also vital that you visit the forums by entering the exact URL found in "Base URL" into your browsers address bar. If "Base URL" is set to http://somehost.com and you visit the forums by going to http://www.somehost.com (note the www part), the check will fail.
Another common reason for the check to fail is that you are browsing the forum through a proxy or firewall of some sort that is stripping HTTP_REFERER from all requests. Norton Internet Security and Norton Personal Firewall are known to strip HTTP_REFERER in its default setup. Some popup/ad stoppers are also known to do this (most of them don't though).
Note: You can find information on how to setup Norton Internet Security and Norton Personal Firewall to not strip referrer information at the following addresses:
2002 and earlier
2003 and 2004
Avatar uploads don't work. What could be wrong?
In order for avatar uploads to work, the user account under which the web server 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". If you don't know what values to enter, try entering 0777 (or just 777 if you can only enter three digits).
Back to Tutorial Top