From MineOS Wiki
Jump to navigation Jump to search

Prereqs for these steps

lighttpd (lighttpd) and MySQL (mysqld) daemons running. You can verify this with top:

  632 mysql     20   0 31380 6036 3928 S  0.0  0.8   0:00.01 mysqld
  640 lighttpd  20   0  4336 1348  824 S  0.0  0.2   0:00.00 lighttpd

Getting started

Download phpBB 3.0.8 (bz2) (~1.5MB)

The following instructions will set up a phpBB3 forum at [ip-address]/forum under the Linux user: lighttpd. If you prefer a different path or are using a different lighttpd user, be sure to adjust the values accordingly.

Downloading phpBB3

# cd /var/www/htdocs/
# wget
# tar -xvjf phpBB-3.0.8.tar.bz2
# chown -R lighttpd:lighttpd /var/www/htdocs/
# mv phpBB3 forum

Creating database and user

# mysql
mysql> CREATE USER 'forumun'@'localhost' IDENTIFIED BY 'minecraft2011';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL ON *.* TO 'forumun'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE DATABASE mcforum;
Query OK, 1 row affected (0.00 sec)

mysql> quit

Completing quick install

  • Open your browser to http://[ip-address]/forum/install/index.php, filling in your server's IP address.
Overview page
Install page
Requirements page (top)
  • Ensure all PHP settings are 'Yes' and MySQL is 'Available'
Requirements page (bottom)
  • Ensure all Files and Directories are 'Found, writeable'
Database page
Database confirmation page
Administrator page
Administrator confirmation page
Configuration confirmation page
Create database tables page
Final Stage output
First look at board
  • As the page states, the board is inaccessible while the /install directory exists. Remove the directory:
    • rm -rf /var/www/htdocs/forum/install/
Second look at board
  • A number of phpBB debug warnings occur, which should be suppressed before the forum goes live.
    • Edit /var/www/htdocs/forum/config.php
    • Add the line: error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
    • Note: if you find an easy fix to these errors, please let me know or fill into the wiki yourself!
Adjusted /var/www/htdocs/forum/config.php
  • Congratulations! PhpBB is set up!