Difference between revisions of "XWiki"

From ArchWiki
Jump to: navigation, search
(Finished installation instructions)
m (categorize like Mediawiki)
Line 1: Line 1:
[[Category:Web Server (English)]]

Revision as of 15:22, 15 December 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

XWiki is an open-source enterprise-ready wiki written in Java, with a focus on extensibility. For more information, see the Wikipedia article, and the XWiki Homepage.


Feel free to follow along on the XWiki Installation Guide. These instructions assume you will be using Tomcat and PostgreSQL. It shouldn't be too difficult to apply these guidelines to other combinations.

Note: Tomcat 7 is set up to expect jre7-openjdk by default. If you prefer to use openjdk6, you'll need to alter the TOMCAT_JAVA_HOME variable in /etc/conf.d/tomcat7, or Tomcat will not start.
  • Download the XWiki WAR file.
  • Rename the WAR file to xwiki.
  • Move the WAR file into the /var/lib/tomcat7/webapps directory.
  • Tomcat should automatically extract the WAR file. If not, restart Tomcat.
  • At this point, you may find that a data directory has appeared in /var/lib/tomcat7/webapps. Delete it.
  • As root:
# cd /var/lib/tomcat7
# mkdir data
# chown tomcat:tomcat data
  • Inside the /var/lib/tomcat7/webapps/xwiki/WEB-INF directory:
    • Open the xwiki.cfg file and alter the xwiki.work.dir field to read /var/lib/tomcat7/data/xwiki.
    • Open the xwiki.properties file and alter the container.persistentDirectory field to read /var/lib/tomcat7/data/xwiki.
    • Open the hibernate.cfg.xml file and:
      • Comment-out the section entitled "Configuration for the default database".
      • Uncomment the section entitled "PostgreSQL Configuration".
      • Modify the database name (in connection.url), username, and password as desired.
  • Create a role and database in PostgreSQL to match the hibernate configuration.
  • Install postgresql-jdbc from the Arch User Repository.
  • As root:
# cd /usr/share/java/tomcat7
# ln -s /usr/share/java/postgresql-jdbc/postgresql-jdbc4.jar
  • Restart Tomcat.
  • Launch the XWiki application by clicking on /xwiki in Tomcat Manager.
  • Download the XAR file for XWiki and upload it to populate the empty Wiki.