How to Install OwnCloud on Ubuntu 15.04 VPS

OwnCloud is actually a app that is cool it is shortly a Dropbox-like app allows you to have your very own cloud storage to backup and sync your data across many devices including Desktop PC, laptop, iOS and of course Android devices. The best part of using OwnCloud is it yourself and the storage limit is only limited by the VPS plan you bought.( that you build****)

OwnCloud is simply quite simple to have it set up in your VPS and also on a Shared web hosting. You can simply look at the Applications tab and build a ready -to-use OwnCloud droplet but however the version in that image is not always updated regularly.( if you are really one of DigitalOcean’s fans out there,****)


In this tutorial I will guide you to install OwnCloud 8 on Ubuntu 15.04 Vivid Vervet VPS on Apache, MariaDB and PHP5 stack, each steps with screenshot pic as always.

What You Need

You’ll need stuff that is few:

  1. A VPS operating Ubuntu 15.04. In this specific article a droplet is used by me from DigitalOcean (DO) with 512MB of RAM and 20GB SSD storage. DO is my choice that is first because can build a server, test cool things and destroy. But that does not suggest we don’t have actually a production host operating at DO, i’ve one which is pretty stable and solid. Also, the distro I use is Ubuntu 15.04 x86_64.
    *p.s: Never use DO before? Signup DigitalOcean via this link that is special**********) getting free $10 credit inside account.
  2. You could also require an effective knowledge to make use of Putty, SSH and typical Unix demand.
  3. A free time to adhere to this guide.
  4. A cup coffee or tea.

Build OwnCloud Server Manually

Step 1 – Get a new Ubuntu 15.04 host, minimal variation is preferred. Now login towards host as root (i suppose you knew utilizing SSH Putty that is/). Like me, you will be asked to change default root password:


Step 2 – Make sure all packages are up to date using command below:

apt-get update -y
 apt-get upgrade -y




Step 3 – OwnCloud is a web-based app that require a web server to run so go ahead to install Apache, don’t worry it is easy:

apt-get install apache2 -y

It should look like this:


Step 4 – Once the install process is finish, continue with installing PHP5:

apt-get install php5 php5-mysql -y



Step 5 – Now install required PHP5 modules for OwnCloud to run:

apt-get install php5-gd php5-json php5-curl php5-intl php5-mcrypt php5-imagick -y

It’ll look similar to this:


Step 6 – Now issue command below to install MariaDB server on your VPS if you are using a droplet from DO. OwnCloud requires a database host to process most of its information. Presently it supports just MySQL and MariaDB.

apt-get install mariadb-server -y



Also problem demand below to create MariaDB the new:


Simply strike Enter in your keyboard then answer next questions accordingly if asked with current password. Do not forget to create password that is new keep in mind it (it really is your database password for individual root).



Step 7 – Now login to Mariadb as root and produce user that is new new database, type in this command:

mysql -u root -p


then these few lines of command:

CREATE USER 'newdbuser'@'localhost' IDENTIFIED BY 'newpassword';
 CREATE DATABASE ownclouddb;
 GRANT ALL ON ownclouddb.* TO 'newdbuser'@'localhost';

Replace newdbuser with your own database username that is new. Substitute newpassword together with your password (no areas). Substitute ownclouddb with brand new database title. Here’s the screenshot of just what I’d done:


Step 8 – it is time to install OwnCloud so we have Apache and MariaDB installed and. In the time of writing, current stable version is v8.0.3 that is ownCloud. Your variation might be different. Firstly, go to and click Download button.


Next, you have to copy its download link (Right-click on the link and copy)


Go back to Putty (or Terminal) and download it using wget command:


do not forget to change the download link


Next, extract the package to default Apache’s web folder using this command:

tar -xvf owncloud-8.0.3.tar.bz2 -C /var/www/html/

again, do not forget to change the actual package that is ownCloud towards the variation you’ve installed.


Step 9 – we now have setting directory authorization by using this demand:

chown www-data:www-data -R /var/www/html/owncloud/


Step 10 – to allow Apache to provide OwnCloud, we must produce Apache that is new configuration virtual hosts file. First, create new configuration file for your website. In this article I use as example (domain not exists, just for tutorial shake). We can use Nano (my text that is favorite editor

nano /etc/apache2/sites-available/

replace for the reason that demand together with your domain that is real name. Hit Enter and put this configuration in it:

<VirtualHost *:80> 
      ServerAdmin [email protected]
      DocumentRoot /var/www/html/owncloud
      ErrorLog /var/www/ 
      CustomLog /var/www/ combined
      <Directory "/var/www/html/owncloud">
 		Options Indexes FollowSymLinks
 		AllowOverride All
 		Order allow,deny
 		allow from all

it should look like this:


Now save changes and exit (In Nano it is Control+O then Control+X).

Also create new directory to store all the log files:

mkdir -p /var/www/

Step 11 – Now reload / restart Apache then enable the newly created virtual host file using a2ensite command:

service apache2 reload



Setup OwnCloud

Step 12 – Now launch your favorite web browser and access your new OwnCloud website.

*p.p.s: As in this article I use as an example and the domain does not actually exist, I use HostsMan app so I have to edit my local hosts file which in Windows. You are able to utilize the method that is same waiting for your actual domain to resolve to your server.


In web browser you’ll see OwnCloud setup page where you have to provide few things to finish the setup process.

Create an Admin account:


Simply leave the Data Folder you’ve created earlier:

Configure The Database:


Once done, click the Finish Setup button as it is and type in the MariaDB details. That’s it.

What’s next? When set up, you could begin syncing particular files and files from your own products making use of client that is ownCloud


Also, you are able to produce brand new users for the buddies, family, or to sale your newly built cloud storage space solution. Enjoy..

Do keep in mind to adhere to me personally on Twitter for quicker news change.

How exactly to know and Modify the DOM in JavaScript

Previous article

Linux lshw Command Tutorial for newbies (6 Examples)

Next article

You may also like


Leave a Reply

More in Apache