Forum Setup

You are viewing an old version of this entry, click here to see latest version.

HaXe forum setup


The Haxe forum is open sourced by Nicolas, if you wish to improve it for your own use or for the community here are instructions for getting setup and any notes on installation.

In order to setup the wiki


Download the latest sources.

Install Haxe + Neko

  • Requires Haxe 2.09+, currently only available from the nightly builds.

Install mtwin and templo libraries

  • haxelib install mtwin
  • haxelib install templo

Install MySql Database Server

Configure Website

  • Copy config.tpl.xml as config.xml and configure the db field with your local mysql database server
    • db="mysql://root:@localhost:3306/hxwiki"

Create temploc executable

  • cd www
  • haxelib run templo
  • cd ../

Compile and Run

  • haxe project.hxml
  • cd www
  • nekotools server -rewrite
  • Visit http://localhost:2000/
    • It should automaticly create the database tables
    • refresh to start using!

Default Admin Login


User: admin
Pass: admin

Forum Setup

To setup the forum :

  • go to your hxwiki database
  • go to grouprights table. For each group do the following
    • copy or duplicate each row, changing path to forum and isForum to 1.
    • save the row.
  • go to forumtheme table. Insert a new row with path set to forum.
    • save the row.
  • (re)start nekotools server -rewrite
  • visit http://localhost:2000/forum
    • you should see an empty forum!

Config Options


Website Theme

  • set style="haxe" for old design
  • set style="haxe2" for new design

Enable Google Search

  • set gsearch gsearch="1"

Troubleshooting

  • Access denied for user 'root'@''...
    Read here for possible reasons and solutions. You probably need to add a password in the config.xml:
    db="mysql://root:yourPassword@localhost:3306/hxwiki"
  • Field 'x' doesn't have a default value
    Read here for possible reasons and solutions. You probably have strict mode enabled in your my.ini config file.
    You can remove STRICT_TRANS_TABLES from
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
version #14417, modified 2012-07-12 03:48:09 by jan_flanders