How to Install Nextcloud on Ubuntu 18.04 LTS Updated on April 17, 2024 by InMotion Hosting Contributor 2 Minutes, 2 Seconds to Read When setting up a new server running the Linux operating system Ubuntu 18.04 LTS, you may find yourself looking for an open-source cloud storage solution that would allow you to easily move data between your various devices. One such solution is Nextcloud, a popular open source cloud storage solution that can be installed on most devices available today. In this article, we will outline how to install Nextcloud on Ubuntu 18.04 LTS. Please note that in order to complete these tasks, you will need root SSH access to your server. cPanel server admins can use easier installation methods. Topics Include: Prepare for Installation Install Nextcloud Install Nextcloud on your Dedicated Hosting server today! Prepare for Installation Before you can install Nextcloud, you will likely need to install Apache, MariaDB, and PHP modules. Apache allows Nextcloud to communicate with the public internet while MariaDB acts as the database storage solution. PHP is the programming language that allows Nextcloud to function properly. 1. To install Apache and MariaDB, use the following command to install both at the same time: apt-get install apache2 mariadb-server libapache2-mod-php7.2 During the MariaDB installation you will be prompted to set a root password. Save this password in a secure location as you will need it later. 2. To install PHP 7.2 and all related modules use the following command: apt-get install php7.2-gd php7.2-json php7.2-mysql php7.2-curl php7.2-mbstring apt-get install php7.2-intl php-imagick php7.2-xml php7.2-zip Once the installation of these modules finishes, you can proceed with the next steps. Install Nextcloud In order to install Nextcloud, you will first need to download it from the official Nextcloud website. 1. Use the wget command to download the Nextcloud software file to your machine as follows: wget https://download.nextcloud.com/server/releases/nextcloud-19.0.1.zip 2. Once the download is complete, use the unzip command to extract the .zip file unzip https://download.nextcloud.com/server/releases/nextcloud-19.0.1.zip 3. Once the file has been extracted, copy the extracted folder to your server’s document root. 4. The rest of the process is handled via the Nextcloud graphical user interface. To access this page, simply visit the domain name you are using for your Nextcloud server followed by the name of the Nextcloud installation folder, as seen in this example: http://your.server.com/nextcloudOnce you have completed the installation process, your Nextcloud server should be ready to use. Congratulations, you have successfully installed Nextcloud on Ubuntu 18.04 LTS! Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Maintenance ecbiz111 failover to backup hardware Emergency File System Recovery on ld143 Emergency File System Recovery on biz112 Emergency File System Recovery on biz123 How to Install Nextcloud on Ubuntu 18.04 LTS Protect an Archived Backup The Complete Guide to cPanel Backups Backup Manager WHM Guide for VPS/Dedicated Servers How to Keep Regular Backups for Reseller Accounts Storing Your Backups with Amazon S3 via WHM