Installing PhpBB3 on FreeBSD

From MineOS
Jump to: navigation, search

This page assumes you have already properly installed FreeBSD and the MineOS scripts via the MineOS-on-FreeBSD page.

Contents

Download phpBB

Locate the most recent phpbb3 version, download the file to your server, and extract its contents to: /usr/local/www/hiawatha/phpBB3

A different path may be used in place of phpBB3--be sure to use the same substituted path in the next Hiawatha config step.

Editing Hiawatha.conf

In the CGI settings, adjust the php-cgi path. Edit /usr/local/etc/hiawatha/hiawatha.conf:

Correcting binary paths

# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications. Use the 'php-fcgi'
# tool to start PHP as a FastCGI daemon.
#
#CGIhandler = /usr/local/bin/perl:pl
CGIhandler = /usr/local/bin/php-cgi:php # this line MUST say /usr/local/bin, rather than /usr/bin
#CGIhandler = /usr/local/bin/python:py
#CGIhandler = /usr/local/bin/ruby:rb
#CGIhandler = /usr/local/bin/ssi-cgi:shtml
#CGIextension = cgi

Add php hosting directory entry

At the bottom of the file, add a new entry:

Directory {
        Path = /usr/local/www/hiawatha/phpBB3
        ExecuteCGI = yes
        TimeForCGI = 30
}

Next, restart the Hiawatha service to take put configuration changes into effect.

Downloading required packages

Installing and Securing MySQL

Install and configure PhpBB3

Direct your browser to your server's ip, at the appropriate path: http://[ipaddress]/phpBB3/install/index.php