`
MauerSu
  • 浏览: 514418 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Installing XWiki .war package manually

 
阅读更多
源:http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationWAR
评:
Installing XWiki .war package manually
Last modified by Vincent Massol on 2014/06/07 11:50
More actions
Contents
Install and configure a Servlet Container
Install and configure a Relational Database
Concluding Step
You'll need to perform 2 mandatory steps:

Install and configure a Servlet Container
Install and configure a relational database
But first, you'll need to download the .war version of XWiki and check the System Requirements.

Install and configure a Servlet Container
XWiki will work with any Servlet Container (provided it's properly configured obviously). We're only listing instructions for a few containers but you can adapt these instructions for your favorite container.

Tomcat installation
Jetty installation
GlassFish installation
WebSphere installation
JBoss Installation
Oracle OC4J Installation
Apache Geronimo
Some containers have the Java Security Manager turned on. In this case, XWiki needs to be granted some permissions. Below there's a sample policy file if you want to run your container with the Security Manager active. Depending on the version of XWiki Enterprise that you use and on the plugins/extensions that you use the permissions might need to be adjusted to your needs:

grant codeBase "file:<full-path-here>/webapps/xwiki/WEB-INF/lib/-" {
  permission java.util.PropertyPermission "file.encoding", "read";
// Needed by Hibernate -> antlr
  permission java.util.PropertyPermission "ANTLR_DO_NOT_EXIT", "read";
  permission java.util.PropertyPermission "ANTLR_USE_DIRECT_CLASS_LOADING", "read";
// Needed by Hibernate and others
  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
  permission java.lang.RuntimePermission "createClassLoader";
  permission java.lang.RuntimePermission "setContextClassLoader";
// Needed by commons-logging
  permission java.util.PropertyPermission "org.apache.commons.logging.LogFactory.HashtableImpl", "read";
// Needed for connecting to the database
  permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve";
// Needed by the scheduler plugin -> quartz, but works without (maybe except scheduling? should be checked)
//  permission java.util.PropertyPermission "org.quartz.properties", "read";

//Allow file storage directory reading - for directory and everything underneath
//This is dependent on the setting of environment.permanentDirectory in xwiki.properties
permission java.io.FilePermission "${catalina.home}${file.separator}xwikidata${file.separator}", "read,write,delete";
permission java.io.FilePermission "${catalina.home}${file.separator}xwikidata${file.separator}-", "read,write,delete";
//Allow file storage directory reading - temporary directory and everything underneath
//This is dependent on the setting of environment.temporaryDirectory in xwiki.properties.
permission java.io.FilePermission "${catalina.home}${file.separator}temp${file.separator}", "read,write,delete";
permission java.io.FilePermission "${catalina.home}${file.separator}temp${file.separator}-", "read,write,delete";
};
You're now ready to install and configure your relational database.

Install and configure a Relational Database
XWiki can work with a lot of relational databases. We're only listing those that we have tested it on.

The general strategy is the following:

Install your favorite RDBMS
Create a xwiki database
Create a user with all privileges on that database
Copy your RDBMS Java drivers to the XWiki webapp's WEB-INF/lib directory
Configure XWiki to use the created database. This involves modifying the WEB-INF/hibernate.cfg.xml file as is described in the tutorials for each database below.
Note that a more scalable and J2EE-conformant tactic is to use the Servlet container to manage your data source. You modify the web app as little as possible... hopefully one day XWiki will allow you to override hibernate.cfg.xml without needing to change the app itself.

Do not add your JDBC library to the web app.  Install it to the container classpath instead, like to $CATALINA_HOME/common/lib.
Do not set user, url, etc., nor connection.provider_class in hibernate.cfg.xml. The critical settings are connection.datasource (with JNDI name like java:/comp/env/jdbc/XWikiDS) and the dialect class for your DB vendor. Do not comment out <mapping resource="..."/> elements, hibernate needs them. (You should leave the provider_class unset, since Xwiki's implementation doesn't handle container-managed data sources).
Manage all database access settings using your container facilities, for example Tomcat admin webapp or server.xml + APPNAME.xml. Uncommenting the <resource-ref> element inside WEB-INF/web.xml that matches the above JNDI name and looks like <res-ref-name>jdbc/XWikiDS</res-ref-name> could be a good idea.
Install and configure the database you wish to use:

HSQL Installation
MySQL Installation
PostgreSQL Installation
Oracle Installation
DB2 Installation
Derby Installation
Microsoft SQL Server Installation
H2 Installation
If your database is empty this will result in a minimal empty wiki installation. You may want to use the Import/Export tool to import some pages in your wiki. We recommend that you import the provided default XAR. If you're upgrading from an existing installation your database should already contain the pages you had before.
Concluding Step
The final step is to fill your Wiki with initial content (i.e. wiki pages).

This job is done by the Distribution Wizard which automatically starts when you are browsing your new XWiki instance for the first time.

The wiki comes configured with an "Admin" user (the password is admin in lowercase). You'll need that username/password to log in.
Alternatively you can skip the Distribution Wizard and finish this step by hand (this can be useful for example if you're offline and wish to install XWiki):

Create new pages by hand
Import the default Wiki that we are providing as a XAR file by using the Import feature
The default wiki is a fully configured wiki that you can use as a starting point for creating your own wiki content. It provides the following:

A Blog
A Dashboard
A Panels Application
Search
Administration features (Access rights, Group and users management, etc)
... and much more
If you're upgrading an existing wiki using the manual Import feature, be careful that the XAR import operation will replace the content of the existing pages of your wiki with the content of the XAR (New pages that you have created will not be modified). As a consequence it's critical that you perform a backup first and read the upgrade nodes bellow carefully.

On the other hand, if you use the Distribution Wizard, it'll automatically perform a merge and prompt you for action in case there's a conflict it cannot resolve automatically. Thus using the Distribution Wizard is what we recommend.
分享到:
评论

相关推荐

    PyPA Installing Packages.rar

    Python Package Index (PyPI) 是Python开发者的重要资源,它提供了大量的第三方库,方便用户扩展Python的功能。PyPA(Python Packaging Authority)是负责维护Python打包工具的标准组织,其目标是简化Python项目的...

    esp_install_tar.tar.gz (包含8个压缩包)

    esp install.sh安装环境,压缩包比较难下,分享给大家,我自己测试是没问题的,esp-idf 4.0和4.2版本都是下面的压缩包,都可以intall环境和编译 ./dist/xtensa-esp32-elf-gcc8_2_0-esp-2020r2-linux-amd64.tar.gz ...

    Linux-PAM的分析与应用.pdf

    Linux-PAM,全称为Pluggable Authentication Modules,是Linux操作系统中的一个关键组件,主要用于实现灵活的身份验证机制。PAM的设计目标是将认证过程与应用程序本身分离,使得系统管理员可以根据需要自由选择和...

    docker-engine_1.12.6

    最好用的版本:docker-engine_1.12.6-0-ubuntu-trusty_amd64.deb

    创建react失败经验

    首先,看到"Installing packages. This might take a couple of minutes."这段信息,表明系统正在尝试下载并安装所需的依赖包,包括React、ReactDOM和react-scripts,这些都是创建React应用的基本组件。`cra-...

    spark-installing.pdf

    在文档"spark-installing.pdf"中,主要讲述了如何在Ambari上安装Apache Spark。Ambari是Hortonworks提供的一个用于简化Hadoop集群管理的Web工具,可以用来监控集群状态、安装和配置服务等。以下是安装Apache Spark时...

    cmake-cmake使用示例之Installing.zip

    在`cmake_cmake使用示例之Installing.zip`中,可能包含了一个完整的项目结构,展示了如何配置、生成和安装一个CMake项目。通过解压并按照CMake的标准流程操作,我们可以看到CMake如何处理安装步骤,这对于理解CMake...

    Android A Programmer’s Guide.rar

    2 Downloading and Installing Eclipse . . 9 3 Downloading and Installing the Android SDK . . . 21 4 Exploring the Android SDK . . . 35 5 Application: Hello World! 53 6 Using the Command-Line Tools ...

    libevent2.1.7在Linux安装过程

    configure.ac:44: installing `./config.guess' configure.ac:44: installing `./config.sub' configure.ac:17: installing `./install-sh' configure.ac:17: installing `./missing' Makefile.am: installing `./...

    NuGet Package Explorer 1.0

    原文:This is a NuGet package explorer tool which lets you view the ... After installing it, you can double click on .nupkg packages to open them in Package Explorer. 简介:.nupkg包元数据查看工具.

    Installing Xenomai 3.x

    ### 安装Xenomai 3.x:深入解析与步骤指南 #### 一、简介 Xenomai 3.x是Xenomai实时框架的新架构,它可以在不干扰Linux的情况下作为协同内核系统运行,或者直接在主线Linux内核上原生运行。在后者情况下,主线内核...

    delphi7注册机

    1. Run setup.exe and start installing... 2. When it's time to enter the serial/key, use the included keygen.exe... 3. Uncheck *Install InterBase Client* when asked about it... 4. After the ...

    ros by example for indigo volume 2

    2. Installing the ros-by-example Code...............................................................3 3. Task Execution using ROS..........................................................................

    Mysql-Installing.zip_MYSQL_MySQL安装_mysql Tutorial_mysql 教程

    MySQL是世界上最受欢迎的开源数据库...本教程的"Mysql Installing.pdf"文件应该包含了这些步骤的详细指南,对于初学者来说是一份宝贵的资源。通过跟随教程,您将能够顺利安装MySQL,并开始探索这个强大的数据库世界。

    OpenShift Container Platform 4.7 Installing.pdf

    OpenShift Container Platform 4.7 是一个企业级的 Kubernetes 发行版,专为容器化应用的开发和部署设计。这个平台结合了Docker容器技术、Kubernetes容器编排系统以及DevOps工具,为企业提供了一个安全、可扩展且易...

    XviD源代码

    The XviD package currently consists of three parts: - xvidcore: the main MPEG-4 de-/encoding library, and simple example programs - dshow: windows direct show decoder filter which links against ...

    VSCode配置Go插件和第三方拓展包的详细教程

    前言 VSCode现在已经发展的相当完善,很多语言都比较推荐使用其来编写,Go语言也一样,前提你电脑已经有了Go环境和最新版本的VSCode 插件安装 ...Installing github.com/ramya-rao-a/go-outline FA

    MySQL V5.5帮助文档

    2.3.3. Installing MySQL on Microsoft Windows Using an MSI Package 2.3.4. MySQL Server Instance Configuration Wizard 2.3.5. Installing MySQL on Microsoft Windows Using a noinstall Zip Archive 2.3.6. ...

    VSCode配置Go插件和第三方拓展包

    前言 VSCode现在已经发展的相当完善,很多语言都比较推荐使用其来编写,Go语言也一样,前提你电脑已经有了Go环境和最新版本的VSCode 插件安装 ...Installing github.com/ramya-rao-a/go-outline FAI

Global site tag (gtag.js) - Google Analytics