Menu

Installing OwnCloud on Ubuntu 16.04

May 13, 2017 - Guides, Linux
Installing OwnCloud on Ubuntu 16.04

 

 

On this guide i’ll show you how to install Owncloud on Ubuntu 16.04

 

 

What is OwnCloud?

It’s a platform for file sharing/management, you can add multiple storage types, share files and many other cool stuff with the dozens of plugins available.

You can find the list of features on their website, here: https://owncloud.org/features/

 

 

Let’s start by installing necessary packages:

 

PHP

Owncloud needs the following PHP packages: php-bz2, php-curl, php-gd, php-imagick, php-intl, php-mbstring, php-xml, and php-zip

 

Install them by running the following command:

sudo apt-get install  php-bz2 php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip

 

Mysql

You will also need mysql, so run the following command to install the packsge:

sudo apt-get install mysql

 

Now download the release key and import it on the system with the following command:

sudo curl https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key | sudo apt-key add –

 

Create the file owncloud.list in the sources.list.d for accessing owncloud repository, just run the following command:

echo ‘deb https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /’ | sudo tee /etc/apt/sources.list.d/owncloud.list

 

And update repository list:

sudo apt-get update

 

And finally let’s install owncloud

sudo apt-get install owncloud

 

When the instalation process is complete, reload Apache configuration

sudo service apache2 reload

 

 

Now let’s create the database

 

Login to mysql:

mysql -u root –p

 

Create Database “owncloud”

CREATE DATABASE owncloud;

 

And set a user and password to access the database:

GRANT ALL ON owncloud.* to ‘owncloud’@’localhost’ IDENTIFIED BY ‘mypassword‘;

 

Reload permission’s table:

FLUSH PRIVILEGES;

 

Now open up your browser and navigate to http://127.0.0.1/owncloud and follow instructions.

 

And that’s it!

you now have a powerful, intuitive and beautiful file storage manager.

Please follow and like me at:

Leave a Reply

Your email address will not be published. Required fields are marked *