Home  >  Article  >  System Tutorial  >  Install and configure on CentOS using XWiki

Install and configure on CentOS using XWiki

王林
王林forward
2024-01-02 12:53:41749browse

Due to popular demand, here is another tutorial on installing a wiki using XWiki on a CentOS 7 server. We've already posted a tutorial on how to install DokuWiki in Ubuntu, but if you need a DokuWiki alternative, XWiki is a great option.

在 CentOS 下安装使用 XWiki

XWiki Information

First and most important: it is free and open source! Here are some XWiki features:

  • A very powerful WYSIWYG editor
  • Powerful wiki syntax
  • Powerful permission management
  • Responsive Skin
  • Advanced Search
  • Unique Application Set
  • And many more features...
Why use XWiki?

It has been developed for over 10 years, XWiki is used by many well-known companies as:

  • knowledge base
  • Intranet collaboration
  • Public website
  • Business Application
  • Others, etc...
XWiki Requirements
  • Java 8 or higher
  • Servlet container that supports Servlet 3.0.1
  • JDBC 4 driver for database support
  • At least 2GB RAM (1GB for smaller wikis)
  • You can purchase a VPS from cloud service providers such as Alibaba Cloud, and use the one-click deployment Java environment

We will use CentOS 7 server in this tutorial.

XWiki Installation Guide in CentOS 7

let's start. First log in to CentOS VPS and update your system:

yum update

If you haven’t installed nano and wget yet, install them first:

yum install nano wget
Install Java

XWiki is based on and runs in the Java environment, so we need to install Java. To install it, run the following command:

yum install java

To verify that the installation was successful, run:

java -version
Download and install XWiki

Currently, the latest version of XWiki is 8.4.4. If there is a newer version, you can update it with the update command.

To download the XWiki installer, run:

wget http://download.forge.ow2.org/xwiki/xwiki-enterprise-installer-generic-8.4.4-standard.jar

To run the installer, enter the following command:

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

Now, the installer will prompt you to ask several questions. Enter 1 (accept), 2 (exit), 3 (restart). show). Most prompts can be answered with 1 (accept). This installer is self-explanatory and easy to understand, so just follow its step-by-step recommendations.

Start XWiki

To start XWiki, you need to go to the directory you selected earlier:

cd /usr/local/"XWiki Enterprise 8.4.4"

And run the script:

bash start_xwiki.sh

Just wait for the script to complete execution. XWiki is installed and started. It's that simple.

Now you can access XWiki through domain name or server IP on port 8080:

http://server-ip:8080

or

http://example.com:8080

XWiki runs on port 8080 by default, but if you want to use port 80, make sure no other program is running on port 80 and start XWiki with the following command:

bash start_xwiki.sh -p 80

Now you can access XWiki without specifying a port. When you visit, you should see the default XWiki home page.

XWiki’s default administrator user and password are:

  • Username: Admin
  • Password: admin

Use them to log in and access the admin panel. Have fun using your new wiki!


The above is the detailed content of Install and configure on CentOS using XWiki. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete