This CenturyLink Cloud tutorial provides a walk-through to install and configure ownCloud on the Linux platform (from scratch and Blueprint), customize ownCloud to utilize CenturyLink Cloud's Relational Database Service , SMTP Relay and Object Storage.

Technology Profile

ownCloud is a personal productivity powerhouse. It gives you universal access to all your files, contacts, calendars and bookmarks across all of your devices. Unlike many of the shared repository services out there, with ownCloud, you have your own, private repo. However, just like the public repo companies, with ownCloud you can share your files with friends and co-workers. If you need it, ownCloud even integrates with other storage providers. Best of all, ownCloud is open source and free!


CenturyLink Cloud Users - Not a CenturyLink Cloud User? Just head over to our website and activate an account.


  • Access to the CenturyLink Platform as an authorized user.
  • Access to CenturyLink Cloud Relational Database Service as an authorized user.
  • Access to Object Storage if required, CenturyLink Cloud Object Storage can be used as primary storage for the Enterprise Edition of ownCloud.


To access your application over the Internet, please perform the following tasks after the server is deployed successfully:

  1. To connect to your server via the Internet, Add a Public IP to your server through the Control Portal
  2. Allow incoming traffic for desired ports by clicking on the Servers Public IP through Control Portal and configuring appropriately. The default ports to access the application are: 80, 443
  3. After adding a public IP for OwnCloud perform the following actions: Edit the web server configuration files in /etc/apache2/sites-enabled as follows: ownCloud Script

  4. Restart Apache using sudo service apache2 restart

  5. The following steps will enable management of ownCloud from the public IP address
  6. Access the server's public IP address using a web browser (with VPN still connected)
  7. ownCloud setup will prompt to add the new IP address as a "trusted domain":

    ownCloud IP Request

  8. Click on "Add "IP address" as a trusted domain", it will redirect this request to the private IP address to create the necessary entries to the owncloud configuration file:

ownCloud Portal

Deploying ownCloud on a New Servers

(For Steps using Blueprint, please see Getting Started with ownCloud Blueprint) Create a Linux server in CenturyLink Cloud using the following knowledge articles:

  • For virtual server see Create a virtual server
  • To create a Bare Metal server for a private deployment Blueprint ownCloud installation is located in /opt/bitnami directory

Create a MySQL instance on CenturyLink Relational Database Service

  1. Use create a MySQL instance on CenturyLink Relational Database Service to create a database instance

  2. Note down the user name and the connection string from the setup:

    ownCloud Configuration

  3. Download the certificate to configure secure connectivity to the Relational Database Service

Connect to the server via OpenVPN

Steps to deploy ownCloud to an existing server

  1. Download the ownCloud installation from
  2. Look for the package for the installed OS, this example will use Ubuntu 14.x
  3. ownCloud supports CentOS, Debian, RHEL, Ubuntu and more
  4. For Ubuntu 14.x, download the ownCloud package and add the repository key to apt (this key will updates periodically).

owncloud Scripts

Enable SSL

  • To enable SSL, a certificate is required, a self-signed certificate or your own certificate can be used.
  • Below is an example of self signed certificate with a 1 year expiration date:

  • Create the certificate (use /opt/bitnami instead of /etc for Blueprint installation, detail steps are here):

owncloud Scripts

Edit the following two parameters to reflect the location of the certificate:

owncloud Scripts

Enable SSL on the web server:

owncloud Scripts

Configure ownCloud connection to CenturyLink MySQL Relational Database

To trigger the initial setup in the ownCloud Blueprint installation, move the config.php file from /opt/bitnami/apps/owncloud/htdocs/config directory to a new location (please backup the data for restoration)

  1. Connect to CenturyLink Cloud VPN
  2. Point the web browser to the private address of the ownCloud server
  3. The ownCloud configuration page will appear:

    owncloud Login

  4. Choose Storage and Database, then select MySQL

  5. Using the information from the Relational Database Service to complete the information, the format for the host is IP_Address:port (e.g.

    owncloud Setup

  6. Click "Finish Setup", and the Welcome to ownCloud page will display:

    owncloud Account

  7. Download the certificate from Relational Database Service to the ownCloud server to enable secure communication between the database and the ownCloud server. Refer to this Connecting to MySQL instance over SSL-enabled Connection knowledge article. Add the following to section to the config.php file (default location: /var/www/owncloud/config/):

owncloud Scripts

Configure ownCloud to utilize SMTP Relay

  1. Configure SMTP Relay
  2. From the owncloud home page, select Admin from the user account:

    owncloud Menu

  3. Select Mail Server from the left pane:

    owncloud Menu

  4. Configure the SMTP Relay user based on SMTP Relay information from the portal:

    owncloud SMTP Configuration

  5. Use the test function to verify the account information

Configure ownCloud to utilize Object Storage

You can utilize Object Storage in ownCloud two ways, one is adding Object Storage as an external storage and the other is to utilize Object Storage as the primary storage for ownCloud

Steps to add Object Storage as External storage

  1. Access to CenturyLink Cloud storage (S3 compatible) or any other object storage

  2. Login to ownCloud portal as Administrator

  3. Select Apps from the top left drop down menu:

    owncloud Files

  4. Enable External Storage Support from the Not enabled list:

    owncloud External Storage

  5. From the owncloud main page, select Admin from the user account:

    owncloud Files

    owncloud Menu

  1. Configure External Storage, Add Storage with "Amazon S3 and Compliant" and populate the fields using the credential from Step 1 and set permissions:

    owncloud Storage Menu

    owncloud Configuration

    owncloud Menu

  2. Once completed, the Object Storage will be part of the storage locations under "Files":


Steps to add Object Storage as Local storage

  1. Access to CenturyLink Cloud storage (S3 compatible) or any other object storage

  2. Depending on the version of ownCloud, the options of utilizing Object Storage can vary, learn more here

  3. ownCloud Server supports Local storage, GlusterFS/Red Hat Storage, OpenStack Swift as primary storage; Enterprise Edition supports additional primary storage with S3 compatible storage

  4. In order to utilize Object Storage for primary storage, edit config.php (default location: /var/www/owncloud/config/) with the Object Storage credential, like the example below:


Now, the ownCloud server is set up to consume Relational Database Service, SMTP Relay and Object Storage, this will minimize the administration of the local environment and eliminate resource constraint on the server.