]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL.pgsql
changed two more calls to is_dir() and is_file() to file_exists in order to avoid...
[SourceForge/phpwiki.git] / INSTALL.pgsql
1 $Id: INSTALL.pgsql,v 1.6 2000-10-08 19:19:59 wainstead Exp $
2
3 Installation instructions for PhpWiki with a Postgresql database
4
5 Installation of Postgresql will not be discussed here... you can get a
6 copy from http://www.postgresql.org/. However if you are running 
7 Red Hat Linux, all you need to do is install the PHP RPM and the 
8 Postgresql RPM and edit your Apache httpd.conf file, and uncomment 
9 the lines for all PHP files (and add index.php to the list of directory
10 files while you're at it... you may also need to add .php as a type
11 handled by mod_php: 
12
13 <IfModule mod_php3.c>
14   AddType application/x-httpd-php3 .php3
15   AddType application/x-httpd-php3 .php
16   AddType application/x-httpd-php3-source .phps
17 </IfModule>
18
19 (This is from a stock 6.2 Red Hat distro, which ships with an rpm of
20 PHP 3.0.12,but should give you an idea. I had to add the line for
21 .php).
22
23 Also note that Postgresql by default has a hard limit of 8K per
24 row. This is a Really Bad Thing. You can change that when you compile
25 Postgresql to allow 32K per row, but supposedly performance
26 suffers. The 7.x release of Postgresql is supposed to fix this.
27
28 It's probably a good idea to install PhpWiki as-is first, running it
29 off the DBM file. This way you can test most of the functionality of
30 the Wiki.
31
32 Once that's done and you have the basic stuff done that's listed in 
33 the INSTALL, the time comes to move to Postgresql.
34
35 Edit lib/config.php and comment out the lines for DBM file usage; then
36 uncomment the lines for Postgresql. The lines are clearly commented and 
37 you should have no problem with this.
38
39 Next you need to create a database called "wiki".
40
41 bash$ createdb wiki
42
43 Now run the script schemas/schema.psql
44
45 bash$ psql wiki -f schemas/schema.psql
46
47 For some reason I had to stop/start the database so that these changes took 
48 effect.. after that just open up the Wiki in your browser and you should
49 have a brand-new PhpWiki running!
50
51 If you find something I missed, please let me know.
52 Steve Wainstead
53 swain@wcsb.org
54