File: 06-create-config-template

package info (click to toggle)
phpwiki 1.3.12p3-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 16,956 kB
  • ctags: 21,608
  • sloc: php: 82,335; xml: 3,840; sh: 1,522; sql: 1,198; perl: 625; makefile: 562; awk: 28
file content (288 lines) | stat: -rw-r--r-- 9,934 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
#! /bin/sh /usr/share/dpatch/dpatch-run
## create-config-template by  <debian@mattb.net.nz>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Creates a configuration file template used by the migration tool
## DP: when migrating from an old version of PHPwiki

@DPATCH@

--- phpwiki-1.3.12p3.orig/config/config-template.ini
+++ phpwiki-1.3.12p3/config/config-template.ini
@@ -0,0 +1,276 @@
+; This is the main configuration file for PhpWiki.
+;
+; This file contains cut down comments and is intended as a template for use
+; when migrating configurations with migrate-phpwiki-config only. 
+;
+; See /usr/share/phpwiki/config-dist.ini for a more verbosely commented 
+; configuration file that you might want to use if you are configuring a
+; wiki from scratch.
+
+;=========================================================================
+; Part Zero: Tricky Options
+;=========================================================================
+;
+; If PHP needs help in finding where you installed the rest of the PhpWiki
+; code, you can set the include_path here.
+;
+;INCLUDE_PATH = ".:/usr/local/httpd/phpwiki"
+
+;DEBUG = 1
+
+; Enable the new method of handling WikiUsers.
+ENABLE_USER_NEW = true
+
+; Experimental edit feature
+;JS_SEARCHREPLACE = true
+
+;==========================================================================
+; Part One: Authentication and security settings.
+;
+; See Part Three for more.
+;==========================================================================
+;
+; The name of your wiki.
+WIKI_NAME = PhpWiki
+
+; Visitor Hostname Lookup
+ENABLE_REVERSE_DNS = true
+
+; Username and password of administrator.
+;ADMIN_USER = 
+;ADMIN_PASSWD = 
+ENCRYPTED_PASSWD = true
+
+; Private ZIP Dumps of All Wiki Pages
+ZIPDUMP_AUTH = false
+
+; The RawHtml plugin allows page authors to embed real, raw HTML into Wiki
+; pages.  This is a possible security threat, as much HTML (or, rather,
+; JavaScript) can be very risky.  If you are in a controlled environment,
+; however, it could be of use.
+ENABLE_RAW_HTML = false;
+
+STRICT_MAILABLE_PAGEDUMPS = false
+HTML_DUMP_SUFFIX = .html
+
+; The maximum file upload size, in bytes.
+; The default, 16777216, is 16MB.
+MAX_UPLOAD_SIZE = 16777216
+
+; If the last edit is older than MINOR_EDIT_TIMEOUT seconds, the
+; default state for the "minor edit" checkbox on the edit page form
+; will be off.
+; The default, 604800, is one week (7 days)
+MINOR_EDIT_TIMEOUT = 604800
+
+; Actions listed in this array will not be allowed.
+; DISABLED_ACTIONS = "dumpserial : loadfile"
+
+; PhpWiki can generate an access_log (in "NCSA combined log" format)
+; for you. 
+;ACCESS_LOG = /var/tmp/wiki_access_log
+
+; By default PhpWiki will try to have PHP compress its output
+; before sending it to the browser (if you have a recent enough
+; version of PHP and the browser supports it.)
+;COMPRESS_OUTPUT = false
+
+; This controls how PhpWiki sets the HTTP cache control
+; headers (Expires: and Cache-Control:) 
+CACHE_CONTROL = LOOSE
+
+; Maximum page staleness, in seconds.
+CACHE_CONTROL_MAX_AGE = 600
+
+; PhpWiki normally caches a preparsed version (i.e. mostly
+; converted to HTML) of the most recent version of each page.
+; (Parsing the wiki-markup takes a fair amount of CPU.)
+;WIKIDB_NOCACHE_MARKUP = true
+
+;======================================================================
+; Part Two: Database Selection
+;======================================================================
+
+; Select the database type:
+DATABASE_TYPE = dba
+   
+; prefix for filenames or table names
+;DATABASE_PREFIX = phpwiki_
+
+; For SQL based backends, specify the database as a DSN (Data Source Name),
+; a kind of URL for databases.
+DATABASE_DSN = "mysql://guest@unix(/var/lib/mysql/mysql.sock)/test"
+
+; A table to store session information.  Only needed by SQL backends.
+DATABASE_SESSION_TABLE = session
+
+; For the file and dba backends, this specifies where the data files will be
+; located.  Ensure that the user that the webserver runs as has write access
+; to this directory.
+DATABASE_DIRECTORY = /tmp
+
+; For the dba backend, this defines which DBA variant you wish to use.
+DATABASE_DBA_HANDLER = gdbm
+
+; How long will the system wait for a database operation to complete?
+; Specified in seconds.
+DATABASE_TIMEOUT = 20
+
+;SESSION_SAVE_PATH = some_other_directory
+
+; How often to optimise the database, 0=never, Debian cron scripts take
+; care of this
+DATABASE_OPTIMISE_FREQUENCY = 0
+
+;========================================================================
+; Section 3a: Page revisions
+;
+; The next section controls how many old revisions of each page are
+; kept in the database.
+;========================================================================
+;
+
+; Keep up to 8 major edits, but keep them no longer than a month.
+MAJOR_MAX_AGE = 32
+MAJOR_KEEP = 8
+
+; Keep up to 4 minor edits, but keep them no longer than a week.
+MINOR_MAX_AGE = 7
+MINOR_KEEP = 4
+
+; Keep the latest contributions of the last 8 authors up to a year.
+AUTHOR_MAX_AGE = 365
+AUTHOR_KEEP = 8
+AUTHOR_MIN_AGE = 7
+AUTHOR_MAX_KEEP = 20
+
+;========================================================================
+; Part Three: User Authentication
+;========================================================================
+
+; allow anon users to view existing pages
+ALLOW_ANON_USER = true
+; allow anon users to edit pages
+ALLOW_ANON_EDIT = true
+
+; If ALLOW_BOGO_LOGIN is true, users are allowed to login (with
+; any/no password) using any userid which: 
+;  1) is not the ADMIN_USER, and
+;  2) is a valid WikiWord (matches $WikiNameRegexp.)
+ALLOW_BOGO_LOGIN = true
+
+; True User Authentication:
+ALLOW_USER_PASSWORDS = true
+
+; Many different methods can be used to check user's passwords:
+;
+; Several of these methods can be used together, in the manner specified by
+; USER_AUTH_POLICY, below.  To specify multiple authentication methods,
+; separate the name of each one with colons.
+USER_AUTH_ORDER = "PersonalPage : Db"
+
+; For "security" purposes, you can specify that a password be at least a
+; certain number of characters long.  This applies even to the BogoLogin
+; method.
+PASSWORD_LENGTH_MINIMUM = 2
+    
+; The policy to use for user authentication:
+USER_AUTH_POLICY = stacked
+
+; A interim page which gets displayed on every edit attempt
+EDITING_POLICY = EditingPolicy
+
+;========================================================================
+; Part Four: Page appearance and layout
+;========================================================================
+
+; THEMES
+THEME = default
+
+CHARSET = iso-8859-1
+
+DEFAULT_LANGUAGE = en
+
+; WIKI_PGSRC -- specifies the source for the initial page contents of
+; the Wiki.
+WIKI_PGSRC = pgsrc
+
+; DEFAULT_WIKI_PGSRC is only used when the language is *not* the
+; default (English) and when reading from a directory: in that case
+; some English pages are inserted into the wiki as well.
+DEFAULT_WIKI_PGSRC = pgsrc
+; These are the pages which will get loaded from DEFAULT_WIKI_PGSRC.
+DEFAULT_WIKI_PAGES = "ReleaseNotes:SteveWainstead:TestPage"
+
+;=========================================================================
+; Part Five: Mark-up options.
+;=========================================================================
+;
+; allowed protocols for links - be careful not to allow "javascript:"
+; URL of these types will be automatically linked.
+ALLOWED_PROTOCOLS = "http|https|mailto|ftp|news|nntp|ssh|gopher"
+
+; URLs ending with the following extension should be inlined as images.
+; Specify as per ALLOWED_PROTOCOLS
+INLINE_IMAGES = "png|jpg|gif"
+
+; Perl regexp for WikiNames ("bumpy words")
+WIKI_NAME_REGEXP = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])"
+
+; Defaults to '/', but '.' was also used.
+SUBPAGE_SEPARATOR = /
+
+; InterWiki linking -- wiki-style links to other wikis on the web
+INTERWIKI_MAP_FILE = lib/interwiki.map
+
+; Display a warning if the internal lib/interwiki.map is used, and 
+; not the public InterWikiMap page. This file is not readable from outside.
+WARN_NONPUBLIC_INTERWIKIMAP = false
+
+; Regexp used for automatic keyword extraction.
+KEYWORDS = "Category:Topic"
+
+; Author and Copyright Site Navigation Links
+COPYRIGHTPAGE_TITLE = GNU General Public License
+COPYRIGHTPAGE_URL = http://www.gnu.org/copyleft/gpl.html#SEC1
+AUTHORPAGE_TITLE = The PhpWiki Programming Team
+AUTHORPAGE_URL = http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam
+
+; Allow full markup in headers to be parsed by the CreateToc plugin.
+TOC_FULL_SYNTAX = true
+
+;==========================================================================
+; Part Six: URL options.
+;==========================================================================
+
+; Canonical name and httpd port of the server on which this PhpWiki
+; resides.
+;SERVER_NAME = some.host.com
+;SERVER_PORT = 80
+
+; Relative URL (from the server root) of the PhpWiki script.
+; SCRIPT_NAME = /phpwiki/index.php
+
+; URL of the PhpWiki install directory.
+DATA_PATH = /phpwikidata
+
+; Path to the PhpWiki install directory.
+;PHPWIKI_DIR = /home/user/public_html/phpwiki
+
+; Default: PhpWiki will try to divine whether use of PATH_INFO
+; is supported in by your webserver/PHP configuration, and will
+; use PATH_INFO if it thinks that is possible.
+;USE_PATH_INFO = false
+
+; VIRTUAL_PATH is the canonical URL path under which your your wiki
+; appears. Normally this is the same as dirname(SCRIPT_NAME), however
+; using, e.g. apaches mod_actions (or mod_rewrite), you can make it
+; something different.
+;VIRTUAL_PATH = /SomeWiki
+
+;===========================================================================
+; Part Seven: Miscellaneous settings
+;===========================================================================
+
+; Disable HTTP redirects.
+;DISABLE_HTTP_REDIRECT = true