| INSTALL.mdtext |
| 1 | 1 | # Quick installation instruction |
| 2 | The installation of InDefero is composed of 2 parts, first the |
| 3 | installation of the [Pluf framework](http://www.pluf.org) and second, |
| 4 | the installation of InDefero by itself. |
| 5 | |
| 6 | ## Installation of Pluf |
| 7 | |
| 2 | 8 | * Checkout the trunk of [Pluf](http://www.pluf.org). |
| 3 | | * Install the `Mail` and `Mail_mime` classes from [PEAR](http://pear.php.net). |
| 9 | * Install the `Mail` and `Mail_mime` classes from [PEAR](http://pear.php.net). You must use the `--alldeps` flag when installing these modules: |
| 10 | |
| 11 | $ sudo pear install --alldeps Mail |
| 12 | $ sudo pear install --alldeps Mail_mime |
| 13 | |
| 14 | The Pluf installation folder is the folder containing the file `Pluf.php`. |
| 15 | |
| 16 | ## Installation of InDefero |
| 17 | |
| 18 | The installation is composed of the following steps: |
| 19 | |
| 20 | * Get the InDefero archive. |
| 21 | * Configure it correctly. |
| 22 | * Installation the database with the `migrate.php` script. |
| 23 | * Bootstrap the application with a `bootstrap.php` script. |
| 24 | |
| 25 | Here is the step-by-step installation procedure: |
| 26 | |
| 27 | * Extract the InDefero archive somewhere. |
| 28 | * The InDefero installation folder is the folder containing this file INSTALL.mdtext. |
| 4 | 29 | * Make a copy of `src/IDF/conf/idf.php-dist` as `src/IDF/conf/idf.php`. |
| 5 | 30 | * Update the idf.php file to match your system. |
| 6 | | * Run `php /path/to/pluf/src/migrate.php --conf=IDF/conf/idf.php -a -i -d -u` to test the installation of the tables. |
| 7 | | * Run `php /path/to/pluf/src/migrate.php --conf=IDF/conf/idf.php -a -i -d` to really install the tables. |
| 8 | | * Create a bootsrap file to create the first project and admin user for example `www/bootstrap.php`: |
| 31 | * Open a terminal/shell and go into the InDefero installation folder. |
| 32 | * Run `php /path/to/pluf/src/migrate.php --conf=src/IDF/conf/idf.php -a -i -d -u` to test the installation of the tables. |
| 33 | * Run `php /path/to/pluf/src/migrate.php --conf=src/IDF/conf/idf.php -a -i -d` to really install the tables. |
| 34 | * Create a bootstrap file to create the first project and admin user for example `www/bootstrap.php`. Do not forget to update the second line with your path to Pluf: |
| 9 | 35 | <?php |
| 10 | 36 | set_include_path(get_include_path().PATH_SEPARATOR.dirname(__FILE__).'/../src'); |
| ... | ... | |
| 33 | 59 | print "Bootstrap ok\n"; |
| 34 | 60 | ?> |
| 35 | | * Run `php bootstrap.php`. |
| 36 | | * Remove the `bootstrp.php` file. |
| 61 | * Run `php www/bootstrap.php`. |
| 62 | * Remove the `www/bootstrap.php` file. |
| 37 | 63 | Now you can login with this user into the interface. |