Install XWiki from the Debian Packages
Let apt install the servlet container, the database and the Java runtime along with XWiki, then install a flavor from your browser.
Steps
- 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 - Update the package database so that it reads the new repository.
sudo apt update - Install the package named after your servlet container and your database, among the packages the repository offers.
sudo apt install xwiki-tomcat11-mariadb - 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.
- 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 - 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 - 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.
- XWiki Debian Repositories and Packages
- The four release channels to choose between, the container and database each package name encodes, and the Solr cores shipped separately.
- Files Installed by the Debian Packages
- Where the configuration, the permanent data, the web application and the logs of XWiki, its servlet container and its database each end up.
- Debian Package Troubleshooting
- The Java dependency apt cannot satisfy, the wiki that will not start, and which log to read for each server the packages install.
- Deploy XWiki as the Root Web Application on Debian
- URLs that no longer carry the application name, from one change to the context file the package installed and one to xwiki.cfg.
- Set Up a Standalone Solr Server on Debian
- XWiki's four search cores running in a Solr server of your own, installed from their packages, with the wiki pointed at it.
- Uninstall the XWiki Debian Packages
- No XWiki package installed, the container, database and Java runtime removed with it, and the permanent directory gone only if you deleted it.