{"id":3802,"date":"2019-07-27T21:47:11","date_gmt":"2019-07-27T18:47:11","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3802"},"modified":"2024-03-12T07:31:08","modified_gmt":"2024-03-12T04:31:08","slug":"install-owncloud-server-on-debian-10-buster","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-owncloud-server-on-debian-10-buster\/","title":{"rendered":"Install ownCloud Server on Debian 10 Buster"},"content":{"rendered":"\n

In this guide, we are going to learn how to install ownCloud Server on Debian 10 Buster. If you need to have your own self-hosted cloud storage that provides a safe, secure, and compliant file synchronization and sharing solution, try ownCloud<\/a>.<\/p>\n\n\n\n

Our previous guide was about upgrading ownCloud 9 to ownCloud 10. See the link below;<\/p>\n\n\n\n

How to Upgrade ownCloud 9 to ownCloud 10 on Ubuntu 16.04<\/a><\/p>\n\n\n\n

Installing ownCloud Server on Debian 10 Buster<\/h2>\n\n\n\n

Prerequisites<\/h3>\n\n\n\n

In order to install and setup ownCloud on Debian 10 Buster, you need to have LAMP Stack components installed.<\/p>\n\n\n\n

Run system update<\/h4>\n\n\n\n

Ensure your system package cache is up-to-date.<\/p>\n\n\n\n

apt update<\/code><\/pre>\n\n\n\n

Install and Setup LAMP Stack<\/h4>\n\n\n\n

To begin with, run the commands below to install Apache and MariaDB.<\/p>\n\n\n\n

apt install apache2 mariadb-server mariadb-client<\/code><\/pre>\n\n\n\n

Install PHP 7.3 and Other Required Modules;<\/p>\n\n\n\n

As of this writing, the current release versions of ownCloud supports php 7.3, which is available as the default PHP version on Debian 10 repositories.<\/p>\n\n\n\n

apt install php libapache2-mod-php php-{mysql,intl,curl,json,gd,xml,mbstring,zip}<\/code><\/pre>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
PHP 7.3.14-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )\nCopyright (c) 1997-2018 The PHP Group\nZend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies\n    with Zend OPcache v7.3.14-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies<\/code><\/pre>\n\n\n\n

If for some reasons you are installing a version that doesn’t support PHP 7.3, you can install PHP 7.2 as follows<\/strong>;<\/p>\n\n\n\n

Create some repo to enable you install PHP 7.2 on Debian 10.<\/p>\n\n\n\n

wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg<\/code><\/pre>\n\n\n\n
echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" > \/etc\/apt\/sources.list.d\/php.list<\/code><\/pre>\n\n\n\n

Next, run system update and install PHP 7.2 and the required extensions.<\/p>\n\n\n\n

apt update<\/code><\/pre>\n\n\n\n
apt install php7.2 libapache2-mod-php7.2 php7.2-{mysql,intl,curl,json,gd,xml,mb,zip}<\/code><\/pre>\n\n\n\n

Install ownCloud on Debian 10 Buster<\/h3>\n\n\n\n

Install ownCloud repository<\/h4>\n\n\n\n

Owncloud is not included by default on Debian 10 repositories. However, there is repo for each Linux distribution maintained by ownCloud itself. There are available different ownCloud repos<\/a> for various release versions.<\/p>\n\n\n\n

Before you can install the ownCloud repo, first install repo PGP signing key.<\/p>\n\n\n\n

apt install curl gnupg2 -y<\/code><\/pre>\n\n\n\n

Note that ownCloud 10.4.1 is the current stable release version. Be sure to replace the release version number accordingly.<\/p>\n\n\n\n

VER=10.4.1<\/strong><\/code><\/pre>\n\n\n\n
curl https:\/\/download.owncloud.org\/download\/repositories\/$VER\/prod\/Debian_10\/Release.key | apt-key add -<\/code><\/pre>\n\n\n\n

Once you install the repository signing key, proceed to install ownCloud repository by executing the command below;<\/p>\n\n\n\n

echo 'deb http:\/\/download.owncloud.org\/download\/repositories\/10.4.1\/prod\/Debian_10\/ \/' > \/etc\/apt\/sources.list.d\/owncloud.list<\/code><\/pre>\n\n\n\n

Next, once again, resynchronize system packages to their latest versions.<\/p>\n\n\n\n

apt update<\/code><\/pre>\n\n\n\n

Once the update is done, install owncloud.<\/p>\n\n\n\n

apt install owncloud-files<\/code><\/pre>\n\n\n\n

Configure Apache for ownCloud<\/h3>\n\n\n\n

When ownCloud is installed, it places its web files under the \/var\/www\/owncloud<\/strong> directory. In order to configure Apache to server the ownCloud content, you need to create ownCloud Apache configuration file where you can define the ownCloud directory as your root directory.<\/p>\n\n\n\n

vim \/etc\/apache2\/sites-available\/owncloud.conf<\/code><\/pre>\n\n\n\n
Alias \/ \"\/var\/www\/owncloud\/\"\n\n<Directory \/var\/www\/owncloud\/>\n  Options +FollowSymlinks\n  AllowOverride All\n\n <IfModule mod_dav.c>\n  Dav off\n <\/IfModule>\n\n SetEnv HOME \/var\/www\/owncloud\n SetEnv HTTP_HOME \/var\/www\/owncloud\n\n<\/Directory><\/code><\/pre>\n\n\n\n

Save the configuration file and enable ownCloud site.<\/p>\n\n\n\n

ln -s \/etc\/apache2\/sites-available\/owncloud.conf \/etc\/apache2\/sites-enabled\/<\/code><\/pre>\n\n\n\n

Enable additional recommended Apache modules.<\/p>\n\n\n\n

a2enmod rewrite mime unique_id<\/code><\/pre>\n\n\n\n

Verify Apache configuration syntax.<\/p>\n\n\n\n

apachectl -t<\/code><\/pre>\n\n\n\n

Restart Apache if the configuration is fine.<\/p>\n\n\n\n

systemctl restart apache2<\/code><\/pre>\n\n\n\n

Create ownCloud Database and User<\/h3>\n\n\n\n

Login to MariaDB database server and create ownCloud database and database user. Note that with MariaDB 10, authentication is via the unix socket plugin and hence no root password is required.<\/p>\n\n\n\n

mysql<\/code><\/pre>\n\n\n\n

If you already enabled password authentication, then login via;<\/p>\n\n\n\n

mysql -u root -p<\/code><\/pre>\n\n\n\n
create database ownclouddb;\ngrant all on ownclouddb.* to ocadmin@localhost identified by \"StrongP@ss\";\nflush privileges;\nquit<\/code><\/pre>\n\n\n\n

Finalize ownCloud Configuration<\/h3>\n\n\n\n

To complete ownCloud installation and configuration, you need to access it via the browser using the address http:\/\/<server-IP><\/strong>.<\/p>\n\n\n\n

When you access the ownCloud server address, you are welcomed by the ownCloud configuration interface.<\/p>\n\n\n\n

Set the ownCloud admin user and password, define the ownCloud data directory (\/var\/www\/owncloud\/data<\/strong> is the default), set the database connection details as created above.<\/p>\n\n\n

\n
\"Install<\/a><\/figure><\/div>\n\n\n

Once you done with configuration, click Finish setup<\/strong> to finalize ownCloud configuration on Debian 10 Buster.<\/p>\n\n\n\n

When configuration completes, you will get to a login page. Enter your admin user login details to login to ownCloud dashboard.<\/p>\n\n\n

\n
\"ownCloud<\/a><\/figure><\/div>\n\n\n

Login with your Admin user account details you defined during setup. After a successful login, you will land on ownCloud dashboard.<\/p>\n\n\n\n

\"owncloud<\/a><\/figure>\n\n\n\n

There you go. You have successfully installed and configured ownCloud server on Debian 10 Buster. You can now create different folders and share with your relevant users. Enjoy.<\/p>\n\n\n\n

You can read our other guides by following the links below;<\/p>\n\n\n\n

Configure ownCloud OpenLDAP Authentication<\/a><\/p>\n\n\n\n

Install phpMyAdmin with Nginx on Debian 10 Buster<\/a><\/p>\n\n\n\n

Install MySQL 8 on Debian 10 Buster<\/a><\/p>\n\n\n\n

Install OpenVAS 10 (GVM) on Debian 10 Buster<\/a><\/p>\n\n\n\n

Install LAMP Stack with MariaDB 10 on Debian 10 Buster<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

In this guide, we are going to learn how to install ownCloud Server on Debian 10 Buster. If you need to have your own self-hosted<\/p>\n","protected":false},"author":1,"featured_media":11059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,249,39],"tags":[1055,1039,267,1056],"class_list":["post-3802","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-owncloud","category-storage","tag-cloud-storage","tag-debian-10-buster","tag-owncloud","tag-owncloud-10-2","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3802"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=3802"}],"version-history":[{"count":11,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3802\/revisions"}],"predecessor-version":[{"id":21166,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3802\/revisions\/21166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/11059"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}