]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL.pgsql
Jeff's hacks II.
[SourceForge/phpwiki.git] / INSTALL.pgsql
1 FIXME: The pgsql backend has not yet been ported to the new database
2 scheme.  (Though it should not be very hard, and is certainly in
3 the works.)
4
5 ----------
6 NOTE for the 1.2 release: You may see a few warnings when you first
7 load the pages. They may look like this:
8
9
10 ***
11 Warning: PostgresSQL query failed: ERROR: ExecAppend: Fail to add null
12 value in not null attribute pagename in lib/pgsql.php on line 417
13
14 Inserting page ConvertSpacesToTabs, version 1 from text file
15 ***
16
17 This is not a problem since PhpWiki is trying to update a table that
18 tracks hits and links.
19 ----------
20
21
22 Installation instructions for PhpWiki with a Postgresql database
23
24 Installation of Postgresql will not be discussed here... you can get a
25 copy from http://www.postgresql.org/. However if you are running 
26 Red Hat Linux, all you need to do is install the PHP RPM and the 
27 Postgresql RPM and edit your Apache httpd.conf file, and uncomment 
28 the lines for all PHP files (and add index.php to the list of directory
29 files while you're at it... you may also need to add .php as a type
30 handled by mod_php: 
31
32 <IfModule mod_php3.c>
33   AddType application/x-httpd-php3 .php3
34   AddType application/x-httpd-php3 .php
35   AddType application/x-httpd-php3-source .phps
36 </IfModule>
37
38 (This is from a stock 6.2 Red Hat distro, which ships with an rpm of
39 PHP 3.0.12, but should give you an idea. I had to add the line for
40 .php).
41
42 Also note that Postgresql by default has a hard limit of 8K per
43 row. This is a Really Bad Thing. You can change that when you compile
44 Postgresql to allow 32K per row, but supposedly performance
45 suffers. The 7.x release of Postgresql is supposed to fix this.
46
47 It's probably a good idea to install PhpWiki as-is first, running it
48 off the DBM file. This way you can test most of the functionality of
49 the Wiki.
50
51 Once that's done and you have the basic stuff done that's listed in 
52 the INSTALL, the time comes to move to Postgresql.
53
54 Edit lib/config.php and edit $WhichDatabase for Postgresql. The lines
55 are clearly commented and you should have no problem with this.
56
57 Next you need to create a database called "wiki".
58
59 bash$ createdb wiki
60
61 Now run the script schemas/schema.psql
62
63 bash$ psql wiki -f schemas/schema.psql
64
65 For some reason I had to stop/start the database so that these changes took 
66 effect.. after that just open up the Wiki in your browser and you should
67 have a brand-new PhpWiki running!
68
69 If you find something I missed, please let me know.
70 Steve Wainstead
71 swain@panix.com
72
73 Report bugs to phpwiki-talk@lists.sourceforge.net
74
75 $Id: INSTALL.pgsql,v 1.9 2001-09-18 19:16:23 dairiki Exp $