blob: 731f862519d67060021b633e7a7a5bd18d42f088 (
plain)
1 README for pmwiki 2.2.x
2
3 REQUIREMENTS
4
5 Don't install pmwiki 2 over an existing pmwiki 1 installation !
6 A nice page how to upgrade can be found here:
7 http://www.pmwiki.org/wiki/PmWiki/UpgradingFromPmWiki1
8
9
10 PRE-INSTALL
11
12 POST-INSTALL
13
14 1. Add the following directives to httpd.conf:
15
16 LoadModule php7_module lib/apache/libphp7.so
17 AddType application/x-httpd-php .php
18
19 Alias /wiki/uploads /var/www/pmwiki/uploads/
20 Alias /wiki/pub /var/www/pmwiki/pub/
21 Alias /wiki /var/www/pmwiki/pmwiki.php
22
23 <Directory /var/www/pmwiki/>
24 Options None
25 AllowOverride None
26 Require all denied
27 <Files pmwiki.php>
28 Require all granted
29 </Files>
30 </Directory>
31 <DirectoryMatch /var/www/pmwiki/(uploads|pub)/>
32 Require all granted
33 </DirectoryMatch>
34
35 The first alias can be omitted if file uploads
36 are not enabled.
37
38 2. Create a local configuration file
39
40 cp /var/www/local/{config.php.sample,config.php}
41
42 3. Edit /var/www/pmwiki/local/config.php:
43
44 $ScriptUrl = 'http://<your_host_name>/wiki';
45 $PubDirUrl = 'http://<your_host_name>/wiki/pub';
46
47 and, if you want file uploads:
48
49 $UploadDir = '/var/www/pmwiki/uploads';
50 $UploadUrlFmt = 'http://<your_host_name>/wiki/uploads';
51
52 4. Point your browser to http://<your_host_name>/wiki
53 and enjoy ;-)
54
55
56 PRECAUTION
|