Home Linux How To Install ownCloud on Ubuntu 16.04/18.04

How To Install ownCloud on Ubuntu 16.04/18.04

How can I install ownCloud on Ubuntu system??

What is OwnCloud?

OwnCloud is an open-source suite to sync and share files with others. You can sync all files across all the devices at any time. You can share files like documents, emails, calendars, contacts and many more. It is similar to other cloud-based services like Dropbox, Google drive etc.
In this tutorial, you will learn step by step how to install and configure it on the Ubuntu machine.

Advantages

1. It is open source. You can install it on your private server.
2. You can sync your files across all your devices.
3. Supports Versioning feature. If somebody modifies a file and you want to get its previous version. Then you can revert it to its previous version. OwnCloud automatically saves the older version, only you need to specify how much older version needs to store.
4. Encryption
5. Notifications

Step 1: Required Softwares

Following things are required before installing the ownCloud on the server.
1. LAMP Stack ( Linux, Apache, MySQL and PHP). If you already have LAMP stack on the server then skip the Apache, MySQL and PHP installation. Just Follow the step 2.

Install Apache Web Server

Need to run the following command to install Apache web server.

$ sudo apt-get install apache2

Install MySQL Server

Execute the following command

$ wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
$ sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb  
$ sudo apt-get update 
$ sudo apt-get install mysql-server 

Install PHP

The final step is to install the PHP version. It should be noted that for ownCloud 10.2.1 installation PHP 7.1 version is needed.

$ sudo add-apt-repository ppa:ondrej/php 
$ sudo apt-get update
$ sudo apt-get install -y php7.1 php7.1-gd php7.1-curl php7.1-zip php7.1-xml php7.1-mbstring php7.1-mysql php7.1-sqlite3 
 

Step 2: Install ownCloud

Download the ownCloud setup from its official website. In terminal go to your project directory where you want to configure the ownClouds.
For example, we are in our webroot directory /var/www/html and we are downloading the 10.2.1 available version here.

$ wget https://download.owncloud.org/community/owncloud-10.2.1.tar.bz2

After downloading the archive, extract it.

$ sudo tar xvjf owncloud-10.2.1.tar.bz2

Before finishing the ownCloud installation from the web browser, we will configure database for it.

Step 3: Configure MySQL Database for ownCloud

Now it’s time to create a database and user for the ownCloud. For this, run the following commands.

$ mysql -u root -p
Enter password:

mysql> CREATE DATABASE myowncloud;
mysql> GRANT ALL ON myowncloud.* to 'arun'@'localhost' IDENTIFIED BY 'Complex_password_';
mysql> FLUSH PRIVILEGES;
mysql> quit

Database configuration is done. Now lets finish the initialization of ownCloud from the web browser.

Configure MySQL Database for ownCloud
Configure MySQL Database for ownCloud

Step 4: Complete the ownCloud Configuration from Web Browser

Finally, open the web browser and type server IP address or domain name.

http://localhost/owncloud/

As shown in the below screenshot. It’s time to set up the admin account for ownCloud.

In the next step, enter the database credentials and also specify the data folder location.

Enter MySQL Database Credentials
Enter MySQL Database Credentials

Finally, your cloud server is ready with your custom settings. Below is the welcome screen of ownCloud is shown. You can share and sync your files at any time.



Conclusion: You can also download the desktop app for Linux, Windows and Mac operating system. Also, the android app is available on the Google Play.

LEAVE A REPLY

Please enter your comment!
Please enter your name here