2013-08-07 17:23:00 +00:00
|
|
|
# Installing poche
|
|
|
|
|
2013-08-12 17:02:36 +00:00
|
|
|
## requirements
|
|
|
|
|
|
|
|
it's highly recommended to have php cURL and tidy_parse_string to fetch articles content.
|
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
## you don't want to install twig (the template engine) by yourself
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
Download this file http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
Extract this file on your server.
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
## you want to install twig by yourself
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
Download the latest version here : http://www.inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
Extract this file on your server.
|
2013-08-07 17:31:11 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
```php
|
2013-08-07 17:31:11 +00:00
|
|
|
curl -s http://getcomposer.org/installer | php
|
|
|
|
php composer.phar install
|
|
|
|
```
|
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
### using sqlite
|
|
|
|
|
|
|
|
Copy / paste install/poche.sqlite in db folder.
|
|
|
|
|
|
|
|
### using mysql or postgresql
|
|
|
|
|
|
|
|
Execute the sql file in /install (mysql.sql or postgres.sql)
|
|
|
|
|
|
|
|
Then, go to step 3.
|
|
|
|
|
|
|
|
# Upgrading poche
|
|
|
|
|
|
|
|
Replace all the files except **db/poche.sqlite**. Also remember to edit the file /inc/poche/config.inc.php.
|
|
|
|
|
|
|
|
## Upgrading from poche <= 0.3
|
|
|
|
|
|
|
|
You have to execute http://yourpoche/install/update_sqlite_from_0_to_1.php
|
|
|
|
|
|
|
|
Then, go to step 3.
|
|
|
|
|
|
|
|
## Upgrading from poche >= 1.0 beta1
|
|
|
|
|
|
|
|
Nothing to do here.
|
|
|
|
|
|
|
|
Then, go to step 3.
|
|
|
|
|
|
|
|
# Here is the step 3
|
2013-08-07 17:31:11 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
You must have write access on assets, cache and db directories. These directories may not exist, you'll have to create them.
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
You can use poche ! Enjoy.
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
# Some problems you may encounter
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
## Blank page
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
Be sure to have write access on assets, cache and db directories.
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
## 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
|
2013-08-07 17:23:00 +00:00
|
|
|
|
2013-08-12 16:11:56 +00:00
|
|
|
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.
|