diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-12 18:11:56 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-12 18:11:56 +0200 |
commit | f93aaa65c4b5d359ee09d084d6a10601f31ddfeb (patch) | |
tree | 2f2b3279d6299b0ab7175f457f387351700efe70 /INSTALL.md | |
parent | cd03b575df970f39f0fc2c15807f0d375d93bd4e (diff) | |
download | wallabag-f93aaa65c4b5d359ee09d084d6a10601f31ddfeb.tar.gz wallabag-f93aaa65c4b5d359ee09d084d6a10601f31ddfeb.tar.zst wallabag-f93aaa65c4b5d359ee09d084d6a10601f31ddfeb.zip |
how installing poche
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 75 |
1 files changed, 41 insertions, 34 deletions
@@ -1,53 +1,60 @@ | |||
1 | # Installing poche | 1 | # Installing poche |
2 | 2 | ||
3 | Get 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 | ||
5 | your datas can be stored on sqlite, postgres or mysql databases. | 5 | Download this file http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip |
6 | 6 | ||
7 | Edit /inc/poche/config.inc.php : | 7 | Extract this file on your server. |
8 | 8 | ||
9 | ```php | 9 | ## you want to install twig by yourself |
10 | define ('STORAGE','sqlite'); # postgres, mysql, sqlite | ||
11 | define ('STORAGE_SERVER', 'localhost'); # leave blank for sqlite | ||
12 | define ('STORAGE_DB', 'poche'); # only for postgres & mysql | ||
13 | define ('STORAGE_SQLITE', './db/poche.sqlite'); | ||
14 | define ('STORAGE_USER', 'user'); # leave blank for sqlite | ||
15 | define ('STORAGE_PASSWORD', 'pass'); # leave blank for sqlite | ||
16 | ``` | ||
17 | |||
18 | poche 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. | 11 | Download the latest version here : http://www.inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche |
21 | 12 | ||
22 | ## twig | 13 | Extract this file on your server. |
23 | poche now uses twig for templating. You have to install twig. | ||
24 | 14 | ||
25 | Install composer in your project : | 15 | ```php |
26 | ```bash | ||
27 | curl -s http://getcomposer.org/installer | php | 16 | curl -s http://getcomposer.org/installer | php |
28 | ``` | ||
29 | Install via composer : | ||
30 | ```bash | ||
31 | php composer.phar install | 17 | php composer.phar install |
32 | ``` | 18 | ``` |
33 | 19 | ||
34 | 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). | 20 | ### using sqlite |
21 | |||
22 | Copy / paste install/poche.sqlite in db folder. | ||
23 | |||
24 | ### using mysql or postgresql | ||
25 | |||
26 | Execute the sql file in /install (mysql.sql or postgres.sql) | ||
27 | |||
28 | Then, go to step 3. | ||
29 | |||
30 | # Upgrading poche | ||
31 | |||
32 | Replace 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 | |||
36 | You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php | ||
37 | |||
38 | Then, go to step 3. | ||
39 | |||
40 | ## Upgrading from poche >= 1.0 beta1 | ||
41 | |||
42 | Nothing to do here. | ||
43 | |||
44 | Then, go to step 3. | ||
45 | |||
46 | # Here is the step 3 | ||
35 | 47 | ||
36 | ## storage in sqlite | 48 | You must have write access on assets, cache and db directories. These directories may not exist, you'll have to create them. |
37 | You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server. | ||
38 | 49 | ||
39 | Copy /install/poche.sqlite in /db | 50 | You can use poche ! Enjoy. |
40 | 51 | ||
41 | ## storage in mysql | 52 | # Some problems you may encounter |
42 | Execute /install/mysql.sql file in your database. | ||
43 | 53 | ||
44 | ## storage in postgres | 54 | ## Blank page |
45 | Execute /install/postgres.sql file in your database. | ||
46 | 55 | ||
47 | ## upgrading from poche <= 0.3 | 56 | Be sure to have write access on assets, cache and db directories. |
48 | With poche <= 0.3, all your datas were stored in a sqlite file. The structure of this file changed. | ||
49 | 57 | ||
50 | You 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 | 60 | If 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 |
53 | you can go on your poche http://yourpoche. You have to fill the fields and that's all ! \ No newline at end of file | ||