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     - To delete the directory and all specified files under the Mac (Linux)

- Spring AOP for logging (Programming)

- Linux data redirection (Linux)

- Oracle Database ORA-01555 snapshot too old (Database)

- Use lsof restore accidentally deleted log files or database (Linux)

- To setup Cocos2dx project under Ubuntu (Linux)

- MySQL Tutorial: Philosophical Reflections on the unauthenticated user (Database)

- Struts2 form of non-use component tags (Programming)

- Composition and dynamic memory allocation C program (Programming)

- To obtain installation package (RPM) under RHEL6 (Linux)

- installation and configuration of the PHP environment (Apache2) under Linux (Server)

- Zombie process under Linux (Linux)

- Use regular expressions to check whether the input box to enter a URL (Programming)

- Eclipse, Tomcat configuration JNDI connection Oracle data source example (Server)

- VirtualBox modify the size of the virtual machine disk VDI (Linux)

- How to use Linux to download music from Grooveshark (Linux)

- Python data types summary (Programming)

- Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)

- Linux System Getting Started Tutorial: how to find information on Linux-embedded module (Linux)

- Spark source code compiler package (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
- PostgreSQL query lock and kill the process (Database)
- Linux Getting Started tutorial: XWindow what (Linux)
- How to use the Docker Machine cluster deployment Swarm (Server)
- After installing Ubuntu 15.04, to do a few things (Linux)
- ORA-00911 invalid character error Solution (Database)
- Management and application Oracle external table (Database)
- How SSHfs mount a remote file system on Linux (Linux)
- Linux netstat command to get started (Linux)
- Linux dd command applies amplification SWAP partition (Linux)
- GROUP BY extension (Database)
- Using BBED repair ORA-01190 error (Database)
- To assign multiple IP addresses NIC on the CentOS 7 (Linux)
- A drop datafile Oracle bug (Database)
- Using Linux / Unix Text processing (Linux)
- Oracle common internal event tracking number (Database)
- Oracle to start to solve the error ORA-27102 (Database)
- How to download GOG games in Linux command line (Linux)
- Linux System Getting Started Learning: Using the Linux command line detected DVD burner name and write speeds (Linux)
- Oracle EBS R12 for Linux installation (Database)
- ogg start being given libnnz11.so: can not open shared object file (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.