One you have XWiki installed you'll want to configure it. Configuration can be done in 2 ways:

  • by stopping the XWiki instance and editing the xwiki/WEB-INF/xwiki.cfg file, and then restarting XWiki
  • 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.

Note that some configurations are only accessible from the xwiki.cfg file and have no equivalent on the Administration page.

There are various things you can configure:

Invalid macro parameters used for the [toc] macro. Cause: [Failed to validate bean: [must be greater than or equal to 1]]. Click on this message for details.

Enable superadmin account

Edit the xwiki.cfg file and enable the xwiki.superadminpassword property. For example:

# Enable to allow superadmin. It is disabled by default as this could be a security breach if
# it were set and you forgot about it.

When logging in, the username will be "superadmin" and the password will be the one you set in the xwiki.superadminpassword property.

Language settings

To define the default language for your wiki go to the Administration page and in the Preferences tag locate the "Default Language" field and enter the language code for the language you wish to use. For example: "en" for English, "fr" for French, "de" for German, etc.

In addition you can configure you wiki to be multilingual. See the I18 user page for more information.

Wiki Access Configuration

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:

Open Wiki


Public Wiki


Private Wiki with password

Global rights

In Global rights set User:XWikiGuest, Groups:, Level:register, Allow-Deny:Allow.


In Preferences under Registration set Use email verification:yes. fill the other fields appropriately.

Private Wiki with token


Enabling/Disabling Statistics

To disable the Statistics feature, edit your xwiki.cfg file and replace the following properties as shown here:



  • xwiki.stats controls whether Statistics are on or off
  • xwiki.stats.default controls whether Statistics are on or off by default for the current Wiki. This is useful in Virtual Wiki mode. 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.

To enable Statistics, change "0" to "1".

Optional Store Features

XWiki stores all document attachment versions by default. This is very memory consuming (both RAM and HDD). If you need only latest versions of attachments, you can disable attachment version control by editing your xwiki.cfg and adding:

Customizing the Skin

See the Skin Guide.

Security configuration

See the Security Guide.

Customizing Menus

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 to provide the different menu panels you see on the left or right of your wikis. Check the Panels Application to know more on how to configure/modify them.


See the Encoding Guide.

User Authentication

See the Authentication Guide.

Customizing the registration page

The default registration page is defined as a template on the file system (named registerinline.vm). However it's possible to easily override it by creating a page named XWiki.Registration.


See the Logging page.

Interwiki linking is a short hand syntax for linking to pages on other websites. For example, you could link to just by typing [[email protected]].

Since XWiki renders wiki syntax using the Radeox engine, it supports Interwiki links in much the same way as SnipSnap

To configure Interwiki links on your wiki:

  • Create a file named [location from where you start your container]/conf/intermap.txt
  • Fill intermap.txt with content like:

You can of course add your own entries.

  • Note that Radeox's parser for intermap.txt is very fragile. A blank line at the bottom of the file is enough to make it fall over.
  • Restart XWiki (you'll need to restart XWiki every time you change intermap.txt) and try out an Interwiki link.
  • If it does not work, check your xwiki.log file. You'll see if conf/intermap.txt could not be found, or if there was an error parsing it.

Setting the default editor to use (Wiki or WYSIWYG)

Go the Administration screen, then click on the "Editing" accordion and select the default editor to use, as shown on the following screenshot:


Short URLs

It's possible to configure XWiki so that is uses shorter URLs.

Turning off comments or attachments

You need to change the XWiki.XWikiPreferences class like this:
  • Go to /xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
  • Add a new property called showcomments (or showattachments for turning off attachments) of type String Class
  • Go to /xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences and write no in the showcomments (or showattachments) field

    That's it, the comments (or attachments) are gone. If you want to re-enable them, replace the "no" value with "yes".

Configuring the SMTP server

If you're planning to use XWiki's feature that send emails you'll need to configure the SMTP server used and the email address under which XWiki will send emails.

To configure these go to the Administration page (http:///xwiki/bin/admin/XWiki/XWikiPreferences) and modify the Admin email field to set the email under which XWiki emails will be sent and modify the Outgoing SMTP Server field to set the SMTP server to use, as shown on the figure below.



XWiki supports defining redirections for incoming requests. To activate this feature modify your xwiki.cfg file and set the following property:
Then for each redirection you want to add, add a XWiki.GlobalRedirect object to your main wiki's XWiki.XWikiPreferences document. The XWiki.GlobalRedirect object has 2 fields: pattern and destination. The URL received is matched on pattern and if there's a match it's replaced with the value from destination. XWiki then redirects to the new URL.

Sample xwiki.cfg


\#\# Jcr Store configuration

\# List of active plugins.

\# This parameter allows XWiki to operate in Hosting mode
\# allowing to create multiple wikis having their own database
\# and responding to different URLs

\# This parameter will activate the exo integration

\# Comment if you want to enable logout only for /bin/logout/XWiki/XWikiLogout

\# Stats configuration allows to globally activate/deactivate stats module
\# it is also possible to choose a different stats service to record
\# statistics separately from XWiki.
\# Note: Statistics are disabled by default for improved performances.


\#\# Use edit comments
\#\# Hide editcomment field and only use JS
\#\# Make edit comment mandatory
\#\# Make edit comment suggested (asks 1 time if the comment is empty. 1 shows one popup if comment
\#\# is empty. 0 means there is no popup. This setting is ignored is mandatory is set)

\# GraphViz plugin configuration. The GraphViz plugin is not configured by default.
\# To enable it, add "com.xpn.xwiki.plugin.graphviz.GraphVizPlugin" to the list of plugins
\# in the xwiki.plugins property.
\# Uncomment and set the locations of the Dot and Neato executables
\#xwiki.plugin.graphviz.dotpath=c:/Program Files/ATT/GraphViz/bin/dot.exe
\#xwiki.plugin.graphviz.neatopath=c:/Program Files/ATT/GraphViz/bin/neato.exe

xwiki.plugin.laszlo.path=c:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/openlaszlo/xwiki/



\#\# Personal config

\# Enable to allow superadmin. It is disabled by default as this could be a security breach if
\# it were set and you forgot about it.



\# This parameter will activate the sectional editing

\# Uncomment if you want to ignore requests for unmapped actions, and simply display the document
\# xwiki.unknownActionResponse=view

\#\# WYSIWYG Editor configuration

\# You can configure the toolbars you wish to see in the WYSIWYG editor by defining the
\# xwiki.wysiwyg.toolbars property.
\# When not defined it defaults to:
\#   xwiki.wysiwyg.toolbars=texttoolbar, listtoolbar, indenttoolbar, undotoolbar, titletoolbar, \
\#                          styletoolbar, horizontaltoolbar, attachmenttoolbar, macrostoolbar, \
\#                          tabletoolbar, tablerowtoolbar, tablecoltoolbar, linktoolbar
\# The full list of toolbars includes the one defined above and the following ones:
\#   subtoolbar, findtoolbar, symboltoolbar

\#\# Skin configuration


Get Connected