How to Setup ownCloud on Ubuntu


ownCloud is a simple tool to manage your data on your VPS. We all have used Dropbox , Box or Mediafire to store and share our data with our friends, family and with our colleagues. But they all have storage limit, If we pay them monthly/yearly we can expand our space. But instead of spending so much money you can spend a few dollars and get a cheap server and install ownCloud on it and save all your data on it and share it. Now let’s start the following tutorial

First we need to ensure that all the files are upto date.

Now let’s install Lamp server on Ubuntu. Anywhere in the installation if you are asked y/n , please select y.

Now you will be asked for entering a mysql password, make sure you enter a strong password.

Installing and setting up MySql

It will prompt you for your MySQL root password. Enter the password you entered upon installation of Lamp.
It will ask you to change root password, type “n” for no.
It will ask you to remove anonymous users, type “y” for yes.
It will ask you to disallow remote root logins, type “y” for yes.
It will ask you to remove test database and access to it, type “y” for yes.
It will ask you to reload privilege tables, type “y” for yes.

Now MySql is installed and everything is configured properly. Now we will install necessary plugins to run ownCloud.

Installing necessary things for ownCloud

Before we install ownCloud we must make sure we have installed all the necessary things which will be required by ownCloud.

In few minutes everything will be installed on your server. Now we have to enable mod_rewrite and mod_headers so type the following code.

Now we have to make a little change in Apache2 configuration file.

Under Change AllowOverride None to AllowOverride All . Now press Ctrl + X and Y and then hit enter.

Now we will restart the apache server.

Downloading ownCloud Files and Installing ownCloud

Execute the following command to download the ownCloud files from their website.


Now we have to convert the downloaded file into executable format

Now we have to move the extracted files to a proper place so that it’s easily accessible for us.

Finishing Touches

Now open your browser and type http://vps-ip/owncloud/ , and finish the installation.

That’s it you have completed everything. Now open http://vps-ip/owncloud , and login and explore ownCloud. If you have any issues just comment here we will sort it out.

1 comment for “How to Setup ownCloud on Ubuntu

Leave a Reply

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