]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL.pgsql
Changed my email address and the project homepage, where appropriate.
[SourceForge/phpwiki.git] / INSTALL.pgsql
1 ----------
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:
4
5
6 ***
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
9
10 Inserting page ConvertSpacesToTabs, version 1 from text file
11 ***
12
13 This is not a problem since PhpWiki is trying to update a table that
14 tracks hits and links.
15 ----------
16
17
18 Installation instructions for PhpWiki with a Postgresql database
19
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
26 handled by mod_php: 
27
28 <IfModule mod_php3.c>
29   AddType application/x-httpd-php3 .php3
30   AddType application/x-httpd-php3 .php
31   AddType application/x-httpd-php3-source .phps
32 </IfModule>
33
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
36 .php).
37
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.
42
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
45 the Wiki.
46
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.
49
50 Edit lib/config.php and edit $WhichDatabase for Postgresql. The lines
51 are clearly commented and you should have no problem with this.
52
53 Next you need to create a database called "wiki".
54
55 bash$ createdb wiki
56
57 Now run the script schemas/schema.psql
58
59 bash$ psql wiki -f schemas/schema.psql
60
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!
64
65 If you find something I missed, please let me know.
66 Steve Wainstead
67 swain@panix.com
68
69 Report bugs to phpwiki-talk@lists.sourceforge.net
70
71 $Id: INSTALL.pgsql,v 1.8 2001-03-03 19:43:14 wainstead Exp $