2 NOTE for the 1.2 release: You may see a few warnings when you first
3 load the pages. They may look like this:
7 Warning: PostgresSQL query failed: ERROR: ExecAppend: Fail to add null
8 value in not null attribute pagename in lib/pgsql.php on line 417
10 Inserting page ConvertSpacesToTabs, version 1 from text file
13 This is not a problem since PhpWiki is trying to update a table that
14 tracks hits and links.
18 Installation instructions for PhpWiki with a Postgresql database
20 Installation of Postgresql will not be discussed here... you can get a
21 copy from http://www.postgresql.org/. However if you are running
22 Red Hat Linux, all you need to do is install the PHP RPM and the
23 Postgresql RPM and edit your Apache httpd.conf file, and uncomment
24 the lines for all PHP files (and add index.php to the list of directory
25 files while you're at it... you may also need to add .php as a type
29 AddType application/x-httpd-php3 .php3
30 AddType application/x-httpd-php3 .php
31 AddType application/x-httpd-php3-source .phps
34 (This is from a stock 6.2 Red Hat distro, which ships with an rpm of
35 PHP 3.0.12, but should give you an idea. I had to add the line for
38 Also note that Postgresql by default has a hard limit of 8K per
39 row. This is a Really Bad Thing. You can change that when you compile
40 Postgresql to allow 32K per row, but supposedly performance
41 suffers. The 7.x release of Postgresql is supposed to fix this.
43 It's probably a good idea to install PhpWiki as-is first, running it
44 off the DBM file. This way you can test most of the functionality of
47 Once that's done and you have the basic stuff done that's listed in
48 the INSTALL, the time comes to move to Postgresql.
50 Edit lib/config.php and edit $WhichDatabase for Postgresql. The lines
51 are clearly commented and you should have no problem with this.
53 Next you need to create a database called "wiki".
57 Now run the script schemas/schema.psql
59 bash$ psql wiki -f schemas/schema.psql
61 For some reason I had to stop/start the database so that these changes took
62 effect.. after that just open up the Wiki in your browser and you should
63 have a brand-new PhpWiki running!
65 If you find something I missed, please let me know.
69 Report bugs to phpwiki-talk@lists.sourceforge.net
71 $Id: INSTALL.pgsql,v 1.7 2001-02-02 02:55:31 wainstead Exp $