From 1d517de67b4d3de661a288acdfd8eecefd3110a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 7 Aug 2013 19:23:00 +0200 Subject: installation instructions --- INSTALL.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 INSTALL.md (limited to 'INSTALL.md') diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 00000000..bbac44ba --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,47 @@ +# Installing poche + +Get the [latest twig version](https://github.com/inthepoche/poche/archive/twig.zip) of poche on github. Unzip it and upload it on your server. + +your datas can be stored on sqlite, postgres or mysql databases. + +Edit /inc/poche/config.inc.php : + +```php +define ('STORAGE','sqlite'); # postgres, mysql, sqlite +define ('STORAGE_SERVER', 'localhost'); # leave blank for sqlite +define ('STORAGE_DB', 'poche'); # only for postgres & mysql +define ('STORAGE_SQLITE', './db/poche.sqlite'); +define ('STORAGE_USER', 'user'); # leave blank for sqlite +define ('STORAGE_PASSWORD', 'pass'); # leave blank for sqlite +``` + +poche must have write access on assets, cache and db directories. + +[PHP cURL](http://www.php.net/manual/en/book.curl.php) & [tidy_parse_string](http://www.php.net/manual/en/tidy.parsestring.php) are recommended. + +## storage in sqlite +You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server. + +Copy /install/poche.sqlite in /db + +## storage in mysql +Execute /install/mysql.sql file in your database. + +## storage in postgres +Execute /install/postgres.sql file in your database. + +Install composer in your project : +```bash +curl -s http://getcomposer.org/installer | php +``` +Install via composer : +```bash +php composer.phar install +``` + +## updating from poche 0.3 +With poche <= 0.3, all your datas were stored in a sqlite file. The structure of this file changed. + +You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version. + +That's all, you can use poche ! \ No newline at end of file -- cgit v1.2.3 From 145f50402e8e3f8b0527207538c3f7a483e5a974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 7 Aug 2013 19:31:11 +0200 Subject: installation instructions --- INSTALL.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'INSTALL.md') diff --git a/INSTALL.md b/INSTALL.md index bbac44ba..fd34f695 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -19,6 +19,20 @@ poche must have write access on assets, cache and db directories. [PHP cURL](http://www.php.net/manual/en/book.curl.php) & [tidy_parse_string](http://www.php.net/manual/en/tidy.parsestring.php) are recommended. +## twig +poche now uses twig for templating. You have to install twig. + +Install composer in your project : +```bash +curl -s http://getcomposer.org/installer | php +``` +Install via composer : +```bash +php composer.phar install +``` + +If you don't want to install twig by yourself, you can download [this file](http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip). + ## storage in sqlite You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server. @@ -30,16 +44,7 @@ Execute /install/mysql.sql file in your database. ## storage in postgres Execute /install/postgres.sql file in your database. -Install composer in your project : -```bash -curl -s http://getcomposer.org/installer | php -``` -Install via composer : -```bash -php composer.phar install -``` - -## updating from poche 0.3 +## upgrading from poche <= 0.3 With poche <= 0.3, all your datas were stored in a sqlite file. The structure of this file changed. You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version. -- cgit v1.2.3 From 6e5f8db8bb8a9dcbf9efc3a1207d898b0ee863df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 7 Aug 2013 19:33:13 +0200 Subject: installation instructions --- INSTALL.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'INSTALL.md') diff --git a/INSTALL.md b/INSTALL.md index fd34f695..74627f3b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -49,4 +49,7 @@ With poche <= 0.3, all your datas were stored in a sqlite file. The structure of You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version. -That's all, you can use poche ! \ No newline at end of file +That's all, you can use poche ! + +## installing poche +you can go on your poche http://yourpoche. You have to fill the fields and that's all ! \ No newline at end of file -- cgit v1.2.3 From 339d510fda0a43b08981309f7540acedf3a4976c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 7 Aug 2013 19:33:56 +0200 Subject: installation instructions --- INSTALL.md | 2 -- 1 file changed, 2 deletions(-) (limited to 'INSTALL.md') diff --git a/INSTALL.md b/INSTALL.md index 74627f3b..47208ef0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -49,7 +49,5 @@ With poche <= 0.3, all your datas were stored in a sqlite file. The structure of You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version. -That's all, you can use poche ! - ## installing poche you can go on your poche http://yourpoche. You have to fill the fields and that's all ! \ No newline at end of file -- cgit v1.2.3