How to Install latest Owncloud 9.1.1 in Ubuntu 16.04.

share on:
how to install owncloud on ubuntu server

OwnCloud is an open-source file sharing server. owncloud allows users to store their personal contents at a centralized storage like One Drive, Dropbox etc.

OwnCloud is an open-source application, anyone can use it and can configure it according to their own needs.

In this tutorial, we will install the latest version of OwnCloud available at the time which is 9.1.1 on latest LTS version of Ubuntu 16.04.

I am using a DigitalOcean server like always for this tutorial. Click here to get a DigitalOcean VPS free for 2 months.

 

Install owncloud Ubuntu Server.

About this guide on how to install OwnCloud on Ubuntu server:

 

Setting up a Static IP address.

We need to make sure that our server is has a static IP. In UBUNTU 16.04 server’s current IP configuration is in  /etc/network/interfaces file. we can edit it to change configuration the way we like.

Check if you’re server has Static IP address configured or not.

Server with Dynamic IP Address will have this config.

how to install owncloud on ubuntu server


And to set Dynamic IP address, change contents this file:

how to install owncloud on ubuntu server

 

To get your IP address, use.

[email protected]:~# IPOFSERVER=ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/'
[email protected]:~# echo "$IPOFSERVER"
1xx.x9x.xx9.x0

 

To know your Gateway address, use  route -n  command

how to install owncloud on ubuntu server

 

Now that we have configured our Static IP address we can proceed further.

 

Install LAMP Stack.

To know how to install LAMP stack in UBUNTU 16.04,

you can follow How to install LAMP on Ubuntu server 16.04.

 

Set up a Database and User for OwnCloud.

Make sure MySQL is running.

[email protected]:~# systemctl status mysql.service
 mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2016-09-29 18:19:17 UTC; 18h ago
Main PID: 5201 (mysqld)
Tasks: 32
Memory: 140.4M
CPU: 50.612s
CGroup: /system.slice/mysql.service
└─5201 /usr/sbin/mysqld

Sep 29 18:19:15 ubuntu-512mb-nyc1-01 systemd[1]: Starting MySQL Community Server...

 

 

create a database and user for OwnCloud.

We will create a Database and user for Database.

  • Database Name: ownclouddb ( change it with your own database name.)
  • Database User: ownclouduser ( change it with your Owncloud database user.)
  • Database User’s Password: owncloud_user_pwd ( change it with the password you want to assign to your OwnCloud database user.)

 

[email protected]:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.7.15-0ubuntu0.16.04.1 (Ubuntu)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE ownclouddb;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON ownclouddb.* to 'ownclouduser'@'localhost' identified by 'owncloud_user_pwd';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye
[email protected]:~#

 

You will need to enter these details later while configuring OwnCloud database.

  • OwnCloud Database name.
  • OwnCloud User name.
  • OwnCloud User’s Password.

Now we have a database and a user for OwnCloud.

 

Install Owncloud on Ubuntu server.

Download Owncloud server and extract it in /var/www/html directory.

[email protected]:~# wget https://download.owncloud.org/community/owncloud-9.1.1.tar.bz2
[email protected]:~# tar -xvf owncloud-9.1.1.tar.bz2 -C /var/www/html/

 

Give Proper ownership to /var/www/html directory

[email protected]:~# chown www-data:www-data -R /var/www/html/owncloud/

 

Now all there’s left is to configure the OwnCloud.

 

Configuring OwnCloud server on Ubuntu.

To connect to ownCloud web interface, Open a web browser and navigate to the following:

http://server_ip_addr/owncloud

 

You will see something like this.

 

how to install owncloud on ubuntu server.
How to install latest owncloud 9.1.1 in ubuntu 16.04

 

Next, create an admin account, as suggested, by choosing a username and then choose a  strong password.

Leave the Data folder setting as it is. We will configure MySQL server option here. so click the MySQL/MariaDB button in the Configure the database section.

Enter the required info.

 

how to install owncloud on ubuntu server
How to install latest owncloud 9.1.1 in ubuntu 16.04

 

Finally, Click the Finish setup button to sign into Ubuntu OwnCloud server. You will see the welcome screen.

how to install owncloud on ubuntu server
How to install latest owncloud 9.1.1 in ubuntu 16.04

 

Here’s a view of the main interface.

 

how to install owncloud on ubuntu server
How to install OwnCloud on Ubuntu 16.04 server.

 

 

Conclusion

OwnCloud ubuntu server can be used as an alternative to popular third-party cloud storage services. It provides you better control over your confidential data. So use it and more than that configure it wisely.

You can upload your files to your personal cloud. It’s secure and very easy.

Also if you want are in a little bit hurry to install OwnCLoud to test in a  Ubuntu 16.04 test server then you can visit Page 2 of this article.

I have tried to cover all the basic to advance concepts with their examples. Still, if I have missed anything please update us through comment box. I will keep updating the same based on feedback’s received.

Thanks for visiting this page and have a great day. 🙂

share on:
engy

engy

Hello there, My name is Rishi Guleria and I work as a Linux system administrator. I have created this blog to share what I have learned so far and to learn new things. Don't forget to leave the feedback. Have a great day. :)

Leave a Response

share on: