From cbfd5a1019f47fadefd8490dae9f039ae894298d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 19 Dec 2013 09:56:29 +0100 Subject: [PATCH 1/2] Update INSTALL.md --- INSTALL.md | 71 +----------------------------------------------------- 1 file changed, 1 insertion(+), 70 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index dfe013b70..df245ff0f 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,72 +1,3 @@ # Installing poche -## requirements -* PHP 5.2.0 or higher -* XML ([?](http://php.net/xml)) -* PCRE ([?](http://php.net/pcre)) -* Data filtering ([?](http://uk.php.net/manual/en/book.filter.php)) -* Tidy ([?](http://php.net/tidy)) -* cURL ([?](http://php.net/curl)) -* Parallel URL fetching -* allow_url_fopen ([?](http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen)) - -To see if your server is ok to run poche, execute http://yourpoche/poche_compatibility_test.php. - -## you don't want to install twig (the template engine) by yourself - -Download this file http://static.inthepoche.com/files/poche-1.0-latest-with-twig.zip - -Extract this file on your server. - -## you want to install twig by yourself - -Download the latest version here : http://www.inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche - -Extract this file on your server. - -```php -curl -s http://getcomposer.org/installer | php -php composer.phar install -``` - -### 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 - -You must have write access on assets, cache and db directories. These directories may not exist, you'll have to create them. - -You can use poche ! Enjoy. - -# Some problems you may encounter - -## Blank page - -Be sure to have write access on assets, cache and db directories. - -## 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 - -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 +Read the full documentation here: http://doc.inthepoche.com/doku.php?id=users:begin:install From 9ffce01e0cc05e62336ccb69d4a6d2d2fc7b565d Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 7 Jan 2014 22:55:48 +0100 Subject: [PATCH 2/2] Correction de bugs dans le schema mysql - users/name type de int a varchar - valeurs par defaut ajoutees pour entries/is_read et is_fav --- install/mysql.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/mysql.sql b/install/mysql.sql index d16381d83..de5640e4a 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -9,8 +9,8 @@ CREATE TABLE IF NOT EXISTS `entries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `url` varchar(255) NOT NULL, - `is_read` tinyint(1) NOT NULL, - `is_fav` tinyint(1) NOT NULL, + `is_read` tinyint(1) NOT NULL DEFAULT 0, + `is_fav` tinyint(1) NOT NULL DEFAULT 0, `content` blob NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`) @@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, - `name` int(255) NOT NULL, + `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;