1 Note: postgresql does work with phpwiki 1.3.
3 FIXME: The pgsql backend has not yet been ported to the new database
4 scheme. (Though it should not be very hard, and is certainly in
7 See http://www.sslug.dk/~chlor/phpwiki-pgsql-install.html for notes how
8 to install it for 1.3.4 (and later)
11 NOTE for the 1.2 release: You may see a few warnings when you first
12 load the pages. They may look like this:
16 Warning: PostgresSQL query failed: ERROR: ExecAppend: Fail to add null
17 value in not null attribute pagename in lib/pgsql.php on line 417
19 Inserting page ConvertSpacesToTabs, version 1 from text file
22 This is not a problem since PhpWiki is trying to update a table that
23 tracks hits and links.
27 Installation instructions for PhpWiki with a Postgresql database
29 Installation of Postgresql will not be discussed here... you can get a
30 copy from http://www.postgresql.org/. However if you are running
31 Red Hat Linux, all you need to do is install the PHP RPM and the
32 Postgresql RPM and edit your Apache httpd.conf file, and uncomment
33 the lines for all PHP files (and add index.php to the list of directory
34 files while you're at it... you may also need to add .php as a type
38 AddType application/x-httpd-php3 .php3
39 AddType application/x-httpd-php3 .php
40 AddType application/x-httpd-php3-source .phps
45 (This is from a stock 6.2 Red Hat distro, which ships with an rpm of
46 PHP 3.0.12, but should give you an idea. I had to add the line for
49 Also note that Postgresql by default has a hard limit of 8K per
50 row. This is a Really Bad Thing. You can change that when you compile
51 Postgresql to allow 32K per row, but supposedly performance
52 suffers. The 7.x release of Postgresql is supposed to fix this.
54 It's probably a good idea to install PhpWiki as-is first, running it
55 off the DBM file. This way you can test most of the functionality of
58 Once that's done and you have the basic stuff done that's listed in
59 the INSTALL, the time comes to move to Postgresql.
61 Edit lib/config.php and edit $WhichDatabase for Postgresql. The lines
62 are clearly commented and you should have no problem with this.
64 Next you need to create a database called "wiki".
68 Now run the script schemas/psql.sql to create the tables:
70 bash$ psql wiki -f schemas/psql.sql
72 (Newer versions of postgresql will require: psql wiki < schemas/psql.sql)
74 If the schema starts to load but then fails near the end, you might need to change the user name at the top of psql.sql to match that which is used by your web server; e.g. nobody, apache, or www.
76 For some reason I had to stop/start the database so that these changes took
77 effect.. after that just open up the Wiki in your browser and you should
78 have a brand-new PhpWiki running!
80 If you find something I missed, please let me know.
84 Report bugs to phpwiki-talk@lists.sourceforge.net
86 $Id: INSTALL.pgsql,v 1.4 2004-04-10 10:13:22 rurban Exp $