Jspwiki System Construction

Source: Internet
Author: User
Wiki System Construction

In the past two days, I want to build a wiki system to facilitate internal communication. I checked it online and finally selected jspwiki as the wiki system. Below I will record my installation process as follows, in the installation process, I mainly refer to the instructions on using jspwiki configuration to build a wiki. In order to maintain the integrity of the article, I posted some installation procedures in this article, at the same time, record some of your problems.

 

 

1, preparation a) prepare JDK and tomcat download JDK and Tomcat and install, I installed version: j2sdk1.4.2 and jakarta-tomcat-5.0.28, Tomcat is best installed in the root directory, do not have spaces. JDK: http://java.sun.com/j2se/1.4.2/download.htmlTomcat:http://jakarta.apache.org/downloads/binindex.html plugin. Jspwiki: http://jspwiki.org 2. Deploy jspwiki to copy the jspwiki In the compressed package. war to Tomcat's webapps, rename it as your Wiki name, for example, mywiki. war 3. start Tomcat and enter http: // 127.0.0.1: 8080/mywiki in the browser. Tomcat will start to deploy your Wiki and automatically create the mywiki folder under webapps, includes JSP files and configuration information, where the jspwiki under the WEB-INF. properties contains the main configuration information, which can be found at http: // 127.0.0.1: 8080/mywiki/install. JSP. At the same time, Tomcat will automatically create a data folder for your Wiki. in Linux, It is/P/web/www-data/jspwiki. In Windows, it is D: /P/web/www-data/tomwiki (assuming Tomcat is installed on disk D) 4. Modify jspwiki configuration through the Wiki configuration page http: // 127.0.0.1: 8080/mywiki/install. JSP. You can also directly modify the jspwiki file. properties. The configuration content includes: jspwiki. pageprovider = filesystemprovider -- page storage method. We recommend that you use versioningfileprovider to provide the simple version control function jspwiki. usepagecache = true -- page cache. The default value is jspwiki. filesystemprovider. pagedir =/P/web/www-data/jspwiki/-- the location where the Wiki content is stored, that is, the location where a bunch of TXT files are located. encoding = UTF-8 -- if you want to use Chinese, the comment before this configuration item must be removed from jspwiki. translatorreader. allowhtml = false -- whether to allow HTML in wiki. Jspwiki. templatedir = default -- Wiki template. You can download the template from jspwiki, put it in the templates directory, and change the name here to get jspwiki. translatorreader. inlinepattern.1 = *. JPG -- if you want to allow wiki to support more image formats, modify jspwiki here. lucene. analyzer = org. apache. lucene. analysis. CJK. cjkanalyzer-supports Chinese search 5. Use the Chinese template jspwiki to replace the "defalut" template that comes with the release package with a third-party template. The popular Templates include Mgr and nexb. Use the Chinese template library star_zh_cn. download jspwiki_zh_cn.zip and decompress a. Copy the templates/star_zh_cn directory to {tomwiki}/templates. B) copy the TXT file under the wikipages directory to the "Wiki webpage directory" of tomwiki. For the "wiki Web directory", see the jspwiki. filesystemprovider. pagedir value in the {tomwiki}/WEB-INF/jspwiki. properties file. C) modify the value of the jspwiki. templatedir attribute in the {tomwiki}/WEB-INF/jspwiki. properties file to star_zh_cn. D) (restart) Start the web server.

The preceding section uses the jspwiki configuration to build a wiki. The methods described in this document should be cleared. The following are some of my problems:

  • Install a Chinese template

Modify {tomwiki}/WEB-INF/jspwiki. jspwiki in the properties file. the value of the templatedir attribute is star_zh_cn, which I didn't take into account at the time. I assume that the absolute path of the template needs to be set here according to templatedir's opinion. after several failed attempts, after carefully reading the description of the configuration file, you can understand that what you need here is the relative path of the template, that is, the name of your template folder.

  • Chinese search garbled

After jspwiki is configured, when I find that Chinese characters are searched, the search conditions are garbled. Based on the methods described in this article, however, I found that the Chinese template I installed has been fixed. After that, I did not make any changes. Can I search for Chinese characters? The specific reason has not been cleared yet.

Mediawiki Wiki System Construction

In the past two days, I want to build a wiki system to facilitate internal communication. I checked it online and finally selected jspwiki as the wiki system. Below I will record my installation process as follows, in the installation process, I mainly refer to the instructions on using jspwiki configuration to build a wiki. In order to maintain the integrity of the article, I posted some installation procedures in this article, at the same time, record some of your problems.

 

 

1, preparation a) prepare JDK and tomcat download JDK and Tomcat and install, I installed version: j2sdk1.4.2 and jakarta-tomcat-5.0.28, Tomcat is best installed in the root directory, do not have spaces. JDK: http://java.sun.com/j2se/1.4.2/download.htmlTomcat:http://jakarta.apache.org/downloads/binindex.html plugin. Jspwiki: http://jspwiki.org 2. Deploy jspwiki to copy the jspwiki In the compressed package. war to Tomcat's webapps, rename it as your Wiki name, for example, mywiki. war 3. start Tomcat and enter http: // 127.0.0.1: 8080/mywiki in the browser. Tomcat will start to deploy your Wiki and automatically create the mywiki folder under webapps, includes JSP files and configuration information, where the jspwiki under the WEB-INF. properties contains the main configuration information, which can be found at http: // 127.0.0.1: 8080/mywiki/install. JSP. At the same time, Tomcat will automatically create a data folder for your Wiki. in Linux, It is/P/web/www-data/jspwiki. In Windows, it is D: /P/web/www-data/tomwiki (assuming Tomcat is installed on disk D) 4. Modify jspwiki configuration through the Wiki configuration page http: // 127.0.0.1: 8080/mywiki/install. JSP. You can also directly modify the jspwiki file. properties. The configuration content includes: jspwiki. pageprovider = filesystemprovider -- page storage method. We recommend that you use versioningfileprovider to provide the simple version control function jspwiki. usepagecache = true -- page cache. The default value is jspwiki. filesystemprovider. pagedir =/P/web/www-data/jspwiki/-- the location where the Wiki content is stored, that is, the location where a bunch of TXT files are located. encoding = UTF-8 -- if you want to use Chinese, the comment before this configuration item must be removed from jspwiki. translatorreader. allowhtml = false -- whether to allow HTML in wiki. Jspwiki. templatedir = default -- Wiki template. You can download the template from jspwiki, put it in the templates directory, and change the name here to get jspwiki. translatorreader. inlinepattern.1 = *. JPG -- if you want to allow wiki to support more image formats, modify jspwiki here. lucene. analyzer = org. apache. lucene. analysis. CJK. cjkanalyzer-supports Chinese search 5. Use the Chinese template jspwiki to replace the "defalut" template that comes with the release package with a third-party template. The popular Templates include Mgr and nexb. Use the Chinese template library star_zh_cn. download jspwiki_zh_cn.zip and decompress a. Copy the templates/star_zh_cn directory to {tomwiki}/templates. B) copy the TXT file under the wikipages directory to the "Wiki webpage directory" of tomwiki. For the "wiki Web directory", see the jspwiki. filesystemprovider. pagedir value in the {tomwiki}/WEB-INF/jspwiki. properties file. C) modify the value of the jspwiki. templatedir attribute in the {tomwiki}/WEB-INF/jspwiki. properties file to star_zh_cn. D) (restart) Start the web server.

The preceding section uses the jspwiki configuration to build a wiki. The methods described in this document should be cleared. The following are some of my problems:

  • Install a Chinese template

Modify {tomwiki}/WEB-INF/jspwiki. jspwiki in the properties file. the value of the templatedir attribute is star_zh_cn, which I didn't take into account at the time. I assume that the absolute path of the template needs to be set here according to templatedir's opinion. after several failed attempts, after carefully reading the description of the configuration file, you can understand that what you need here is the relative path of the template, that is, the name of your template folder.

  • Chinese search garbled

After jspwiki is configured, when I find that Chinese characters are searched, the search conditions are garbled. Based on the methods described in this article, however, I found that the Chinese template I installed has been fixed. After that, I did not make any changes. Can I search for Chinese characters? The specific reason has not been cleared yet.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.