{"id":4812,"date":"2019-12-14T19:46:27","date_gmt":"2019-12-14T16:46:27","guid":{"rendered":"https:\/\/kifarunix.com\/?p=4812"},"modified":"2024-03-12T23:33:54","modified_gmt":"2024-03-12T20:33:54","slug":"install-owncloud-server-on-centos-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-owncloud-server-on-centos-8\/","title":{"rendered":"Install ownCloud Server on CentOS 8"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install ownCloud Server on CentOS 8. If you are here, then we assume that you already know what <a rel=\"noreferrer noopener\" aria-label=\"ownCloud (opens in a new tab)\" href=\"https:\/\/owncloud.org\/\" target=\"_blank\">ownCloud<\/a> is and what it does.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-owncloud-server-on-centos-8\">Installing ownCloud Server on CentOS 8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-and-setup-lamp-stack\">Install and Setup LAMP Stack<\/h3>\n\n\n\n<p>ownCloud requires the LAMP stack components in order to run. &nbsp;For optimal ownCloud performance ensure that you are running;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Database<\/td><td>MariaDB 10+<\/td><\/tr><tr><td>Web server<\/td><td>Apache 2.4<\/td><\/tr><tr><td>PHP<\/td><td>7.3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Therefore , check our guide on installing LAMP stack on CentOS 8 by following the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\"Install LAMP Stack on CentOS 8 (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-centos-8\/\" target=\"_blank\">Install LAMP Stack on CentOS 8<\/a><\/p>\n\n\n\n<p>Install other important PHP modules.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install php-{bz2,curl,gd,imagick,intl,zip}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-owncloud-server\">Install ownCloud Server<\/h3>\n\n\n\n<p>There are two ways through which ownCloud server can be installed on a CentOS 8 system;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install ownCloud from ownCloud Repos<\/li>\n\n\n\n<li>Install ownCloud Using RPM binary package<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-owncloud-from-owncloud-repository\">Install ownCloud from ownCloud Repository<\/h4>\n\n\n\n<p>CentOS 8 default repos do not contain ownCloud packages. Therefore, you need to install ownCloud Repository on CentOS 8.<\/p>\n\n\n\n<p>Install the ownCloud repository signing key.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rpm --import https:\/\/download.owncloud.org\/download\/repositories\/production\/CentOS_8\/repodata\/repomd.xml.key<\/code><\/pre>\n\n\n\n<p>Install ownCloud repository on CentOS 8<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf config-manager --add-repo http:\/\/download.owncloud.org\/download\/repositories\/production\/CentOS_8\/ce:stable.repo<\/code><\/pre>\n\n\n\n<p>Run system update<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf update<\/code><\/pre>\n\n\n\n<p>Install ownCloud Server<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install owncloud-files<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-owncloud-using-rpm-binary-package\">Install ownCloud Using RPM Binary Package<\/h4>\n\n\n\n<p>You can as well install ownCloud using its binary package which can be downloaded from <a rel=\"noreferrer noopener\" aria-label=\"download.owncloud.org (opens in a new tab)\" href=\"https:\/\/download.owncloud.org\/download\/repositories\/production\/CentOS_8\/noarch\/\" target=\"_blank\">download.owncloud.org<\/a> if you do not want to install the repositories on your system. You simply grab the url of the rpm binary and install it as follows;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf localinstall https:\/\/download.owncloud.org\/download\/repositories\/production\/CentOS_8\/noarch\/owncloud-files-10.3.2-2.1.noarch.rpm<\/code><\/pre>\n\n\n\n<p>This installs ownCloud 10.3.2-2.1. Replace the versions accordingly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuring-owncloud-on-centos-8\">Configuring ownCloud on CentOS 8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-owncloud-database-and-database-user\">Create ownCloud Database and Database User<\/h3>\n\n\n\n<p>Login to MariaDB database server and create ownCloud database and a database user with all the privileges granted on the ownCloud database.<\/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-preformatted\"><code>create database ownclouddb;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grant all on ownclouddb.* to ocadmin@localhost identified by \"StrongP@ss\";<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>flush privileges;\nquit<\/code><\/pre>\n\n\n\n<p>When using MariaDB\/MySQL as ownCloud database backend, it is recommended that you <a rel=\"noreferrer noopener\" aria-label=\"disable binary logging to avoid data loss when load is high (opens in a new tab)\" href=\"https:\/\/doc.owncloud.org\/server\/10.3\/admin_manual\/configuration\/database\/linux_database_configuration.html#mysql-mariadb-with-binary-logging-enabled\" target=\"_blank\">disable binary logging to avoid data loss when load is high<\/a> if you are not running any replication.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo -e \"[mysqld]\\nskip-log-bin\" &gt;&gt; \/etc\/my.cnf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart mariadb<\/code><\/pre>\n\n\n\n<p>Verify that binary logging is disabled.<\/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-preformatted\"><code>show variables like 'log_bin';<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>+---------------+-------+\n| Variable_name | Value |\n+---------------+-------+\n| log_bin       | OFF   |\n+---------------+-------+\n1 row in set (0.003 sec)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-apache-virtualhost-configuration-file-for-owncloud\">Create Apache VirtualHost Configuration file for ownCloud<\/h3>\n\n\n\n<p>When installed, ownCloud creates a default web root directory under <code><strong>\/var\/www\/html\/owncloud\/<\/strong><\/code>.<\/p>\n\n\n\n<p>Therefore, if you do not want to use the default Apache configuration, simply create a VirtualHost configuration as shown below. Make the necessary changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vi \/etc\/httpd\/conf.d\/owncloud.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n    ServerName owncloud.kifarunix-demo.com\n    DocumentRoot \/var\/www\/html\/owncloud\n\n    &lt;Directory \/var\/www\/html\/owncloud&gt;\n        Options -Indexes +FollowSymLinks\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory&gt;\n\n    ErrorLog \/var\/log\/httpd\/owncloud.kifarunix-demo.com_error.log\n    CustomLog \/var\/log\/httpd\/owncloud.kifarunix-demo.com_access.log combined\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>Check Apache configuration syntax for any errors.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apachectl configtest<\/code><\/pre>\n\n\n\n<p>If you get, <strong><code>Syntax OK<\/code><\/strong>, restart Apache.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart httpd<\/code><\/pre>\n\n\n\n<p>If SELinux is running, run the command below to enable Apache to write to ownCloud configuration directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>setsebool -P httpd_unified 1<\/code><\/pre>\n\n\n\n<p>You can always consult <code><strong>\/var\/log\/audit\/audit.log<\/strong><\/code> file for any denied requests and use <code>audit2why<\/code> to see how to fix.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"finalize-owncloud-configuration\">Finalize ownCloud Configuration<\/h3>\n\n\n\n<p>To finalize ownCloud configuration setup, access ownCloud from the browser; <strong><code>http:\/\/Server_IP_or_hostname<\/code><\/strong>.<\/p>\n\n\n\n<p>Create ownCloud admin username and password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"664\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/12\/admin-acc.png\" alt=\"Install ownCloud Server on CentOS 8\" class=\"wp-image-4817\" title=\"\"><\/figure>\n\n\n\n<p>Next, configure your database configuration settings. Click <strong>storage &amp; database<\/strong> drop down button.<\/p>\n\n\n\n<p>The ownCloud data directory is set to <code>\/var\/www\/owncloud\/data<\/code>&nbsp;by default. You can leave the default.<\/p>\n\n\n\n<p>Choose your database backend, in this demo, MariaDB is used. Enter the database connection details that were created above.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"609\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/12\/owncloud-db-settings.png\" alt=\"Install ownCloud Server on CentOS 8\" class=\"wp-image-4818\" title=\"\"><\/figure>\n\n\n\n<p>Next, click <strong><code>Finish Setup<\/code><\/strong> to complete the configuration of ownCloud on CentOS 8. <\/p>\n\n\n\n<p>Login with you admin credentials to get to ownCloud dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1360\" height=\"647\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/12\/owncloud-dashboard-centos8.png\" alt=\"ownCloud Server on CentOS 8\" class=\"wp-image-4819\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/12\/owncloud-dashboard-centos8.png?v=1576341624 1360w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/12\/owncloud-dashboard-centos8-768x365.png?v=1576341624 768w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/figure>\n\n\n\n<p>ownCloud is now installed successfully on CentOS 8. You can navigate through the dashboard to learn one or two things about ownCloud.<\/p>\n\n\n\n<p>Read more on <a rel=\"noreferrer noopener\" aria-label=\"ownCloud user Manual (opens in a new tab)\" href=\"https:\/\/doc.owncloud.com\/server\/10.3\/user_manual\/\" target=\"_blank\">ownCloud user Manual<\/a>.<\/p>\n\n\n\n<p>Reference<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\"ownCloud installation guide (opens in a new tab)\" href=\"https:\/\/doc.owncloud.org\/server\/latest\/admin_manual\/installation\/\" target=\"_blank\">ownCloud installation guide<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-related-tutorials\">Other Related Tutorials<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-owncloud-server-on-debian-10-buster\/\" target=\"_blank\">Install ownCloud Server 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\/how-to-upgrade-owncloud-9-to-owncloud-10-on-ubuntu-16-04\/\" target=\"_blank\">How to Upgrade ownCloud 9 to ownCloud 10 on Ubuntu 16.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install ownCloud Server on CentOS 8. If you are here, then we assume that you<\/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":[1142,267,1238,1239,343],"class_list":["post-4812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-owncloud","category-storage","tag-centos-8","tag-owncloud","tag-owncloud-centos-8","tag-owncloud-with-mariadb","tag-php-7-3","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\/4812"}],"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=4812"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4812\/revisions"}],"predecessor-version":[{"id":21282,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4812\/revisions\/21282"}],"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=4812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=4812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=4812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}