Installing and Configuring ownCloud on Debian 7.4

Updated by Alex Fornuto Written by Alex Fornuto

Contribute on GitHub

Report an Issue | View File | Edit File

ownCloud is an open source platform that allows easy access to files from multiple locations and platforms. It’s compatible with most major operating systems and mobile devices. With ownCloud you can store files on your Linode and then access them wherever you go.

Installing ownCloud on your Linode is very simple. The steps outlined below will get you up and running with a drag and drop GUI interface. An ownCloud server could benefit from large amounts of disk space, so consider using our Block Storage service with this setup.

Installation Prerequisites

Before you can use your Linode with ownCloud you will need to have a working LAMP (Linux, Apache, MySQL, and PHP) stack. For more information on how to create a LAMP stack on your Linode consult our LAMP Guides.

This guide is written for a non-root user. Commands that require elevated privileges are prefixed with sudo. If you’re not familiar with the sudo command, you can check our Users and Groups guide.

Installing ownCloud

  1. To obtain the most recent and stable application release, add the ownCloud repository to the apt source list. Begin by creating the new list file:

    sudo touch /etc/apt/sources.list.d/owncloud.list
  2. Enter the following path into the file:

    deb /
  3. Download the key associated with ownCloud:

  4. Add the key so apt may validate the files:

    sudo apt-key add - < Release.key
  5. Update your package lists:

    sudo apt-get update
  6. Install ownCloud:

    sudo apt-get install owncloud
  7. Enable HTTPS:

    sudo a2enmod ssl
  8. To use the certificate and key generated by the ssl-cert package, use the command:

    sudo a2ensite default-ssl
  9. Restart the Apache service:

    sudo service apache2 reload

Configure MySQL

Since the LAMP stack utilizes MySQL, ownCloud can be configured to use this database instead of SQLite. However, you will need to create a database for ownCloud to use.

  1. Login to MySQL:

    mysql -u root -p
  2. Create a MySQL database:

    CREATE DATABASE owncloud;

    For this example owncloud is the name of the database. You can use whatever name you choose.

  3. Assign privileges to the newly created database:

    GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'password';

    Remember that password is a variable, so you may make it what you choose.

  4. Exit MySQL with either:




Configure ownCloud

  1. Connect to ownCloud in a browser using the Linode’s IP address:

    Address bar

  2. Create an ownCloud account by entering a user name and password.

  3. Click on Advanced, select MySQL and enter the following information:

    • User name
    • Password
    • Database Name
    • Localhost

    Configuring ownCloud advanced settings.

  4. Click on the Finish Setup button.

    Accessing ownCloud.

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

Join our Community

Find answers, ask questions, and help others.

comments powered by Disqus

This guide is published under a CC BY-ND 4.0 license.