How to Install and Configure Owncloud on Ubuntu server 16.04


OwnCloud is open source file shares and sync software for everyone from individuals operating the free ownCloud Server edition, to large enterprises and service providers operating the ownCloud Enterprise Subscription. ownCloud provides a safe, secure, and compliant file synchronization and sharing solution on servers that you control. You can share one or more files and folders on your computer, and synchronize them with your ownCloud server. Place files in your local shared directories and those files are immediately synchronized to the server and to other devices using the ownCloud Desktop Sync Client, Android app, or iOS app.
In this tutorial, we will Install and Configure an Owncloud Server on Ubuntu 16.04.

What’s New for users in OwnCloud 9.1

  • Application/device passwords can be created and revoked on the personal page
  • List of connected browsers and devices on the personal page
  • Sessions can be invalidated on the personal page
  • Ability to log-in with email address
  • Option to hide or expose hidden files in the Web GUI
  • Sort order in files app is now remembered
  • Permalinks for internal shares can be created in the files sidebar
  • Upload progress estimate in the web UI
  • File list now scrolls when dragging files and reaching the border

Steps to Install and Configure OwnCloud 9.1

In order to complete the steps in this guide, you will need the following:
  • Ubuntu 16.04 installed with initial setup and with a user with sudo permission.
Step 1: - Install lamp Server
OwnCloud requires a web server, a database, and PHP to function properly. Setting up a LAMP stack (Linux, Apache, MySQL, and PHP) server fulfills all of these requirements. LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.

Step 2: Download Release Key of Owncloud.
By default, the ownCloud package is the availability with the Ubuntu default repositories, and ownCloud maintains their dedicated repository for the Ubuntu. To get the repository to the local machine, we need to run the below command –
The 'Release. Key' file contains a PGP (Pretty Good Privacy) public key which apt will use to verify that the ownCloud package is authentic.

Step 3: Import the Key to Ubuntu Server
We will create a repository address in the source directory for apt
In addition to importing the key, create a file called owncloud.list in the sources.list.d directory for apt. The file will contain the address to the ownCloud repository.

Step 4: Update Ubuntu Machine
After adding the new source, we will update the apt-get repository.

Step 5: Install ownCloud
Finally, perform the installation of ownCloud using the apt-get utility and the install command:
When prompted with the Do you want to continue? [Y/n] message, press the ENTER key to confirm the installation.
As you can see by the output, the installation created a new configuration for Apache.

Step 6: - Reload Apache Server
After the installation of the packages, we need to restart the Apache server to make the changes to effect at the time of installation.

Step 7: MySQL Database Configuration
As we needed to create separate database to ownCloud and provide access to the ownCloud users
(Enter the password you set for the MySQL root user when you installed the database server)

ownCloud requires a separate database for storing administrative data. While you can call this database whatever you prefer, we decided on the name owncloud to keep things simple.

Next, create a separate MySQL user account that will interact with the newly created database. Creating one-function databases and accounts is a good idea from a management and security standpoint. As with the naming of the database, choose a username that you prefer. We elected to go with the name owncloud in this guide.

With the user assigned access to the database, perform the flush-privileges operation to ensure that the running instance of MySQL knows about the recent privilege assignment:

This concludes the configuration of MySQL; therefore we will quit the session by typing:
With the ownCloud server installed and the database set up, we are ready to turn our attention to configuring the ownCloud application.

Step 8: - OwnCloud Configuration
To access the ownCloud web interface, open a web browser and navigate to the following address:

Create an admin account by choosing a username and a password. For security purposes, it is not recommended to use something like "admin" as the username.

Click the Finish setup button to sign into ownCloud. A safe home for all your data splash screen should appear:

OwnCloud can replicate the capabilities of popular third-party cloud storage services. Content can be shared between users or externally with public URLs. The advantage of ownCloud is that the information is stored securely in a place that you control. Explore the interface and for additional functionality, install plugins using ownCloud's app store.