How to install ownCloud on Debian 8 (Jessie)

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.

In this tutorial I will show you how to install your own personal ownCloud.

Start with a fresh Debian 8 (Jessie) installation and add the ownCloud repository in the source list

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /' >> /etc/apt/sources.list

Install the key of the ownCloud repo

cd /tmp
wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_8.0/Release.key
apt-key add - < Release.key

Update the list of packages

apt-get update

Install ownCloud and all other dependencies (PHP, Apache, MySQL)

apt-get install owncloud -y

During the installation process of MySQL a window will popup and ask for a new root password

Enter the password for a second time

Open MySQL

mysql --defaults-file=/etc/mysql/debian.cnf

Create a new database (Replace ‘mysecurepassword’ with your own strong password)

CREATE DATABASE owncloud;
CREATE USER owncloud@localhost IDENTIFIED BY 'mysecurepassword';
GRANT ALL PRIVILEGES ON owncloud.* TO owncloud@localhost;
flush privileges;
quit;

Create a Data Directory for ownCloud to store the uploaded files

mkdir /var/owncloud
chown www-data:www-data /var/owncloud
chmod 750 /var/owncloud

-Go to the ownCloud webpage
Open a webbrowser and type in the URL http://OwnCloudIP-Adres/owncloud (Example http://192.168.2.10/owncloud)

Create a Admin account, select Data directory and connect to your MySQL database

  • Enter the username you want to use as your admin account (In our example: MasterAdmin).
  • Enter the password for your admin account.
  • Enter your Data Directory (By default it’s the directory we created above)
  • Select ‘MySQL / MariaDB’.
  • Enter the username of de MySQL database you used when above (In our example: owncloud).
  • Enter the password of de MySQL database you used when above (In our example: mysecurepassword).
  • Enter the database name of de MySQL database you used when above (In our example: owncloud).
  • Enter the database server of de MySQL database you used when above (In our example: localhost).
  • Click ‘Complete Installation’.

Congratz! you’ve just installed your own personal ownCloud

Leave a Reply

Your email address will not be published. Required fields are marked *