How to Install XWiki on CentOS 7

How to Install XWiki on CentOS 7

XWiki is an open-source, enterprise-level wiki software platform written in Java. It includes WYSIWYG editing, OpenDocument based document import/export, semantic annotations and tagging, and advanced permissions management.

Features of XWiki are:

  • First and most important: it’s free and open source!
  • Page editing with powerful wiki syntax or robust WYSIWYG editor.
  • Supports version control as well as access control list (ACL).
  • Export wiki pages to PDF, ODT, RTF, XML or HTML.
  • Allows you to host multiple blogs and powerful file manager to manage or view your files and folders.
  • and many more….

XWiki Requirements:

  • Java 8 or greater
  • A Servlet Container supporting Servlet 3.0.1
  • A JDBC 4 Driver for your database
  • At least 2 GB RAM (or 1 GB for smaller wikis)

This tutorial is written and tested for a CentOS 7:

To start the installation of XWiki on Centos 7, let us login to the server and first update the server with below command.

# yum update

Next, we will install nano and wget (Skip the step if already installed) with below command:

# yum install nano wget

To run XWiki, we need to install Java with the below command. FYI, XWiki is built and run on Java.

# yum install java

We will check the version of Java installed with below command.

# java --version

Next, we will download the XWiki package with the below command.

# wget

Then we will run the installer with the below command.

# java -jar xwiki-enterprise-installer-generic-8.4.4-standard.jar

Next, follow the instructions and answer with simply pressing 1 (accept), 2 (quit) or 3 (redisplay) and YES/NO.

Once the steps are completed, we will next start the XWiki service.

To start XWiki, you need to navigate to the directory you chose in the previous step:

# cd /usr/local/"XWiki Enterprise 8.4.4"

Note: You can run XWiki from any other location of your choice by providing the location in the previous step (In the installer step).

Next, run the start script with the below command.

# sh

You can also run the script in the background, so that exiting the terminal will not exit the service, by running the below command.

# nohup sh &

Once the script is properly executed, XWiki is installed and started.  You can visit the XWiki site browsing below URL.



The default XWiki administrator username and password are:

Username: Admin
Password: admin

By default, XWiki runs on port 8080, but if you’d like to use port 80, make sure there’s nothing already running on port 80 and start XWiki with the following command:

sh -p 80


nohup sh -p 80 &

In this case, you can access the XWiki site by visiting the below URL.



The XWiki default page is shown below.

This completes the XWiki installation tutorial. Enjoy using your new Wiki site!


Safi Ahmed Choudhury

Safi Ahmed Choudhury

Safi is the founder and chief editor of ZoomTutorials Blog, a leading tutorials and technology blogging site specializing in DevOps, SysAdmin and Cloud Technologies to help IT professionals in their day to day work. He is a Senior Cloud and DevOps Solutions Engineer at a leading eCommerce development Company and has more than 8 years of SysAdmin experience working with Fortune 500 companies to solve their most important IT backbones. Safi lives in Hyderabad with his wife and a son.

2 thoughts on “How to Install XWiki on CentOS 7

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.