{"id":2883,"date":"2025-12-03T15:47:55","date_gmt":"2024-07-09T12:11:25","guid":{"rendered":""},"modified":"2025-02-02T00:46:19","modified_gmt":"2025-02-01T23:46:19","slug":"how-to-install-xwiki-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-xwiki-on-ubuntu-22-04\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 XWiki on Ubuntu 22.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p>XWiki is an open-source enterprise wiki platform that allows teams to collaborate and share knowledge efficiently. This guide will walk you through the steps to install XWiki on Ubuntu 22.04. Whether you&#8217;re hosting XWiki on a local server or using a VPS solution such as , this tutorial will help you get started.<\/p>\n<section>\n<h2>Step 1: Update Your System<\/h2>\n<p>Before installing XWiki, it&#8217;s essential to ensure your Ubuntu system is up-to-date. Run the following commands to update the system:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/pre>\n<p>This will fetch and install any available updates, making sure your server is ready for the installation. Keeping your system updated is important whether you&#8217;re running on a local server or a <a href=\"https:\/\/ie.netcloud24.com\">UK Windows VPS<\/a>.<\/p>\n<\/section>\n<section>\n<h2>Step 2: Install Java<\/h2>\n<p>XWiki requires Java to run. Install the latest version of OpenJDK by running the following command:<\/p>\n<pre><code>sudo apt install openjdk-11-jdk<\/code><\/pre>\n<p>After installation, verify the Java installation with:<\/p>\n<pre><code>java -version<\/code><\/pre>\n<p>The output should display the installed version of Java. This is a critical step to ensure XWiki runs correctly, regardless of whether you&#8217;re using Ubuntu or a <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS hosting UK<\/a> environment.<\/p>\n<\/section>\n<section>\n<h2>Step 3: Install and Configure a Database<\/h2>\n<p>XWiki uses a relational database to store its data. In this example, we will use MySQL. Install MySQL with the following command:<\/p>\n<pre><code>sudo apt install mysql-server<\/code><\/pre>\n<p>Once the installation is complete, secure your MySQL installation by running:<\/p>\n<pre><code>sudo mysql_secure_installation<\/code><\/pre>\n<p>Follow the on-screen prompts to set up a root password and remove unnecessary users. Then, log in to MySQL and create the XWiki database:<\/p>\n<pre><code>\r\nsudo mysql -u root -p\r\nCREATE DATABASE xwiki;\r\nCREATE USER 'xwikiuser'@'localhost' IDENTIFIED BY 'yourpassword';\r\nGRANT ALL PRIVILEGES ON xwiki.* TO 'xwikiuser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nEXIT;\r\n            <\/code><\/pre>\n<p>This database setup will allow XWiki to function properly on your server, whether it&#8217;s hosted locally or on a <a href=\"https:\/\/ie.netcloud24.com\">Windows VPSVirtual Private Server hosting<\/a> platform.<\/p>\n<\/section>\n<section>\n<h2>Step 4: Install XWiki<\/h2>\n<p>To install XWiki, add the XWiki repository to your system:<\/p>\n<pre><code>\r\nsudo apt install wget\r\nwget https:\/\/maven.xwiki.org\/stable\/xwiki-tomcat9-mysql\r\nsudo apt install .\/xwiki-tomcat9-mysql*.deb\r\n            <\/code><\/pre>\n<p>This command downloads and installs XWiki with Tomcat 9 as the application server and MySQL as the database.<\/p>\n<\/section>\n<section>\n<h2>Step 5: Configure XWiki<\/h2>\n<p>After the installation, configure XWiki to connect to the MySQL database. Edit the XWiki configuration file:<\/p>\n<pre><code>sudo nano \/etc\/xwiki\/xwiki.cfg<\/code><\/pre>\n<p>Look for the following lines and ensure they are configured as follows:<\/p>\n<pre><code>\r\nxwiki.db=mysql\r\nxwiki.db.user=xwikiuser\r\nxwiki.db.password=yourpassword\r\n            <\/code><\/pre>\n<p>Save the file and restart Tomcat to apply the changes:<\/p>\n<pre><code>sudo systemctl restart tomcat9<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 6: Access XWiki<\/h2>\n<p>Once the installation and configuration are complete, you can access XWiki by opening a browser and navigating to <code>http:\/\/your-server-ip:8080<\/code>. Follow the on-screen instructions to complete the initial setup.<\/p>\n<p>This method applies whether you&#8217;re running XWiki on a local server or using a <a href=\"https:\/\/ie.netcloud24.com\">UK VPS Windows<\/a> hosting solution.<\/p>\n<\/section>\n<section>\n<h2>Step 7: Configure a Reverse Proxy (Optional)<\/h2>\n<p>If you&#8217;d like to access XWiki through a standard HTTP port (port 80), you can configure Nginx as a reverse proxy. Install Nginx with:<\/p>\n<pre><code>sudo apt install nginx<\/code><\/pre>\n<p>Then, create a new Nginx configuration file:<\/p>\n<pre><code>sudo nano \/etc\/nginx\/sites-available\/xwiki<\/code><\/pre>\n<p>Add the following content to the file:<\/p>\n<pre><code>\r\nserver {\r\n    listen 80;\r\n    server_name your-domain.com;\r\n\r\n    location \/ {\r\n        proxy_pass http:\/\/localhost:8080;\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto $scheme;\r\n    }\r\n}\r\n            <\/code><\/pre>\n<p>Enable the configuration and restart Nginx:<\/p>\n<pre><code>\r\nsudo ln -s \/etc\/nginx\/sites-available\/xwiki \/etc\/nginx\/sites-enabled\/\r\nsudo systemctl restart nginx\r\n            <\/code><\/pre>\n<p>Now, you can access XWiki via <code>http:\/\/your-domain.com<\/code>. This configuration is suitable for production environments, especially when using services like <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS hosting UK<\/a>.<\/p>\n<\/section>\n<footer>\n<p>XWiki is now installed and ready to use on your Ubuntu 22.04 server. For reliable and scalable hosting options, consider using . They offer a range of hosting solutions, including <strong>virtual private server hosting windows<\/strong>, <strong>windows vps hosting uk<\/strong>, and <strong>windows virtual private server hosting<\/strong>, ensuring optimal performance for your application.<\/p>\n<\/footer>\n<\/article>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 XWiki is an open-source enterprise wiki platform that allows teams to collaborate and share knowledge efficiently. This guide will walk you through the steps to install\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2883"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2883\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}