Summary

latest news

09.03.2007

MOHA Chat 0.1rc1 was released on sourceforge.net.

read more ...

06.03.2007

MOHA Chat 0.1b10 was released on sourceforge.net with PostgreSQL support.

read more ...

sponsors

Advertise here?

other information

Support This Project

Google PageRank

Home
  • docs
  • installation guide

Installing MOHA Chat

Print View

Pre-requisities

Required software are :

  • Apache Web server with PHP 5.x or higher. (PHP 5.1 or above is recommended)
  • A MySQL server, 4.1.0 or higher.

Web installer

If you have extracted the source into your document root, direct your browser to <root of MOHA Chat Installation>/installer/ and follow the simple instructions.

Post installation

Please remember to give write access to the cache folder /cache for the web server user, or some of the plug-ins will not work (Plug-ins are unable to cache content they retrieved from external servers).

Try this command from inside MOHA Chat root. chmod 777 cache/

Manual installation

Creating Database tables

WARNING - REMEMBER: ALWAYS BACK UP YOUR DATABASE BEFORE ATTEMPTING TO INSTALL OR UPGRADE!!!

Run the queries in <MOHA Chat Source>/dist/dbScript.sql on the database you wish to create the tables required to run MOHA Chat. (See Setting up the database)

Configuring MOHA Chat

Rename <MOHA Chat Source>/config/configuration.php-dist to <MOHA Chat Source>/config/configuration.php

Now set the parameters in <MOHA Chat Source>/config/configuration.php

Sample Configuration File Contents

<?php

/**
* dbms of your choice
* Currently supports
* - MySQL and PostgreSQL
*/

$dbms = "mysql";

/**
* Database connection information
*
*/

$databaseHost       = "localhost";
$databaseName       = "chat";
$databaseUser       = "root";
$databasePassword    = "";

/**
* User table information
*
* If you plan to use your own login page leave these blank
*
*/

$usersTable       = "users";
$usernameField       = "UID";
$passwordField       = "PW";

// Title
$title             = "MOHA Chat";

/**
* Links required to redirect users
*
*/

$registration      = 0; // 0 = internal, 1 = external
$forgotPasswordLink = "/login/forgot";
$registerLink       = "/signup";
$loginLink         = "login/";

// All messages will be archived if set to true
$archive          = true;

$tablePrefix       = "";

// Passowrd Algorithm to use, even a custom function would do, but PWSecurity cryptPW should be aware
$pwAlgo          = "md5";
?>

Post installation

Please remember to give write access to the cache folder /cache for the web server user, or some of the plug-ins will not work (Plug-ins are unable to cache content they retrieved from external servers).

Try this command from inside MOHA Chat root. chmod 777 cache/

Congratulations! You have MOHA Chat Installed on your server/system

With your web browser go to the root of MOHA Chat Installation

Last modified on Monday, 14th September 2015

More sponsors