]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - doc/INSTALL.sqlite
version updated to 1.3.11pre
[SourceForge/phpwiki.git] / doc / INSTALL.sqlite
1 Installing phpwiki with SQLite 
2 ------------------------------
3
4 SQLite support is highly experimental but necessary. 
5
6 SQLite is from PHP5 on the default database, built in PHP's core. 
7 MySQL is only a extension module and relatively hard to setup (or 
8 impossible on certain windows builds such as php-5.0.0b4), similar to dba.
9 sqlite extensions exist for php-4.3.x but not for 4.2.x
10 Get the 4..3.x windows dll at http://snaps.php.net/win32/PECL_4_3/php_sqlite.dll
11
12 To setup the initial tables you currently need the external sqlite
13 executable client. On Microsoft Windows download the sqlite.exe binary
14 from http://www.sqlite.org/sqlite.zip
15 We work on a solution to setup the database on a virgin wiki 
16 automatically, so that the sqlite binary is needed anymore.
17
18 sqlite /tmp/phpwiki-sqlite.db < schemas/sqlite.sql
19
20 Edit $DBParams in index.php to reflect your settings.
21
22   a) $DBParams['dbtype'] should be set to 'SQL'.
23       ADODB not yet supported. This is planned for the 1.4.0 release.
24   b) $DBParams['dsn'] should be set to something like
25
26         $DBParams['directory'] = "/tmp";
27         $DBParams['dsn'] = array (
28                   'phptype'   => "sqlite",
29                   'database'  => $DBParams['directory'] . "/phpwiki-sqlite.db",
30                   'mode'      => 0664
31                   );
32
33 That's it. PhpWiki should now work.
34
35 UPGRADING the schema
36 --------------------
37
38 echo ".dump" | sqlite /tmp/phpwiki-sqlite.db > dump.sql
39 # fix the dump.sql file: adding indices or columns
40 mv /tmp/phpwiki-sqlite.db /tmp/phpwiki-sqlite.old
41 sqlite /tmp/phpwiki-sqlite.db < dump.sql
42
43 Authors: 
44 ReiniUrban (phpwiki developer) and Matthew Palmer (phpwiki debian maintainer)
45
46 $Id: INSTALL.sqlite,v 1.2 2004-05-02 15:10:05 rurban Exp $