aboutsummaryrefslogtreecommitdiffhomepage
path: root/INSTALL.md
diff options
context:
space:
mode:
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md77
1 files changed, 44 insertions, 33 deletions
diff --git a/INSTALL.md b/INSTALL.md
index f32b9bc3..63000f26 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1,53 +1,64 @@
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## requirements
4 4
5your datas can be stored on sqlite, postgres or mysql databases. 5it's highly recommended to have php cURL and tidy_parse_string to fetch articles content.
6 6
7Edit /inc/poche/config.inc.php : 7## you don't want to install twig (the template engine) by yourself
8 8
9```php 9Download this file http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip
10define ('STORAGE','sqlite'); # postgres, mysql, sqlite 10
11define ('STORAGE_SERVER', 'localhost'); # leave blank for sqlite 11Extract this file on your server.
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 12
18poche must have write access on assets, cache and db directories. 13## you want to install twig by yourself
19 14
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. 15Download the latest version here : http://www.inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche
21 16
22## twig 17Extract this file on your server.
23poche now uses twig for templating. You have to install twig.
24 18
25Install composer in your project : 19```php
26```bash
27curl -s http://getcomposer.org/installer | php 20curl -s http://getcomposer.org/installer | php
28```
29Install via composer :
30```bash
31php composer.phar install 21php composer.phar install
32``` 22```
33 23
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). 24### using sqlite
25
26Copy / paste install/poche.sqlite in db folder.
27
28### using mysql or postgresql
29
30Execute the sql file in /install (mysql.sql or postgres.sql)
31
32Then, go to step 3.
33
34# Upgrading poche
35
36Replace all the files except **db/poche.sqlite**. Also remember to edit the file /inc/poche/config.inc.php.
37
38## Upgrading from poche <= 0.3
39
40You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php
41
42Then, go to step 3.
43
44## Upgrading from poche >= 1.0 beta1
45
46Nothing to do here.
47
48Then, go to step 3.
49
50# Here is the step 3
35 51
36## storage in sqlite 52You 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 53
39Copy /install/poche.sqlite in /db 54You can use poche ! Enjoy.
40 55
41## storage in mysql 56# Some problems you may encounter
42Execute /install/mysql.sql file in your database.
43 57
44## storage in postgres 58## Blank page
45Execute /install/postgres.sql file in your database.
46 59
47## upgrading from poche <= 0.3 60Be 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 61
50You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php before using this new version. 62## 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 63
52## installing poche 64If 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