Wiki source code of Configure WebSphere
Last modified by superadmin on 2026/11/25 21:30
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{warning}} | ||
| 2 | WebSphere is not an [[officially supported servlet container>>dev:Community.SupportStrategy.ServletContainerSupportStrategy.WebHome]]: these instructions are contributed by the community and receive no testing from the XWiki project. They cover WebSphere Liberty. | ||
| 3 | {{/warning}} | ||
| 4 | |||
| 5 | 1. Install [[WebSphere Liberty>>https://www.ibm.com/fr-fr/products/liberty]] as the [[servlet container>>doc:documentation.xs.admin.installation.deploy-servlet-container.WebHome]], and a [[supported Java runtime>>dev:Community.SupportStrategy.JavaSupportStrategy.WebHome]]. The Liberty installation directory is referred to as ##WLP_HOME##. | ||
| 6 | 1. Create a Liberty server, whose configuration directory ##WLP_HOME/usr/servers/xwiki## is referred to as ##SERVER_CONFIG##:((( | ||
| 7 | {{code language="none"}} | ||
| 8 | WLP_HOME/bin/server create xwiki | ||
| 9 | {{/code}} | ||
| 10 | ))) | ||
| 11 | 1. Enable a Jakarta Servlet feature of version ##6.0## or later in ##SERVER_CONFIG/server.xml##, since the XWiki web application is built against the ##jakarta## namespace:((( | ||
| 12 | {{code language="xml"}} | ||
| 13 | <featureManager> | ||
| 14 | <feature>servlet-6.0</feature> | ||
| 15 | </featureManager> | ||
| 16 | {{/code}} | ||
| 17 | ))) | ||
| 18 | 1. [[Download the XWiki WAR file>>xwiki:Download.WebHome]] for the version you need. | ||
| 19 | 1. Extract the XWiki WAR file into a directory named ##xwiki.war## inside ##SERVER_CONFIG/apps/##, and declare it in ##SERVER_CONFIG/server.xml## with ##/xwiki## as its context root, which XWiki's URLs rely on:((( | ||
| 20 | {{code language="xml"}} | ||
| 21 | <webApplication id="xwiki" location="xwiki.war" contextRoot="/xwiki"/> | ||
| 22 | {{/code}} | ||
| 23 | ))) | ||
| 24 | 1. [[Configure a relational database>>doc:documentation.xs.admin.installation.install-relational-database.WebHome]], which XWiki connects to as soon as Liberty deploys it. | ||
| 25 | 1. Create a directory to store XWiki's [[permanent data>>documentation.xs.admin.installation.directories.permanent-directory.WebHome]]. | ||
| 26 | 1. Open ##SERVER_CONFIG/apps/xwiki.war/WEB-INF/xwiki.properties## and set the permanent directory path:((( | ||
| 27 | {{code language="none"}} | ||
| 28 | environment.permanentDirectory=/var/lib/xwiki/data | ||
| 29 | {{/code}} | ||
| 30 | ))) | ||
| 31 | 1. Give Java the memory, the encoding and the module access that XWiki needs, by creating ##SERVER_CONFIG/jvm.options##:((( | ||
| 32 | {{code language="none"}} | ||
| 33 | -Xmx1024m | ||
| 34 | -Dfile.encoding=UTF-8 | ||
| 35 | --add-opens java.base/java.lang=ALL-UNNAMED | ||
| 36 | --add-opens java.base/java.io=ALL-UNNAMED | ||
| 37 | --add-opens java.base/java.util=ALL-UNNAMED | ||
| 38 | --add-opens java.base/java.util.concurrent=ALL-UNNAMED | ||
| 39 | {{/code}} | ||
| 40 | ))) | ||
| 41 | 1. Start the server:((( | ||
| 42 | {{code language="none"}} | ||
| 43 | WLP_HOME/bin/server start xwiki | ||
| 44 | {{/code}} | ||
| 45 | ))) | ||
| 46 | 1. Open {{code language="none"}}http://localhost:9080/xwiki/bin/view/Main/{{/code}} in a browser. Liberty deploys XWiki, which serves its Home page. |