Install XWiki from the Debian Packages

Last modified by superadmin on 2026/11/27 11:53

Let apt install the servlet container, the database and the Java runtime along with XWiki, then install a flavor from your browser.

Steps

  1. Register XWiki's APT repository and the key its packages are signed with. The list file names the release channel, stable here, among the four the repository offers.
    sudo wget https://maven.xwiki.org/xwiki-keyring.gpg -O /usr/share/keyrings/xwiki-keyring.gpg
    sudo wget "https://maven.xwiki.org/stable/xwiki-stable.list" -O /etc/apt/sources.list.d/xwiki-stable.list
  2. Update the package database so that it reads the new repository.
    sudo apt update
  3. Install the package named after your servlet container and your database, among the packages the repository offers.
    sudo apt install xwiki-tomcat11-mariadb
  4. Accept dbconfig's offer to configure the database, unless you want to create the xwiki database and user yourself. It asks for a password for the xwiki user, which it then writes into XWiki's configuration, so you do not have to remember it.
  5. Raise the memory the servlet container gives XWiki, in the file configuring its daemon, as described in Java Memory for Tomcat.
    /etc/default/tomcat11              # xwiki-tomcat* packages
    /lib/systemd/system/xwiki.service  # xwiki-xjetty* packages
  6. Restart the service so that the new memory setting takes effect, and check that it is running. The package enabled it at boot.
    sudo systemctl restart tomcat11
    sudo systemctl status tomcat11
  7. Open your wiki in a browser and install the flavor with the Distribution Wizard, which fills the still empty wiki with its Pages.
    http://localhost:8080/xwiki

FAQ

Which package should I install?

The one named after the servlet container and the database you want, such as xwiki-tomcat11-mariadb; XWiki Debian Repositories and Packages lists them all, including the ones that leave part of the stack to you.

Which Debian and Ubuntu versions does this work on?

All Debian-based distributions, as long as they ship a supported servlet container and a supported Java version; on Ubuntu, the Tomcat packages additionally need the universe repository, which is enabled by default.

Is the password dbconfig asks for the database root password?

No. The database root password prompt belongs to the database package and is for its superuser, while dbconfig asks for the password of the xwiki user XWiki connects with, which it then writes into XWiki's configuration for you.

Why does XWiki run out of memory on Tomcat?

Most Debian distributions ship Tomcat with a heap of 128 MB, which is not enough for XWiki.

Can I use an xwiki-*-mysql package against a MariaDB server?

No. Install the matching xwiki-*-mariadb package instead, since the two databases need different configurations.

More

To find more about the current topic, you can search, select an highlighted topic, or use the table below and filter the columns to narrow your choices.

Related

Get Connected