INSTALL
-------

$Id: INSTALL,v 1.11.2.5 2002/01/21 15:31:13 netsabes Exp $

YOU MUST HAVE THE FOLLOWING
===========================

* Apache (or any webserver)
* PHP3 or PHP4
* MySQL (or PostgreSQL) and PHP MySQL (or PostgreSQL) Lib.


BASIC INSTALL
=============

1 - Move src/htdocs/ to the root of your webserver.
    Basically, it's called www/ or public_html/, or even htdocs/.

2 - Move src/phplib/ where you want in your webserver.
    If it's on a different level than the directory where you have moved
    htdocs/, you'll have to edit <your htdocs>/dacode.php3 on line 20 with
    the good directory instead of "../phplib", so that the libraries can be
    loaded.

3 - Copy src/phplib/config.sample into <your phplib>/config.php3
    and edit this file with the good values.
    Pay particular attention to the value you give for accessing the database.

4 - Create tables with sql/dacode.mysql or dacode.pgsql
    Example:

    $ mysql -u user -p password database < sql/dacode.mysql

5 - Edit the "users" table.
    You just need to change the default email address of the "admin" account.
    Set yours instead of "root".
    We'll now see how to obtain your password.

6 - Go to your site, daCode should work.
    Then click on "I forgot my password", in the sidebox called "login".
    On the page now displayed, enter "admin" as login, and leave the email
    field empty.
    Submit the form, and you'll receive your new password to the email address
    chosen above.

You can also import those files through phpMyAdmin for MySQL
(http://phpmyadmin.sourceforge.net/) or WebPg for PostgreSQL
(http://phppgadmin.sourceforge.net/).

Trouble: Please be sure index.php3 is the index file by default in your apache,
as it is for index.html

If you have PHPLIB installed (it's mostly coming with the HORDE project (imp,
etc)), please read doc/webmaster/phplib.txt before asking anything.

You will also find a FAQ about daCode in doc/webmaster/FAQ.html (and
FAQ-fr.html for the french version).
Other documentations are in doc/.
