aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-12 18:11:56 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-12 18:11:56 +0200
commitf93aaa65c4b5d359ee09d084d6a10601f31ddfeb (patch)
tree2f2b3279d6299b0ab7175f457f387351700efe70
parentcd03b575df970f39f0fc2c15807f0d375d93bd4e (diff)
downloadwallabag-f93aaa65c4b5d359ee09d084d6a10601f31ddfeb.tar.gz
wallabag-f93aaa65c4b5d359ee09d084d6a10601f31ddfeb.tar.zst
wallabag-f93aaa65c4b5d359ee09d084d6a10601f31ddfeb.zip
how installing poche
-rw-r--r--INSTALL.md75
1 files changed, 41 insertions, 34 deletions
diff --git a/INSTALL.md b/INSTALL.md
index f32b9bc3..95f18cec 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1,53 +1,60 @@
1# Installing poche 1# Installing poche
2 2
3Get the [latest version](https://github.com/inthepoche/poche/archive/1.0-beta1.zip) of poche on github. Unzip it and upload it on your server. 3## you don't want to install twig (the template engine) by yourself
4 4
5your datas can be stored on sqlite, postgres or mysql databases. 5Download this file http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip
6 6
7Edit /inc/poche/config.inc.php : 7Extract this file on your server.
8 8
9```php 9## you want to install twig by yourself
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 10
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. 11Download the latest version here : http://www.inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche
21 12
22## twig 13Extract this file on your server.
23poche now uses twig for templating. You have to install twig.
24 14
25Install composer in your project : 15```php
26```bash
27curl -s http://getcomposer.org/installer | php 16curl -s http://getcomposer.org/installer | php
28```
29Install via composer :
30```bash
31php composer.phar install 17php composer.phar install
32``` 18```
33 19
34If 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). 20### using sqlite
21
22Copy / paste install/poche.sqlite in db folder.
23
24### using mysql or postgresql
25
26Execute the sql file in /install (mysql.sql or postgres.sql)
27
28Then, go to step 3.
29
30# Upgrading poche
31
32Replace all the files except **db/poche.sqlite**. Also remember to edit the file /inc/poche/config.inc.php.
33
34## Upgrading from poche <= 0.3
35
36You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php
37
38Then, go to step 3.
39
40## Upgrading from poche >= 1.0 beta1
41
42Nothing to do here.
43
44Then, go to step 3.
45
46# Here is the step 3
35 47
36## storage in sqlite 48You must have write access on assets, cache and db directories. These directories may not exist, you'll have to create them.
37You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server.
38 49
39Copy /install/poche.sqlite in /db 50You can use poche ! Enjoy.
40 51
41## storage in mysql 52# Some problems you may encounter
42Execute /install/mysql.sql file in your database.
43 53
44## storage in postgres 54## Blank page
45Execute /install/postgres.sql file in your database.
46 55
47## upgrading from poche <= 0.3 56Be sure to have write access on assets, cache and db directories.
48With poche <= 0.3, all your datas were stored in a sqlite file. The structure of this file changed.
49 57
50You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version. 58## PHP Fatal error: Call to a member function fetchAll() on a non-object in /var/www/poche/inc/poche/Database.class.php on line 42
51 59
52## installing poche 60If you want to install poche, delete the db/poche.sqlite file and copy / paste the install/poche.sqlite in /db. Be sure to have write access. \ No newline at end of file
53you can go on your poche http://yourpoche. You have to fill the fields and that's all ! \ No newline at end of file