]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - doc/INSTALL.sqlite
Allow bold, italics or underlined for numbers
[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 not needed anymore.
17
18 sqlite /tmp/phpwiki-sqlite.db < schemas/sqlite-initialize.sql
19
20 Edit the DATABASE settings in config/config.ini to reflect your settings.
21
22   a) DATABASE_TYPE must be set to 'SQL'.
23      ADODB not yet. This is planned for the 1.4.0 release.
24
25   b) DATABASE_DSN should be set to something like
26      DATABASE_DSN = "sqlite:////tmp/phpwiki-sqlite.db?mode=0664&persistent=1"
27
28 That's it. PhpWiki should now work.
29
30 UPGRADING the schema
31 --------------------
32
33 echo ".dump" | sqlite /tmp/phpwiki-sqlite.db > dump.sql
34 # fix the dump.sql file: adding indices or columns
35 mv /tmp/phpwiki-sqlite.db /tmp/phpwiki-sqlite.old
36 sqlite /tmp/phpwiki-sqlite.db < dump.sql
37
38 Authors: 
39 ReiniUrban (phpwiki developer) and Matthew Palmer (phpwiki debian maintainer)