{"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<p>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 <a aria-label=\"ownCloud (opens in a new tab)\" href=\"https:\/\/owncloud.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">ownCloud<\/a>.<\/p>\n\n\n\n<p>Our previous guide was about upgrading ownCloud 9 to ownCloud 10. See the link below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-upgrade-owncloud-9-to-owncloud-10-on-ubuntu-16-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">How to Upgrade ownCloud 9 to ownCloud 10 on Ubuntu 16.04<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-owncloud-server-on-debian-10-buster\">Installing ownCloud Server on Debian 10 Buster<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h3>\n\n\n\n<p>In order to install and setup ownCloud on Debian 10 Buster, you need to have LAMP Stack components installed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"run-system-update\">Run system update<\/h4>\n\n\n\n<p>Ensure your system package cache is up-to-date.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-and-setup-lamp-stack\">Install and Setup LAMP Stack<\/h4>\n\n\n\n<p>To begin with, run the commands below to install Apache and MariaDB.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install apache2 mariadb-server mariadb-client<\/code><\/pre>\n\n\n\n<p>Install PHP 7.3 and Other Required Modules;<\/p>\n\n\n\n<p>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<pre class=\"wp-block-preformatted\"><code>apt install php libapache2-mod-php php-{mysql,intl,curl,json,gd,xml,mbstring,zip}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>php -v<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>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<p><strong>If for some reasons you are installing a version that doesn&#8217;t support PHP 7.3, you can install PHP 7.2 as follows<\/strong>;<\/p>\n\n\n\n<p>Create some repo to enable you install PHP 7.2 on Debian 10.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" &gt; \/etc\/apt\/sources.list.d\/php.list<\/code><\/pre>\n\n\n\n<p>Next, run system update and install PHP 7.2 and the required extensions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php7.2 libapache2-mod-php7.2 php7.2-{mysql,intl,curl,json,gd,xml,mb,zip}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-owncloud-on-debian-10-buster\">Install ownCloud on Debian 10 Buster<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-owncloud-repository\">Install ownCloud repository<\/h4>\n\n\n\n<p>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 <a rel=\"noreferrer noopener\" href=\"https:\/\/download.owncloud.org\/download\/repositories\/\" target=\"_blank\">ownCloud repos<\/a> for various release versions.<\/p>\n\n\n\n<p>Before you can install the ownCloud repo, first install repo PGP signing key.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install curl gnupg2 -y<\/code><\/pre>\n\n\n\n<p>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<pre class=\"wp-block-preformatted\"><code><strong>VER=10.4.1<\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl https:\/\/download.owncloud.org\/download\/repositories\/$VER\/prod\/Debian_10\/Release.key | apt-key add -<\/code><\/pre>\n\n\n\n<p>Once you install the repository signing key, proceed to install ownCloud repository by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo 'deb http:\/\/download.owncloud.org\/download\/repositories\/10.4.1\/prod\/Debian_10\/ \/' &gt; \/etc\/apt\/sources.list.d\/owncloud.list<\/code><\/pre>\n\n\n\n<p>Next, once again, resynchronize system packages to their latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>Once the update is done, install owncloud.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install owncloud-files<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-apache-for-owncloud\">Configure Apache for ownCloud<\/h3>\n\n\n\n<p>When ownCloud is installed, it places its web files under the <strong>\/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<pre class=\"wp-block-preformatted\"><code>vim \/etc\/apache2\/sites-available\/owncloud.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Alias \/ \"\/var\/www\/owncloud\/\"\n\n&lt;Directory \/var\/www\/owncloud\/&gt;\n  Options +FollowSymlinks\n  AllowOverride All\n\n &lt;IfModule mod_dav.c&gt;\n  Dav off\n &lt;\/IfModule&gt;\n\n SetEnv HOME \/var\/www\/owncloud\n SetEnv HTTP_HOME \/var\/www\/owncloud\n\n&lt;\/Directory&gt;<\/code><\/pre>\n\n\n\n<p>Save the configuration file and enable ownCloud site.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ln -s \/etc\/apache2\/sites-available\/owncloud.conf \/etc\/apache2\/sites-enabled\/<\/code><\/pre>\n\n\n\n<p>Enable additional recommended Apache modules.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2enmod rewrite mime unique_id<\/code><\/pre>\n\n\n\n<p>Verify Apache configuration syntax.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apachectl -t<\/code><\/pre>\n\n\n\n<p>Restart Apache if the configuration is fine.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-owncloud-database-and-user\">Create ownCloud Database and User<\/h3>\n\n\n\n<p>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<pre class=\"wp-block-preformatted\"><code>mysql<\/code><\/pre>\n\n\n\n<p>If you already enabled password authentication, then login via;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>create database ownclouddb;\ngrant all on ownclouddb.* to ocadmin@localhost identified by \"StrongP@ss\";\nflush privileges;\nquit<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"finalize-owncloud-configuration\">Finalize ownCloud Configuration<\/h3>\n\n\n\n<p>To complete ownCloud installation and configuration, you need to access it via the browser using the address <strong>http:\/\/&lt;server-IP&gt;<\/strong>.<\/p>\n\n\n\n<p>When you access the ownCloud server address, you are welcomed by the ownCloud configuration interface.<\/p>\n\n\n\n<p>Set the ownCloud admin user and password, define the ownCloud data directory (<strong>\/var\/www\/owncloud\/data<\/strong> is the default), set the database connection details as created above.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-setup.png\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"648\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-setup.png\" alt=\"Install ownCloud Server on Debian 10 Buster\" class=\"wp-image-3804\" title=\"\"><\/a><\/figure><\/div>\n\n\n<p>Once you done with configuration, click <strong>Finish setup<\/strong> to finalize ownCloud configuration on Debian 10 Buster.<\/p>\n\n\n\n<p>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<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-login-Debian-10-Buster.png\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"467\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-login-Debian-10-Buster.png\" alt=\"ownCloud login on Debian 10 Buster\" class=\"wp-image-3806\" title=\"\"><\/a><\/figure><\/div>\n\n\n<p>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<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-dashboard.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1357\" height=\"648\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-dashboard.png\" alt=\"owncloud dashboard on Debian 10 buster\" class=\"wp-image-3807\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-dashboard.png 1357w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/owncloud-dashboard-768x367.png 768w\" sizes=\"(max-width: 1357px) 100vw, 1357px\" \/><\/a><\/figure>\n\n\n\n<p>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<p>You can read our other guides by following the links below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-owncloud-openldap-authentication\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Configure ownCloud OpenLDAP Authentication<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-phpmyadmin-with-nginx-on-debian-10-buster\/\" target=\"_blank\">Install phpMyAdmin with Nginx on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-mysql-8-on-debian-10-buster\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install MySQL 8 on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-openvas-10-gvm-on-debian-10-buster\/\" target=\"_blank\">Install OpenVAS 10 (GVM) on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-lamp-stack-with-mariadb-10-on-debian-10-buster\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install LAMP Stack with MariaDB 10 on Debian 10 Buster<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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}]}}