It sounds complicated, but making your own personal cloud backup server is actually really easy to do.
This article will outline how to install OwnCloud on your CentOS 7 Server, which allows you to easily sync files across all of your devices.
Let’s get started.
What is a personal cloud backup server?
You may be wondering why you would want to make your own cloud backup server. A cloud backup server is like Dropbox or Google Drive. It’s a server located off of your device which you use to store files. You can easily upload files to your cloud server from your android, iOS, or desktop device and it will be synced across all devices that use the OwnCloud app.
Isn’t setting up a cloud server difficult?
Making your very own cloud backup server is actually pretty easy to do. We’ll detail the steps now.
Why would I want to build my own cloud backup service?
There have been a number of cloud storage services lately that have shut down or had to drastically raise their prices. Running your own cloud backups on your own server means that you can control everything on the server and you know the service won’t be shut down. Building a storage server of your own often provides you with a greater amount of storage at a cheaper price.
Cloud Backup Server System Requirements
- 1GB of RAM recommended
- CentOS 7
- PHP 5.4 +
- Apache 2.4
We’ll begin by installing wget and trusting the OwnCloud repository:
yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum install httpd php70w php70w-dom php70w-mbstring php70w-gd php70w-pdo php70w-json php70w-xml php70w-zip php70w-curl php70w-mcrypt php70w-pear setroubleshoot-server rpm --import https://download.owncloud.org/download/repositories/10.0/CentOS_7/repodata/repomd.xml.key curl https://download.owncloud.org/download/repositories/10.0/CentOS_7/ce:10.0.repo | tee /etc/yum.repos.d/owncloud_CE:10.0.repo
yum install owncloud
Start the web server:
systemctl start httpd systemctl enable httpd
We’ll have to set some special rules for SELinux:
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/data(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/config(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/apps(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/assets(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/.htaccess' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/.user.ini' restorecon -Rv '/var/www/html/owncloud/'
We can now visit the installation wizard at http://your-ip-address/owncloud
On this page, you can set your admin username and password which you will use to connect.
Your personal cloud backup server is now setup. You can now download an OwnCloud desktop or mobile client for your device and begin syncing files across all of your devices!