Wiki source code of Configuration

Version 1.30 by Vincent Massol on 2007/11/16

Show last authors
1 1 Configuration
2
3 One you have XWiki [installed>Installation] you'll want to configure it. Configuration can be done in 2 ways:
4
5 * by stopping the XWiki instance and editing the ~~xwiki/WEB-INF/xwiki.cfg~~ file, and then restarting XWiki
6 * by logging in as a user with admin rights and going to the Administration page (when using the XWiki 1.0 skin, there's a an "Administration" link in the top right corner of the screen - You can also go directly to ~~http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences~~). This allows to keep the Server running while making the changes.
7
8 Note that some configurations are only accessible from the ~~xwiki.cfg~~ file and have no equivalent on the Administration page.
9
10 There are various things you can configure:
11
12 #toc("" "" "")
13
14 1.1 Enable superadmin account
15
16 Edit the <tt>xwiki.cfg</tt> file and enable the <tt>xwiki.superadminpassword</tt> property. For example:
17
18 {code:none}
19 # Enable to allow superadmin. It is disabled by default as this could be a security breach if
20 # it were set and you forgot about it.
21 xwiki.superadminpassword=system
22 {code}
23
24 1.1 Wiki Access Configuration
25
26 The first thing you will want to do is configure a policy access for your wiki. Depending on what you intend to use your wiki for, you have several options:
27
28 * [Open Wiki>#HOpenWiki]: anyone can edit pages (including non registered users)
29 * [Public Wiki>#HPublicWiki]: only registered users can edit pages but registration is open to anyone. This is the default configuration of the default wiki (the wiki provided as a XAR on the [download page>Main.Download]).
30 * [Private Wiki with password>#HPrivateWikiwithpassword]: registration is closed
31 * [Private Wiki with token for registering>#HPrivateWikiwithtoken]: registration is closed but users knowing the token can register
32
33 1.1.1 Open Wiki
34
35 TODO
36
37 1.1.1 Public Wiki
38
39 TODO
40
41 1.1.1 Private Wiki with password
42 1.1.1.1 Global rights
43
44 In [Global rights>http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globalrights&global=1] set *User:XWikiGuest, Groups:, Level:register, Allow-Deny:Allow*.
45
46 1.1.1.1 Registration
47
48 In [Preferences>http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences] under *Registration* set *Use email verification:yes*. fill the other fields appropriately.
49
50 1.1.1 Private Wiki with token
51
52 TODO
53
54
55 1.1 Enabling/Disabling Statistics
56
57 To disable [the Statistics feature>UserGuide.IntegratedStatistics], edit your ~~xwiki.cfg~~ file and replace the following properties as shown here:
58 {code:xml}
59 xwiki.stats=0
60 xwiki.stats.default=0
61 {code}
62
63 where:
64
65 * ~~xwiki.stats~~ controls whether Statistics are on or off
66 * ~~xwiki.stats.default~~ controls whether Statistics are on or off by default for the current Wiki. This is useful in [Virtual Wiki mode>AdminGuide.Virtualization]. A wiki can decide whether Statistics is on/off by setting the "statistics" field in XWiki.XWikiPreferences. If no such field is defined the the default value ~~xwiki.stats.default~~ is used.
67
68 To enable Statistics, change "0" to "1".
69
70 1.1 Customizing the Skin
71
72 See the [Skin Guide>AdminGuide.Skins].
73
74 1.1 Security configuration
75
76 See the [Security Guide>AdminGuide.Security].
77
78 1.1 Customizing Menus
79
80 The first thing to understand is that menus depend on the skin you're using. If you're using the 1.0 skin it's likely you're using the [Panels Application>Code.PanelsApplication] to provide the different menu panels you see on the left or right of your wikis. Check the [Panels Application>Code.PanelsApplication] to know more on how to configure/modify them.
81
82 1.1 Encoding
83
84 See the [Encoding Guide>AdminGuide.Encoding].
85
86 1.1 User Authentication
87
88 See the [Authentication Guide>AdminGuide.Authentication].
89
90 1.1 Customizing the registration page
91
92 The default registration page is defined as a template on the file system (named <tt>registerinline.vm</tt>). However it's possible to easily override it by creating a page named <tt>XWiki.Registration</tt>.
93
94 1.1 Logging
95
96 See the [Logging page>Logging].
97
98 1.1 Configuring Interwiki links
99
100 [Interwiki linking>http://en.wikipedia.org/wiki/InterWiki] is a short hand syntax for linking to pages on other websites. For example, you could link to http://en.wikipedia.org/wiki/InterWiki just by typing \[InterWiki@WikiPedia\].
101
102 Since XWiki renders wiki syntax using the [Radeox>http://radeox.org] engine, it supports Interwiki links in [much the same way as SnipSnap>http://snipsnap.org/space/InterWiki+HowTo].
103
104 To configure Interwiki links on your wiki:
105
106 * Create a file named <tt>\[location from where you start your container\]/conf/*intermap.txt*</tt>
107 * Fill <tt>intermap.txt</tt> with content like:
108 {code}
109 IMDB http://us.imdb.com/Title?
110 OpenWiki http://openwiki.com/?
111 SourceForge http://sourceforge.net/
112 TWiki http://twiki.org/cgi-bin/view/
113 Why http://clublet.com/c/c/why?
114 Wiki http://c2.com/cgi/wiki?
115 WikiPedia http://www.wikipedia.com/wiki/
116 {code}
117
118 You can of course add your own entries.
119
120 * Note that Radeox's parser for intermap.txt is [very fragile>http://snipforge.org/jira/browse/RADEOX-49]. A blank line at the bottom of the file is enough to make it fall over.
121 * Restart XWiki (you'll need to restart XWiki every time you change <tt>intermap.txt</tt>) and try out an Interwiki link.
122 * If it does not work, check your <tt>xwiki.log</tt> file. You'll see if <tt>conf/intermap.txt</tt> could not be found, or if there was an error parsing it.
123
124 1.1 Setting the default editor to use (Wiki or WYSIWYG)
125
126 Go the Administration screen, then click on the "Editing" accordion and select the default editor to use, as shown on the following screenshot:
127
128 {image:defaulteditor.png}
129
130 1.1 Sample xwiki.cfg
131
132 {code}
133 xwiki.version=1.1-SNAPSHOT
134 xwiki.base=../../
135 xwiki.store.class=com.xpn.xwiki.store.XWikiHibernateStore
136 xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml
137 xwiki.store.hibernate.updateschema=1
138 xwiki.store.hibernate.custommapping=1
139
140 \#\# Jcr Store configuration
141 \#xwiki.store.class=com.xpn.xwiki.store.jcr.XWikiJcrStore
142 \#xwiki.store.attachment.class=com.xpn.xwiki.store.jcr.XWikiJcrAttachmentStore
143 \#xwiki.store.versioning.class=com.xpn.xwiki.store.jcr.XWikiJcrPropertyVersioningStore
144 \#xwiki.store.jcr.mapping=WEB-INF/classes/jcrmapping.xml
145 \#xwiki.store.jcr.provider=com.xpn.xwiki.store.jcr.JackRabbitJCRProvider
146 \#xwiki.store.jcr.jackrabbit.repository.config=WEB-INF/classes/jackrabbit/repository.xml
147 \#xwiki.store.jcr.jackrabbit.repository.path=jackrabbitrepo
148 \#xwiki.store.jcr.jackrabbit.nodetypes.config=WEB-INF/classes/jackrabbit/nodetypes.cnd
149
150 xwiki.store.cache=1
151 xwiki.store.cache.capacity=100
152 xwiki.monitor=1
153
154 \# List of active plugins.
155 xwiki.plugins=com.xpn.xwiki.monitor.api.MonitorPlugin,\\
156 com.xpn.xwiki.plugin.calendar.CalendarPlugin,\\
157 com.xpn.xwiki.plugin.feed.FeedPlugin,\\
158 com.xpn.xwiki.plugin.ldap.LDAPPlugin,\\
159 com.xpn.xwiki.plugin.google.GooglePlugin,\\
160 com.xpn.xwiki.plugin.flickr.FlickrPlugin,\\
161 com.xpn.xwiki.plugin.mail.MailPlugin,\\
162 com.xpn.xwiki.plugin.packaging.PackagePlugin,\\
163 com.xpn.xwiki.plugin.query.QueryPlugin,\\
164 com.xpn.xwiki.plugin.svg.SVGPlugin,\\
165 com.xpn.xwiki.plugin.charts.ChartingPlugin,\\
166 com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\\
167 com.xpn.xwiki.plugin.image.ImagePlugin,\\
168 com.xpn.xwiki.plugin.captcha.CaptchaPlugin,\\
169 com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\\
170 com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\\
171 com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\\
172 com.xpn.xwiki.plugin.autotag.AutoTagPlugin
173
174 \# This parameter allows XWiki to operate in Hosting mode
175 \# allowing to create multiple wikis having their own database
176 \# and responding to different URLs
177 xwiki.virtual=0
178 xwiki.virtual.redirect=http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist
179
180 \# This parameter will activate the exo integration
181 xwiki.exo=0
182
183 xwiki.authentication=form
184 xwiki.authentication.validationKey=totototototototototototototototo
185 xwiki.authentication.encryptionKey=titititititititititititititititi
186 xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
187 \# Comment if you want to enable logout only for /bin/logout/XWiki/XWikiLogout
188 xwiki.authentication.logoutpage=/[^/]+/logout/*
189
190 \# Stats configuration allows to globally activate/deactivate stats module
191 \# it is also possible to choose a different stats service to record
192 \# statistics separately from XWiki.
193 \# Note: Statistics are disabled by default for improved performances.
194 xwiki.stats=0
195 xwiki.stats.default=1
196 xwiki.stats.class=com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl
197
198 xwiki.encoding=ISO-8859-1
199 xwiki.render.macromapping=1
200 xwiki.backlinks=1
201 xwiki.tags=1
202
203 \#\# Use edit comments
204 xwiki.editcomment=1
205 \#\# Hide editcomment field and only use JS
206 xwiki.editcomment.hidden=0
207 \#\# Make edit comment mandatory
208 xwiki.editcomment.mandatory=0
209 \#\# Make edit comment suggested (asks 1 time if the comment is empty. 1 shows one popup if comment
210 \#\# is empty. 0 means there is no popup. This setting is ignored is mandatory is set)
211 xwiki.editcomment.suggested=0
212
213 \# GraphViz plugin configuration. The GraphViz plugin is not configured by default.
214 \# To enable it, add "com.xpn.xwiki.plugin.graphviz.GraphVizPlugin" to the list of plugins
215 \# in the xwiki.plugins property.
216 \# Uncomment and set the locations of the Dot and Neato executables
217 \#xwiki.plugin.graphviz.dotpath=c:/Program Files/ATT/GraphViz/bin/dot.exe
218 \#xwiki.plugin.graphviz.neatopath=c:/Program Files/ATT/GraphViz/bin/neato.exe
219
220 xwiki.plugin.laszlo.baseurl=/openlaszlo/xwiki/
221 xwiki.plugin.laszlo.path=c:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/openlaszlo/xwiki/
222
223 xwiki.plugin.image.cache.capacity=30
224
225 xwiki.plugin.captcha=1
226
227 \#\# Personal config
228
229 \# Enable to allow superadmin. It is disabled by default as this could be a security breach if
230 \# it were set and you forgot about it.
231 \#xwiki.superadminpassword=system
232
233 xwiki.authentication.ldap=0
234 xwiki.authentication.ldap.server=172.29.116.202
235 xwiki.authentication.ldap.check_level=1
236 xwiki.authentication.ldap.port=389
237 xwiki.authentication.ldap.base_DN=dc=necf,dc=fr
238 xwiki.authentication.ldap.bind_DN=cn={0},cn=Users,dc=necf,dc=fr
239 xwiki.authentication.ldap.bind_pass={1}
240 xwiki.authentication.ldap.UID_attr=sAMAccountName
241 xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
242
243 xwiki.authentication.unauthorized_code=200
244
245 \# This parameter will activate the sectional editing
246 xwiki.section.edit=1
247
248 \# Uncomment if you want to ignore requests for unmapped actions, and simply display the document
249 \# xwiki.unknownActionResponse=view
250
251 \#\# WYSIWYG Editor configuration
252
253 \# You can configure the toolbars you wish to see in the WYSIWYG editor by defining the
254 \# xwiki.wysiwyg.toolbars property.
255 \# When not defined it defaults to:
256 \# xwiki.wysiwyg.toolbars=texttoolbar, listtoolbar, indenttoolbar, undotoolbar, titletoolbar, \
257 \# styletoolbar, horizontaltoolbar, attachmenttoolbar, macrostoolbar, \
258 \# tabletoolbar, tablerowtoolbar, tablecoltoolbar, linktoolbar
259 \# The full list of toolbars includes the one defined above and the following ones:
260 \# subtoolbar, findtoolbar, symboltoolbar
261
262 \#\# Skin configuration
263
264 xwiki.defaultskin=albatross
265 xwiki.defaultbaseskin=albatross
266
267 {code}

Get Connected