How to install NextCloud on Ubuntu Server 16.04 LTS

NextCloud is a web application that can store and serve content from a centralized location, much like Dropbox.
Example
ahmadnurhadirmw - NextCloud is a web application that can store and serve content from a centralized location, much like Dropbox. The difference is that NextCloud allows you to host the serving software on your own machines, taking the trust issues out of putting your personal data someone else's server.

This tutorial will cover how to manually setup an NextCloud server which will use a separate dedicated database server and SSL encryption.

Advantages of manually installing NextCloud:
  • Can use the latest version of NextCloud currently available (Repository rarely contains latest version)
  • Are not forced to install MySQL locally (handy if you have a dedicated database server)
  • Can install where you want (such as standard / well-known locations)

Disadvantages of manually installing NextCloud:
  • Will not automatically update the system via "apt-get update" (although you are not guaranteed you get the latest this way either...just the latest in the repository)
  • Not as easy to install (thus this step-by-step guide)
The server will be installed inside a virtual machine in vSphere running on ESXi servers. Notes will also be supplied for doing the same thing for VirtualBox on a Windows 10 PC. Although there are some VMware-specific and VirtualBox-specific steps, they are very few and the majority of this documentation will work for other Virtual Machines or even directly installed onto a physical machine (e.g. bare-metal install). If you have any advice on doing things better, please let me know by replying to the Ubuntu forums thread above.

Tools utilized in this process


Assumptions

This documentation will need to make use of some very-specific information that will most-likely be different for each person / location. And as such, this information will be noted in this section. They will be highlighted in red throughout the document as a reminder that you should plug-in your own value rather than actually using these "place-holder" values.

Under no circumstance should you use the actual values listed below. They are place-holders for the real thing. This is just a checklist template you need to have answered before you start the install process.

The RED below are the values you need to substitute throughout this tutorial for use in your environment.
  • Internet domain: nextcloud.mydomain.com
  • Ubuntu Server name: srv-nextcloud
  • Ubuntu Server IP address: 192.168.107.9
  • Ubuntu Admin ID: administrator
  • Ubuntu Admin Password: myadminpass
  • Database Server Name (remote): srv-mysql
  • Database Server IP (remote): 192.168.107.20
  • Database Admin ID: root
  • Database Admin Password: rootpass
  • Database ID: nextclouduser
  • Database Password: nextclouduserpass
  • Email Server Name (remote): srv-mail
  • Email Server IP (remote): 192.168.107.25
  • NextCloud Admin ID: NextCloudAdmin
  • NextCloud Admin Password: nextcloudadminpass
NextCloud Ubuntu Server - Setup an Ubuntu server for use as the NextCloud server. This tutorial assumes the server was configured according to this tutorial: How to install and configure Ubuntu Server

MySQL/MariaDB server - Setup a separate and dedicated database server. This tutorial assumes the server was configured according to this tutorial: How to install and configure MariaDB

It is also assumed the reader knows how to use the VI editor. If not, you will need to beef up your skill set or use a different editor in place of it.

Post a Comment

0 Comments