Description

We’ll be installing OwnCloud, a self-hosted Dropbox alternative for sharing documents, images and videos securely. You should also setup SSL for this connection for added security and privacy.

note: see OwnCloud’s installation instructions here: https://download.owncloud.org/download/repositories/stable/owncloud/

Prerequisites

  1. VPS or other server you have root access to
  2. Apache httpd installed and configured for your domain(s)
  3. MariaDB or MySQL installed and configured with a valid DBA account

Installation

  1. Open a terminal and give the following commands as root or using sudo.
  2. Get a Free SSL certificate for your desired subdomain. We’ll be using “storage” as our subdomain of example.com | storage.example.com
  3. After successful installation, open and edit the following file:
  4. /etc/httpd/conf.d/owncloud.conf

Database setup

We need to create a database container, username and password for our OwnCloud installation, we’ll be using MariaDB but these same instructions will work with MySQL.

Login to the database server:

  1. mysql -p
  2. create database own_cloud;
  3. grant all privileges on own_cloud.* TO 'oc_admin'@'localhost' IDENTIFIED BY 'strong_password' with grant option;

You’ll need to remember the following:

Hostname

localhost
Database name

own_cloud
Database username

oc_admin
Database password

strong_password

Testing & Troubleshooting

You should now be able to visit https://storage.example.com/ and begin the installation.

Last Modified: 12 Dec, 2015 at 00:16:26