]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - doc/INSTALL.sqlite
sqlite installation instructions
[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 -init /tmp/phpwiki-sqlite.db 
19 sqlite /tmp/phpwiki-sqlite.db < schemas/sqlite.sql
20
21 Edit $DBParams in index.php to reflect your settings.
22
23   a) $DBParams['dbtype'] should be set to 'SQL'.
24       ADODB not yet supported. This is planned for the 1.4.0 release.
25   b) $DBParams['dsn'] should be set to something like
26
27         $DBParams['directory'] = "/tmp";
28         $DBParams['dsn'] = array (
29                   'phptype'   => "sqlite",
30                   'database'  => $DBParams['directory'] . "/phpwiki-sqlite.db",
31                   'mode'      => 0664
32                   );
33
34 That's it. PhpWiki should now work.
35
36 Authors: 
37 ReiniUrban (phpwiki developer) and Matthew Palmer (phpwiki debian maintainer)
38
39 $Id: INSTALL.sqlite,v 1.1 2004-03-18 20:00:45 rurban Exp $