ssh root@IP_Address -p Port_number<\/pre>\nYou would need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the system user with sudo privileges.<\/p>\n
Now, you can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n
# lsb_release -a<\/pre>\nYou would see an output like this one:<\/p>\n
No LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription: Ubuntu 22.04 LTS\r\nRelease: 22.04\r\nCodename: jammy<\/pre>\nIn this article, we will use ‘root’ to execute the shell commands. If you want to use your regular user with sudo privileges to run the commands, make sure to append ‘sudo’ in front of the commands.<\/p>\n
<\/span>Step 2: Update the system<\/span><\/h2>\nBefore starting, you have to make sure that all Ubuntu 22.04 packages installed on the server are up to date. You can do this by executing the command below.<\/p>\n
# apt update\r\n# apt upgrade<\/pre>\n<\/span>Step 3. Install XWiki<\/span><\/h2>\nIn this tutorial, we are going to install XWiki the easy way. But first, we need to add the XWiki repository.<\/p>\n
# wget https:\/\/maven.xwiki.org\/xwiki-keyring.gpg -O \/usr\/share\/keyrings\/xwiki-keyring.gpg\r\n# wget \"https:\/\/maven.xwiki.org\/stable\/xwiki-stable.list\" -O \/etc\/apt\/sources.list.d\/xwiki-stable.list<\/pre>\nAfter adding a repository, we need to update our Ubuntu package sources list with the latest versions of the packages in the repositories.<\/p>\n
# apt update<\/pre>\nTo check all available options, you can first invoke this command:<\/p>\n
# apt search xwiki<\/pre>\nThe command above will list some available options for you to run to get a combination of software you want to run XWiki with.<\/p>\n
In this article, we are going to use Tomcat 9 and MySQL. Finally, install XWiki using the command below.<\/p>\n
# apt install xwiki-tomcat9-mysql<\/pre>\nIf you want to use MariaDB, you can execute the command xwiki-tomcat9-mariadb<\/strong>. The command will automatically install xwiki-common<\/strong> and Java<\/strong>.<\/p>\nIn the installation process, there are some steps you need to finish.<\/p>\n
<\/p>\n
Hit Yes to continue.<\/p>\n
<\/p>\n
You can leave it blank; the installer will create the password.<\/p>\n
Hit ENTER to continue.<\/p>\n
That’s it! XWiki has been installed, and you should be able to access it at http:\/\/YOUR_SERVER_IP_ADDRESS:8080\/xwiki using any web browser.<\/p>\n
When opening the page for the first time, it will initialize first, and you will finally be brought to this page.<\/p>\n
<\/p>\n
Click Continue to proceed.<\/p>\n
<\/p>\n
You can create an admin user on this page to manage your Xwiki website. Make sure to fill in the required blanks.<\/p>\n
Now, you can see this page.<\/p>\n
<\/p>\n
Click Continue<\/p>\n
<\/p>\n
In this step, you will be prompted to install a flavor. If you do not see one, wait for a few seconds, and you will see the flavor(s) you can install.<\/p>\n
If you wish to install it, select a flavor, then click on the ‘Install this flavor’ button.<\/p>\n
<\/p>\n
Click on the Install button to proceed with installing the flavor.<\/p>\n
<\/p>\n
<\/p>\n
Wait for a few minutes until the installation finishes.<\/p>\n
<\/p>\n
Once finished, click on the Continue button, it will start deploying the flavor by installing the required extensions, documents, etc., and it will take some time to complete.<\/p>\n
<\/p>\n
The flavor installation is finished. Click Continue to proceed.<\/p>\n
<\/p>\n
And after clicking the Continue button, you will be brought to this page.<\/p>\n
<\/p>\n
Click the Continue button, and you will see the welcome page.<\/p>\n
<\/p>\n