{"id":2848,"date":"2018-02-08T20:21:22","date_gmt":"2018-02-08T17:21:22","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-and-configure-xwiki-on-ubuntu-1604\/"},"modified":"2018-02-08T20:21:22","modified_gmt":"2018-02-08T17:21:22","slug":"how-to-install-and-configure-xwiki-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-and-configure-xwiki-on-ubuntu-16-04\/","title":{"rendered":"How to Install and Configure XWiki on Ubuntu 16.04"},"content":{"rendered":"<p>XWiki is a free and open source wiki software written in Java runs on a servlet container like Tomcat, JBoss etc. XWiki uses databases such as MySQL or PostgreSQL to store its information. XWiki allows us to store structured data and execute the server script within wiki interface. You can host multiple blogs and manage or view your files and folders using XWiki.<\/p>\n<p>XWiki comes with lots of features, some of them are listed below:<\/p>\n<ul>\n<li>Supports version control and ACL.<\/li>\n<li>Allows you to search the full wiki using wildcards.<\/li>\n<li>Easily export wiki pages to PDF, ODT, RTF, XML and HTML.<\/li>\n<li>Content organization and content import.<\/li>\n<li>Page editing using WYSIWYG editor.<\/li>\n<\/ul>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 16.04.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"update-the-system\">Update the System<\/h2>\n<p>Before starting, you will need to update the Ubuntu repository to the latest version. You can do this using the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<br \/>sudo apt-get upgrade -y<\/p>\n<p>Once the repository is updated, restart the system to apply all the updates.<\/p>\n<h2 id=\"install-java\">Install Java<\/h2>\n<p>Xwiki is a Java-based application, so you will need to install Java 8 first. By default Java 8 is not available in the Ubuntu repository. You can install Java 8 by adding the webupd8team PPA repository to your system.<\/p>\n<p>First, add the PPA by running the following command:<\/p>\n<p class=\"command\">sudo add-apt-repository ppa:webupd8team\/java<\/p>\n<p>Next, update the repository with the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<\/p>\n<p>Once the repository is up to date, you can install Java 8 by running the following command:<\/p>\n<p class=\"command\">sudo apt-get install oracle-java8-installer -y<\/p>\n<p>After installing Java, you can check the version of Java with the following command:<\/p>\n<p class=\"command\">java -version<\/p>\n<p>You should see the following output:<\/p>\n<pre>Java version \"1.8.0_91\"&#13;\nJava(TM) SE Runtime Environment (build 1.8.0_91-b14)&#13;\nJava HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)&#13;\n<\/pre>\n<h2 id=\"download-and-install-xwiki\">Download and Install Xwiki<\/h2>\n<p>Next, you will need to download the setup file provided by XWiki. You can download it using the following command:<\/p>\n<p class=\"command\">wget http:\/\/download.forge.ow2.org\/xwiki\/xwiki-enterprise-installer-generic-8.1-standard.jar<\/p>\n<p>Once the download is completed, you can install the downloaded package file using the java command as shown below:<\/p>\n<p class=\"command\">sudo java -jar xwiki-enterprise-installer-generic-8.1-standard.jar<\/p>\n<p>You should see the following output:<\/p>\n<pre>28 Jan, 2018 6:57:37 PM INFO: Logging initialized at level 'INFO'&#13;\n28 Jan, 2018 6:57:37 PM INFO: Commandline arguments: &#13;\n28 Jan, 2018 6:57:37 PM INFO: Detected platform: ubuntu_linux,version=3.19.0-25-generic,arch=x64,symbolicName=null,javaVersion=1.7.0_151&#13;\n28 Jan, 2018 6:57:37 PM WARNING: Failed to determine hostname and IP address&#13;\nWelcome to the installation of XWiki Enterprise 8.1!&#13;\nThe homepage is at: http:\/\/xwiki.org\/&#13;\n&#13;\nPress 1 to continue, 2 to quit, 3 to redisplay&#13;\n<\/pre>\n<p>Now, press <strong><code>1<\/code><\/strong> to continue the installation, you should see the following output:<\/p>\n<pre>Please read the following information: &#13; &#13; XWiki Enterprise - Readme &#13; &#13; &#13; XWiki Enterprise Overview &#13;\nXWiki Enterprise is a second generation Wiki engine, features professional features like &#13; Wiki, Blog, Comments, User Rights, LDAP Authentication, PDF Export, and a lot more. &#13;\nXWiki Enterprise also includes an advanced form and scripting engine which makes it an ideal &#13; development environment for constructing data-based intranet applications. It has powerful &#13; extensibility features, supports scripting, extensions and is based on a highly modular &#13; architecture. The scripting engine allows to access a powerful API for accessing the XWiki &#13; repository in read and write mode. &#13;\nXWiki Enterprise is used by major companies around the world and has strong &#13; Support for a professional usage of XWiki. &#13; Pointers &#13;\nHere are some pointers to get you started with XWiki once you have finished installing it: &#13; &#13;\nThe documentation can be found on the XWiki.org web site &#13;\nIf you notice any issue please file a an issue in our issue tracker &#13;\nIf you wish to talk to XWiki users or developers please use our &#13; Mailing lists &amp; Forum &#13;\nYou can also access XWiki's &#13; source code &#13;\nIf you need commercial support please visit the &#13; Support page &#13; &#13; &#13;\n&#13;\nPress 1 to continue, 2 to quit, 3 to redisplay&#13;\n<\/pre>\n<p>Now, press <strong><code>1<\/code><\/strong> to continue the installation, you should see the following output:<\/p>\n<pre>See the NOTICE file distributed with this work for additional &#13;\ninformation regarding copyright ownership. &#13;\nThis is free software; you can redistribute it and\/or modify it &#13;\nunder the terms of the GNU Lesser General Public License as &#13;\npublished by the Free Software Foundation; either version 2.1 of &#13;\nthe License, or (at your option) any later version. &#13;\nThis software is distributed in the hope that it will be useful, &#13;\nbut WITHOUT ANY WARRANTY; without even the implied warranty of &#13;\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU &#13;\nLesser General Public License for more details. &#13;\nYou should have received a copy of the GNU Lesser General Public &#13;\nLicense along with this software; if not, write to the Free &#13;\nSoftware Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA &#13;\n02110-1301 USA, or see the FSF site: http:\/\/www.fsf.org. &#13;\n&#13;\nPress 1 to accept, 2 to reject, 3 to redisplay&#13;\n<\/pre>\n<p>Now, press <strong><code>1<\/code><\/strong> to accept the license agreement, you should see the following output:<\/p>\n<pre>Select the installation path: [\/usr\/local\/XWiki Enterprise 8.1] &#13;\n&#13;\nPress 1 to continue, 2 to quit, 3 to redisplay&#13;\n<\/pre>\n<p>Now, press enter and press <strong>1<\/strong> to select default installation path, you should see the following output:<\/p>\n<pre> [x] Pack 'Core' required&#13;\n????????????????????????????????????????????????????????????????????????????????&#13; [x] Include optional pack 'Default Wiki'&#13;\n????????????????????????????????????????????????????????????????????????????????&#13;\nEnter Y for Yes, N for No: &#13;\nY&#13;\nPress 1 to continue, 2 to quit, 3 to redisplay&#13;\n<\/pre>\n<p>Now, press <strong><code>Y<\/code><\/strong> and press <strong><code>1<\/code><\/strong> to continue the installation, you should see the following output:<\/p>\n<pre>[ Starting to unpack ]&#13;\n[ Processing package: Core (1\/2) ]&#13;\n[ Processing package: Default Wiki (2\/2) ]&#13;\n[ Unpacking finished ]&#13;\n<\/pre>\n<p>Now, you will be asked to create shortcuts for the user, you can press &#8216;<strong><code>Y'<\/code><\/strong> to add them. Next, you will be asked to generate an automatic installation script, just press Enter to select default value, once the installation is finished, you should see the following output:<\/p>\n<pre>????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&#13;\nGenerate an automatic installation script&#13;\n????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????&#13;\nEnter Y for Yes, N for No: &#13;\nY&#13;\nSelect the installation script (path must be absolute)[\/usr\/local\/XWiki Enterprise 8.1\/auto-install.xml]&#13;\n&#13;\nInstallation was successful&#13;\napplication installed on \/usr\/local\/XWiki Enterprise 8.1&#13;\n[ Writing the uninstaller data ... ]&#13;\n[ Console installation done ]&#13;\n<\/pre>\n<p>Now, XWiki is installed on your system, it&#8217;s time to start XWiki startup script as shown below:<\/p>\n<p class=\"command\">cd \/usr\/local\/XWiki Enterprise 8.1<br \/>sudo bash start_xwiki.sh<\/p>\n<p>Please, wait for sometime to start processes. Now, you should see some messages on terminal as shown below:<\/p>\n<pre>start_xwiki.sh: 79: start_xwiki.sh:&#13;\nStarting Jetty on port 8080, please wait...&#13;\n2018-01-28 19:12:41.842:INFO::main: Logging initialized @1266ms&#13;\n2018-01-28 19:12:42.905:INFO:oejs.Server:main: jetty-9.2.13.v20150730&#13;\n2018-01-28 19:12:42.956:INFO:oejs.AbstractNCSARequestLog:main: Opened \/usr\/local\/XWiki Enterprise 8.1\/data\/logs\/2018_01_28.request.log&#13;\n2018-01-28 19:12:42.965:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:\/usr\/local\/XWiki%20Enterprise%208.1\/jetty\/contexts\/] at interval 0&#13;\n2018-01-28 19:13:31,485 [main] INFO o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server... &#13;\n2018-01-28 19:13:31,507 [main] INFO o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [data\/solr] &#13;\n2018-01-28 19:13:43,371 [main] INFO o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server. &#13;\n2018-01-28 19:13:46.556:INFO:oejsh.ContextHandler:main: Started <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"254a0b400b4f0b520b724047645555664a4b51405d516517461c431c434715\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>{\/xwiki,file:\/usr\/local\/XWiki%20Enterprise%208.1\/webapps\/xwiki\/,AVAILABLE}{\/xwiki}&#13;\n2018-01-28 19:13:46.697:INFO:oejsh.ContextHandler:main: Started <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"83ecade6ade9adf4add4e6e1c2f3f3c0ecedf7e6fbf7c3b5b7e0b0b4b3bbbb\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>{\/,file:\/usr\/local\/XWiki%20Enterprise%208.1\/webapps\/root\/,AVAILABLE}{\/root}&#13;\n2018-01-28 19:13:46.776:INFO:oejs.ServerConnector:main: Started <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"ce9dabbcb8abbc8da1a0a0abadbaa1bc8effa8a8affaacafab\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>{HTTP\/1.1}{0.0.0.0:8080}&#13;\n<\/pre>\n<p>XWiki is now up and running, it&#8217;s time to access XWiki web interface.<\/p>\n<h2 id=\"access-xwiki\">Access XWiki<\/h2>\n<p>XWiki runs on port <strong>8080<\/strong>, so you will need to allow port 8080 through the firewall. First, enable the UFW firewall with the following command:<\/p>\n<p class=\"command\">sudo ufw enable<\/p>\n<p>Next, allow port <strong>8080<\/strong> through the UFW firewall with the following command:<\/p>\n<p class=\"command\">sudo ufw allow 8080\/tcp<\/p>\n<p>Next, reload the firewall rules to apply all the changes by running the following command:<\/p>\n<p class=\"command\">sudo ufw reload<\/p>\n<p>You can get the status of the UFW firewall with the following command:<\/p>\n<p class=\"command\">sudo ufw status<\/p>\n<p>Now, open your web browser and type the URL <strong>http:\/\/your-server-ip:8080<\/strong>, you will be redirected to the XWiki home page as shown below:<\/p>\n<p><a class=\"fancybox\" id=\"img-Screenshot-of-xwiki-dashboard\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_xwiki_on_ubuntu_1604\/big\/Screenshot-of-xwiki-dashboard.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/02\/how-to-install-and-configure-xwiki-on-ubuntu-16-04.png\" alt=\"XWiki Dashboard\" width=\"550\" height=\"284\" title=\"\"><\/a><\/p>\n<p>You can stop the XWiki server at\u00a0any time by pressing <strong><code>Ctrl + C<\/code><\/strong> button\u00a0in the terminal.<\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>Congratulations! you have successfully installed and configured XWiki on Ubuntu 16.04 server. I hope you can now easily host your own wiki site using XWiki on Ubuntu 16.04 server. For more information, you can check the XWiki official documentation page at <a href=\"https:\/\/www.xwiki.org\/xwiki\/bin\/view\/Documentation\/\" title=\"XWiki Doc\" target=\"_blank\" rel=\"noopener\">https:\/\/www.xwiki.org\/xwiki\/bin\/view\/Documentation\/<\/a>. Feel free to comments me if you have any questions.<\/p>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>XWiki is a free and open source wiki software written in Java runs on a servlet container like Tomcat, JBoss etc. XWiki uses databases such as MySQL or PostgreSQL to store its information. XWiki allows us to store structured data and execute the server script within wiki interface. You can host multiple blogs and manage &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-2848","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/2848\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}