]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - INSTALL
Jeff's hacks II.
[SourceForge/phpwiki.git] / INSTALL
1 0. INSTALLATION
2
3 PhpWiki requires PHP version 4.0.? or greater.
4
5 Untar/gzip this file into the directory where you want it to live.
6 That's it.
7
8 bash$ gzip -d phpwiki-X.XX.tar.gz
9 bash$ tar -xvf phpwiki-X.XX.tar
10
11 Look at index.php and edit the settings there to your liking.
12
13
14 1. CONFIGURATION
15
16 The first time you run this Wiki it will load a set of basic pages from
17 the pgsrc/ directory. These should be enough to get your Wiki started.
18
19 PhpWiki will create some DBM files in /tmp. They contain the pages of the
20 live site, archived pages, and some additional information.
21
22 If you don't want the DBM files to live in /tmp you must make sure the web
23 server can read/write to your chosen location.  It's probably a bad idea
24 to leave it in /tmp. (Again, edit index.php). 
25
26 For example, you create a subdirectory called "pages" in the wiki
27 directory made when you untarred PhpWiki. Move the DBM files there.
28 (FIXME: this is incorrect:)The files are called: wikipagesdb, wikiarchivedb, wikilinksdb,
29 wikihottopicsdb, and wikihitcountdb. The files should already have proper
30 rights and owners, as they were created by the web server. Otherwise
31 change them accordingly so your web server can read/write the DBM
32 files. (Note you must be root to move files created by the web server).
33
34 Then you must ensure that the web server can access the "pages" directory
35 and can create new files in it. These can be achieved e.g. by doing
36
37 bash$ chown nobody:youraccount pages
38 bash$ chmod 755 pages
39
40 if your web server runs as user 'nobody'. This is necessary so that
41 the server can also create/set the lock file (PHP has a built in
42 locking mechanism for DBM file access).  Or if you're really lazy and
43 don't worry much about security:
44
45 bash$ chmod 777 pages
46
47 Note: this is insecure. The proper way is to let the directory be owned
48 by the web servers GUID and give it read and write access.
49
50
51
52 2. ALLOWING EMBEDDED HTML
53
54 PhpWiki ships with this featured disabled by default. According to CERT 
55 (http://www.cert.org/advisories/CA-2000-02.html) malicious users can embed
56 HTML in your pages that allow pure evil to happen. You can uncomment the 
57 "elseif" in lib/transform.php to allow embedded HTML; but you should NEVER
58 do this if your Wiki is publically accessible.
59
60
61 3. ETC
62
63 Installing PHP is beyond the scope of this document :-)
64 You should visit http://www.php.net/ if you don't have PHP.
65 Note that you should have the web server configured to allow index.php
66 as the root document of a directory.
67
68 FIXME: obsolete. (PHP 3 won't work)
69 This web application was written under PHP version 3.0.12 and 
70 the latest build of PHP4. It's tested under the following systems:
71
72 MySQL + Debian
73 mSQL + Red Hat 4.1  (FIXME: msql currently won't work)
74 DBA or Postgresql on Red Hat 6.2
75
76 It reportedly works on Windows with Apache+PHP, which amazes me. 
77
78 That should be all. Send patches, bugs etc. to:
79
80 phpwiki-talk@lists.sourceforge.net
81
82 FIN