Setting up your own Cloud Storage with OwnCloud – CentOS

Access your data from all your devices(Computer, tablet, mobile phone) by hosting your own data on a private server. It will also allow you to share files. Just like Google Drive, or Dropbox!

About OwnCloud

“ownCloud is a self-hosted file sync and share server. It provides access to your data through a web interface, sync clients or WebDAV while providing a platform to view, sync and share across devices easily—all under your control. ownCloud’s open architecture” – Read More about OwnCloud

You will need: A Private Server, can also be a VM in your home lan – I prefer to use a vps on Linode.

CentOS 6.7 – Installation Steps

PHP 5.5 or later is required

rpm -Uvh

yum install php55w php55w-opcache php55w-mysql

cd /etc/yum.repos.d/

Add epel repository

rpm -ivh

Install owncloud

yum install owncloud

Install mysql database

yum install mysql55w-server

chkconfig mysqld on

service mysqld start

Configure mysql – follow instructions on screen, disable anonymous and disallow root login


mysql -u root -p

mysql> CREATE DATABASE owncloud;

mysql> GRANT ALL ON owncloud.* to ‘owncloud’@’localhost’ IDENTIFIED BY ‘dbpass’;


service httpd restart

On your browser, go to : http://serverip/owncloud/ and follow the steps





And you are done. 🙂

Gulshan Yashveer Beejan

Gulshan holds a BSc(Hons) Computer Science with Distributed systems from the City University of London. He is currently working at DSOGroup(Mauritius) as a Linux Administrator on SaaS Solutions. More about Gulshan

Leave a Reply

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