How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
I hope this thread will be helpful to those who follow in my foot steps as well as getting any advice based on what I have done / documented.
OwnCloud is a web application that can store and serve content from a centralized location, much like Dropbox. The difference is that ownCloud 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 ownCloud server which will use a separate dedicated database server and SSL encryption.
Advantages of manually installing ownCloud:
* Can use the latest version of ownCloud 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 ownCloud:
* 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
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 7 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
- Ubuntu Server 16.04 LTS, 64-bit
- ownClould 10.0.3
- Portable PuTTY 0.62
- VMware vSphere 6.0.0
- VirtualBox 5.1.28
The list below are sources of information that was helpful in the creation of this document.
- Ubuntu Documentation
- Ubuntu Firewall Basics
- Ubuntu AppArmor Basics
- ownCloud Server Documentation
- IT Tutorials - Installing ownCloud in Ubuntu
- Install ownCloud 7
- Install ownCloud 7 on VPS
- Install ownCloud on Ubuntu/Mint
- Installing ownCloud
- PHP Tutorial
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.
Wherever you see RED in this document, you need to substitute it for you will use in your environment.
- Internet domain: owncloud.mydomain.com
- Ubuntu Server name: srv-owncloud
- Ubuntu Server IP address: 192.168.107.9
- Database Server Name (remote): srv-mysql
- Database Server IP (remote): 192.168.107.20
- Database Admin ID: root
- Database Admin Password: rootpass
- Database ID: ownclouduser
- Database Password: ownclouduserpass
- Email Server Name (remote): srv-mail
- Email Server IP (remote): 192.168.107.25
- Ubuntu Admin ID: administrator
- Ubuntu Admin Password: myadminpass
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.