------------------------------------------------------------------------------
$Id: install.txt,v 1.3 2002/09/22 09:05:59 yingz Exp $
MyMarket Installation Instructions (c) 2000 Ying Zhang (ying@zippydesign.com)
------------------------------------------------------------------------------

INTRODUCTION
------------

Before you begin with installing MyMarket, you should know what it is and
have a good understanding of how it works.  For more information on
MyMarket, go to:

	http://mymarket.sourceforge.net/

INSTRUCTIONS
------------

Step 1. Create the MyMarket database

	Create a new database called "mymarket" and grant normal user
	privileges (SELECT, INSERT, UPDATE, DELETE) to the appropriate user
	accounts.  For example, in MySQL you would run:

	mysql> CREATE DATABASE mymarket;
	mysql> GRANT select, insert, update, delete
	    -> ON mymarket.*
	    -> TO mymarket@localhost IDENTIFIED BY 'password'

Step 2. Create MyMarket tables

	Run the appropriate SQL script to create the necessary tables.
	The following databases are supported:

	Database:		Script:
	---------		-------
	MySQL			mymarket.mysql

Step 3. Populate the database with Initial Values

	Run the "mymarket_init.sql" script to insert initial values into
	the categories and users table.  This will create all the required
	tables and populate some initial data into the tables.

	An administrator account called will be created from these files:

	username: root
	password: password

Step 4. Configure application.php

	Load up the application.php file to change the database settings
	and the directory settings to match your server setup.  You will
	definately want to change:

	$CFG->wwwroot

	To match your server setup, otherwise this won't work.

Step 5. File Permissions

	All files need to be read only by the web server.  The minimal
	set of privileges are (assuming the files are owned by the
	web server UID):

	0400 for files (read)
	0500 for directories (read+execute)

	For maximum security, you may wish to move your lib/ directory
	out of your web server document root (for example, move it to
	/usr/local/mymarket/lib) and change your application.php file
	accordingly.

Step 6. Removing the INSTALL directory

	After you have installed MyMarket, you no longer need the INSTALL
	directory, so you can safely delete it.

Step 7. Check your installation

	Now comes the fun part, making sure everything works.  Open up your
	web browser and go to the URL where you've intalled MyMarket.

	If you ran the script to populate the tables with initial data, use
	the following username and password to sign in:

	username: root
	password: password

	If that works, then everything works.  Enjoy!

OBTAINING THE LATEST VERSION OF MYMARKET
----------------------------------------

You can obtain the latest development version of MyMarket via CVS (from
SourgeForge).

Login to the MyMarket CVS:
# cvs -d:pserver:anonymous@cvs.mymarket.sourceforge.net:/cvsroot/mymarket login

Checkout MyMarket:
# cvs -z3 -d:pserver:anonymous@cvs.mymarket.sourceforge.net:/cvsroot/mymarket co mymarket

After you checkout MyMarket, you can perform updates to get the latest files:
# cvs -z3 -d:pserver:anonymous@cvs.mymarket.sourceforge.net:/cvsroot/mymarket update

Instructions can be obtained at http://sourceforge.net/cvs/?group_id=7032
