Installing PhpBB3 on FreeBSD

From MineOS Wiki
Jump to navigation Jump to search

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

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

<syntaxhighlight>

  1. COMMON GATEWAY INTERFACE (CGI) SETTINGS
  2. These settings can be used to run CGI applications. Use the 'php-fcgi'
  3. tool to start PHP as a FastCGI daemon.
  4. CGIhandler = /usr/local/bin/perl:pl

CGIhandler = /usr/local/bin/php-cgi:php # this line MUST say /usr/local/bin, rather than /usr/bin

  1. CGIhandler = /usr/local/bin/python:py
  2. CGIhandler = /usr/local/bin/ruby:rb
  3. CGIhandler = /usr/local/bin/ssi-cgi:shtml
  4. CGIextension = cgi

</syntaxhighlight>

Add php hosting directory entry

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

<syntaxhighlight> Directory {

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

} </syntaxhighlight>

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