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….
- 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 http://download.forge.ow2.org/xwiki/xwiki-enterprise-installer-generic-8.4.4-standard.jar
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 start_xwiki.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 start_xwiki.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 start_xwiki.sh -p 80
nohup sh start_xwiki.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!