Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Using open source software to build XWiki Wiki system installed within the company     - TOAST function in PostgreSQL (Database)

- MariaDB database storage path modify configuration issues (Database)

- Linux RAID Set RAID 10 or 0 + 1 (Linux)

- Java Network Programming Internet address lookup (Programming)

- Ubuntu 14.04 CodeBlocks configuration manually compile Boost 1.57.0 (Linux)

- Ten correct use Redis skills (Database)

- Download Google Android source code under Ubuntu 4.4 (Linux)

- Java polymorphic methods inside constructors complete analysis (Programming)

- Redhat 7 modify the default run level method --RHEL7 use systemd to create a symbolic link to the default runlevel (Linux)

- 12 kinds of detection of CPU information on a Linux system tools (Linux)

- XtraBackup achieve non-stop use of master-slave synchronization service (Database)

- Top command: the Task Manager under linux (Linux)

- php performance monitoring module XHProf (Linux)

- Ubuntu 12.04 installed OpenCV 2.3.1, binary image (Linux)

- MySQL backup tool to back up mydumper (Database)

- OpenSUSE 13.1 OpenSUSE 12.3 and how to install Cinnamon 2.2 Desktop (Linux)

- How to properly set up a Linux swap partition (Linux)

- Linux Powerful command Awk Introduction (Linux)

- Let Ubuntu 14.04 Save screen luminance value (Linux)

- Experts teach you how to identify the actual functional differences between the firewall (Linux)

  Using open source software to build XWiki Wiki system installed within the company
  Add Date : 2017-08-31      
  First described in the application background

In the usual operation and maintenance work, the regular work of document finishing is very important, whether it is routine work process or the transfer of work, real-time maintenance documentation can improve work efficiency. If using the traditional TXT file or a Word document to record the words of modification is not convenient, you can better use online Wiki allows everyone to view or modify in real time documentation.

Wiki Confluence is doing a better system, but need to purchase a License to use Confluence, the Internet has cracked version. Compare several open source Wiki system, we chose as our XWiki Wiki system, because it provides features and functions are very similar to Confluence, without having to learn any grammar format, you can directly edit the same line as edit Word Wiki page.

XWIKI has the following significant features:

  1) Multi-language support, support for English, Chinese, Korean, Japanese, etc.
  2) You can upload attachments
  3) support LDAP login authentication mode
  4) can be imported directly into Office documents as WIKI page, WIKI page can also be exported into an Office document or PDF document
  5) Users do not need to learn any WIKI syntax, direct use WYSIWYG editor to edit WIKI page.
  6) having a version control and management functions, and can fall back to the previous version of history
  7) friendly interface, feature-rich, built-in search engine, you can search for the station.
  Rights Management 8) user and group rights management, space and page
  9) e-mail notification
  10) supports a variety WIKI syntax, such as Confluence, Markdown, Jspwiki, meidawiki, twiki etc.

Second mounting XWIKI
Currently XWIKI latest official version is 6.3 and can be installed singly or in combination with other WEB containers such as tomcat installation. Here we use tomcat as the container installation XWIKI

Various versions of installation methods are similar

As used herein, the family of operating systems CentOS6
1) Install Java and Tomcat
yum -y install java-1.7.0-openjdk
Install Chinese font library
yum install autocorr-zh.noarch libreoffice-langpack-zh-Hans.x86_64 libreoffice-langpack-zh-Hant.x86_64
wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57-fulldocs.tar.gz
wget http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-6.3.war

2) into the installation directory under tomcat, tomcat installation directory according to their availability.
cd / data / app_platform / xwiki_tomcat / webapps /
mkdir xwiki

The xwiki-enterprise-web-6.3.war into xwiki directory
cd / data / app_platform / xwiki_tomcat / webapps / xwiki /
unzip xwiki-enterprise-web-6.3.war

3) Edit the tomcat server.xml modify 8080 Sets encoded as UTF8, and allow gzip compression

 < Connector port = "8080" protocol = "HTTP / 1.1"
              connectionTimeout = "20000"
              redirectPort = "8443"
              URIEncoding = "UTF-8"
              compression = "on"
              compressionMinSize = "2048"
              compressableMimeType = "text / html, text / xml, text / css, text / javascript, application / x-javascript" />

4) Configure the JVM memory size and the installation path
If it is installed via yum tomcat you need to modify this file as /etc/tomcat6/tomcat6.conf
If the tomcat source package installation, modify the bin / catalina.sh this document
12 JAVA_HOME = "/ usr / lib / jvm / java-1.7.0-openjdk.x86_64 /"
JAVA_OPTS = "- Xmx300m -XX: MaxPermSize = 196m"


5) Configure Nginx forwarding
By default XWIKI similar to http: // xxxx: 8080 / xwiki /
The access can be configured to forward Nginx
server {
    listen 80;
    server_name xwiki.xxx.xxx;
    root / data / app_platform / xwiki_tomcat / webapps / xwiki /;
    location / {
        rewrite ^ $ scheme: // $ server_name / xwiki $ request_uri permanent;?
    location ^ ~ / xwiki {
# If path starts with / xwiki - then redirect to backend: XWiki application in Tomcat
      proxy_pass http: // localhost: 8080 / xwiki;

6) Configure MySQL database
MySQL version 5.0 or higher is recommended, do not use the MyISAM storage engine, because MyISAM does not support transactions, it is recommended to use the InnoDB storage engine.

Create database XWIKI
create database xwiki default character set utf8 collate utf8_bin;

Given the appropriate permissions
grant all privileges on xwiki * to xwiki identified by 'xwiki, /.'.;
flush privileges;

Download the MySQL JDBC Driver Jar into / data / app_platform / xwiki_tomcat / webapps / xwiki / WEB-INF / lib directory
wget http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.jar

Edit /data/app_platform/xwiki_tomcat/webapps/xwiki/WEB-INF/hibernate.cfg.xml
To comment out the default, then that section of the MySQL uncommented
 < -! MySQL configuration.
        Uncomment if you want to use MySQL and comment out other database configurations.
    < Property name = "connection.url"> jdbc: mysql: // localhost / xwiki
    < Property name = "connection.username"> xwiki
    < Property name = "connection.password"> xwiki
    < Property name = "connection.driver_class"> com.mysql.jdbc.Driver
    < Property name = "dialect"> org.hibernate.dialect.MySQL5InnoDBDialect
    < Property name = "dbcp.ps.maxActive"> 20
    < Mapping resource = "xwiki.hbm.xml" />
    < Mapping resource = "feeds.hbm.xml" />
    < Mapping resource = "activitystream.hbm.xml" />
    < Mapping resource = "instance.hbm.xml" />

7) Configuring Office Server

 yum install libreoffice libreoffice-headless
Edit xwiki.properties
openoffice.autoStart = true
openoffice.homePath = / usr / lib64 / libreoffice /

8) XWIKI character set encoding configuration

  < Filter>
    < Filter-name> Set Character Encoding < / filter-name>
    < Filter-class> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter < / filter-class>
    < -! The encoding to use This must be the same as the one in xwiki.cfg (hopefully only one.
        encoding will be used later) -.>
    < Init-param>
      < Param-name> encoding < / param-name>
      < Param-value> UTF-8 < / param-value>
    < / Init-param>
    < -! Whether to ignore and override the encoding specified by the client, when this actually
        happens. For example, AJAX requests made through XmlHttpRequests specify UTF-8. When this
        is set to false, the custom encoding is used only when there was not any encoding specified
        by the client -.>
    < Init-param>
      < Param-name> ignore < / param-name>
      < Param-value> false < / param-value>
    < / Init-param>
  < / Filter>



# - # The encoding to use when transformin strings to and from byte arrays This causes the jvm encoding to be ignored,.
# - # Since we want to be independend of the underlying system.
xwiki.encoding = UTF-8

hibernate.cfg.xml added
    < Property name = "connection.useUnicode"> true < / property>
    < Property name = "connection.characterEncoding"> UTF-8 < / property>

MySQL configuration file my.cnf

default-character-set = utf8
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_bin

9) Manage Attachments

By default, XWIKI database to store attachments, attachment upload a maximum of about 30M, while MySQL configuration file my.cnf set max_allowed_packet to be about 3 times the maximum, because the version of history will consume storage space
Use file system storage can upload larger attachment, XWIKI use a temporary directory to store from the database to call up images or attachments.

Attachments are stored in the directory xwiki.properties set, you can not arbitrarily add or delete the contents of this directory, because each attachment in the database has a corresponding metadata
# - # Note if the system property xwiki.data.dir is set then this property is not used.
# - # If neither the system property nor this configuration value here are set then the Servlet container's temporary
# - # Directory is used; This is absolutely not recommended since that directory could be wiped out at any time and you
# - # Should specify a value.
environment.permanentDirectory = / data / xwiki /

Preferably in the first run XWIKI when it sets a good way to store attachments

Provided xwik.cfg file
xwiki.store.attachment.hint = file
xwiki.store.attachment.versioning.hint = file
xwiki.store.attachment.recyclebin.hint = file

10) can be accessed directly through xwiki.xxx.xxx XWIKI way, and then enter the installation page
- Ubuntu 14.04 LTS compiler installation R Source Code (Linux)
- Python 2 Chinese garbage problem solved (Linux)
- Use scripts easily install the latest Linux kernel in Ubuntu (Linux)
- Linux iptables firewall settings (Linux)
- Linux Demo dd IO test (Linux)
- Linux operating system log system (Linux)
- Spring + Log4j + ActiveMQ remote logging - Analysis of combat (Server)
- Build a Linux development environment under STC89C52RC (Linux)
- How to install CentOS CentOS web page (Server)
- Camera-based face recognition OpenCV crawl and storage format (Python) (Linux)
- CentOS7 method to upgrade the kernel to 3.18 (Linux)
- Node.js Getting the basics: Helloworld! (Linux)
- TeamCity continuous integration in the Linux installation (Linux)
- KUbuntu / Ubuntu 14.04 (downgrade) installed SVN 1.7 (Linux)
- Shorewall firewall settings under Ubuntu (Linux)
- Mac OS X systems create Ubuntu USB boot disk for the Mac (Linux)
- Java string concatenation techniques (StringBuilder tips) (Programming)
- Using LLVM Clang and Blocks under Linux (Programming)
- Install the free open source financial software GnuCash 2.6.6 under Ubuntu (Linux)
- Linux partition command (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.