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 https://mirror.webtatic.com/yum/el6/latest.rpm

yum install php55w php55w-opcache php55w-mysql

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo

Add epel repository

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

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

/usr/bin/mysql_secure_installation

mysql -u root -p

mysql> CREATE DATABASE owncloud;

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

exit

service httpd restart

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

1

 

2

 

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 *