INSTALL

This file is part of Miniclick, a package for viewing and editing datas from database online. 
Copyright (C) 2007 Guillaume Monet. 

Miniclick is free software; you can redistribute it and/or modify 
it under the terms of the GNU General Public License as published by 
the Free Software Foundation; either version 2 of the License, or 
(at your option) any later version. 

Miniclick is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
GNU General Public License for more details. 

You should have received a copy of the GNU General Public License 
along with Miniclick; if not, write to the Free Software 
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 

The author can be contacted at: 

Guillaume Monet
guillaume.monet@free.fr

$Id: INSTALL,v 1.6 2007/10/19 15:32:56 infogerance Exp $


*** It to update know ***
Table creation has been splay
*** 
Requirements:

  * Apache => 2.0
  * PHP => 5.0 (with MySQL support)
  * GD => 2.0  (php5-gd package on Debian based distros)
  * MySQL => 5.0 (You must be able to CREATE DATABASEs and TABLEs)

Download:

As well as Miniclick is in development stage, 
the best way to get it is to checkout from 
Savannah CVS with the following command line:

  cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/miniclick \
                                    export -r HEAD miniclick

(Note it is more an _export_ than a checkout)

Installation:

* choose the name if the initial DB. 
  Say 'miniclick_db'

The automated installation process is not really
working, so that you need to perform manually some steps:

Go into the "sql/" directory and type:

  cd sql/
  sed -i s/MINICLICK/miniclick_db/g miniclick.sql

Then add, at the beginning of that file:

  CREATE DATABASE miniclick_db;
  USE miniclick_db;

Run that SQL script.
That will install default database in MySQL.

Then, log into the MySQL DB and at the prompt,
update your Host field in MINICLICK.APP table with your own host ending by "main.php".
For example:
  USE miniclick_db;
  UPDATE APP SET Host='http://localhost/miniclick/main.php' WHERE App_Id='3';
Update the "admin" password:
  UPDATE USER SET Passwd = PASSWORD('admin') WHERE User_Id = 1;

Create and chmod writable "template_c/"

Remove any hardcoded MINICLICK mention in main.php:
  sed -i 's/MINICLICK\./miniclick_db2\./g' main.php
