]> git.immae.eu Git - github/wallabag/wallabag.git/blame - INSTALL.md
installation instructions
[github/wallabag/wallabag.git] / INSTALL.md
CommitLineData
1d517de6
NL
1# Installing poche
2
3Get the [latest twig version](https://github.com/inthepoche/poche/archive/twig.zip) of poche on github. Unzip it and upload it on your server.
4
5your datas can be stored on sqlite, postgres or mysql databases.
6
7Edit /inc/poche/config.inc.php :
8
9```php
10define ('STORAGE','sqlite'); # postgres, mysql, sqlite
11define ('STORAGE_SERVER', 'localhost'); # leave blank for sqlite
12define ('STORAGE_DB', 'poche'); # only for postgres & mysql
13define ('STORAGE_SQLITE', './db/poche.sqlite');
14define ('STORAGE_USER', 'user'); # leave blank for sqlite
15define ('STORAGE_PASSWORD', 'pass'); # leave blank for sqlite
16```
17
18poche must have write access on assets, cache and db directories.
19
20[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.
21
22## storage in sqlite
23You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server.
24
25Copy /install/poche.sqlite in /db
26
27## storage in mysql
28Execute /install/mysql.sql file in your database.
29
30## storage in postgres
31Execute /install/postgres.sql file in your database.
32
33Install composer in your project :
34```bash
35curl -s http://getcomposer.org/installer | php
36```
37Install via composer :
38```bash
39php composer.phar install
40```
41
42## updating from poche 0.3
43With poche <= 0.3, all your datas were stored in a sqlite file. The structure of this file changed.
44
45You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version.
46
47That's all, you can use poche !