From 993cf66f667eb8fee88db91305548901e15229a1 Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 28 Jun 2004 13:54:56 +0000 Subject: [PATCH] updated config.ini settings git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@3793 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- doc/INSTALL.mysql | 4 ++-- doc/INSTALL.sqlite | 17 ++++++----------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/doc/INSTALL.mysql b/doc/INSTALL.mysql index f6d6e5ae9..fec99ecc1 100644 --- a/doc/INSTALL.mysql +++ b/doc/INSTALL.mysql @@ -41,7 +41,7 @@ For more information on MySQL go to http://www.mysql.org/ error. In that case remove existing tables manually and delete the "drop tables" lines from schemas/mysql.sql - it should work now -4. Edit DATABASE settings in config/config.ini to reflect your settings. +4. Edit the DATABASE settings in config/config.ini to reflect your settings. a) DATABASE_TYPE should be set to 'SQL' or 'ADODB'. b) DATABASE_DSN should be set to something like @@ -77,4 +77,4 @@ action=upgrade also brings all changed pgsrc files up-to-date. /Reini and Arno ahollosi@mail.com -$Id: INSTALL.mysql,v 1.4 2004-06-28 13:40:33 rurban Exp $ +$Id: INSTALL.mysql,v 1.5 2004-06-28 13:54:55 rurban Exp $ diff --git a/doc/INSTALL.sqlite b/doc/INSTALL.sqlite index 8a7cd0d35..570b74963 100644 --- a/doc/INSTALL.sqlite +++ b/doc/INSTALL.sqlite @@ -17,18 +17,13 @@ automatically, so that the sqlite binary is needed anymore. sqlite /tmp/phpwiki-sqlite.db < schemas/sqlite.sql -Edit $DBParams in index.php to reflect your settings. +Edit the DATABASE settings in config/config.ini to reflect your settings. - a) $DBParams['dbtype'] should be set to 'SQL'. - ADODB not yet supported. This is planned for the 1.4.0 release. - b) $DBParams['dsn'] should be set to something like + a) DATABASE_TYPE should be set to 'SQL'. + ADODB not yet tested. This is planned for the 1.4.0 release. - $DBParams['directory'] = "/tmp"; - $DBParams['dsn'] = array ( - 'phptype' => "sqlite", - 'database' => $DBParams['directory'] . "/phpwiki-sqlite.db", - 'mode' => 0664 - ); + b) DATABASE_DSN should be set to something like + DATABASE_DSN = "sqlite:///path/to/phpwiki-sqlite.db?mode=0664" That's it. PhpWiki should now work. @@ -43,4 +38,4 @@ sqlite /tmp/phpwiki-sqlite.db < dump.sql Authors: ReiniUrban (phpwiki developer) and Matthew Palmer (phpwiki debian maintainer) -$Id: INSTALL.sqlite,v 1.2 2004-05-02 15:10:05 rurban Exp $ +$Id: INSTALL.sqlite,v 1.3 2004-06-28 13:54:56 rurban Exp $ -- 2.45.0