YouTube Icon

Code Playground.

How to Install and Configure ownCloud on CentOS 8


How to Install and Configure ownCloud on CentOS 8

ownCloud is an open-source, self-facilitated cloud stage for overseeing and sharing records. It very well may be utilized as an option in contrast to Dropbox, Microsoft OneDrive, and Google Drive. ownCloud is extensible by means of applications and has work area and versatile customers for every single significant stage. 

This instructional exercise discloses how to introduce and design ownCloud with Apache on CentOS 8. 


Before proceeding with the means beneath, if it's not too much trouble guarantee that the accompanying essentials are met: 

Signed in as root or client with sudo access . 

You have MariaDB , Apache , and PHP 7.2 or 7.3 introduced on your framework. 

Creating Database

ownCloud upholds SQLite, Oracle 12g, PostgreSQL 9 , MariaDB and MySQL . We will utilize MariaDB as an information base back-end. 

Login in to the MariaDB shell by composing: 

sudo mysql

Run the accompanying SQL proclamation to make another information base : 

CREATE DATABASE owncloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

Make another information base client and award admittance to the information base: 

GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'change-with-strong-password';

When done, leave the MariaDB support by composing: 


Installing Apache and PHP Modules

ownCloud is a PHP application. CentOS 8 boats with PHP 7.2, which is upheld by ownCloud, however their official documentation suggests PHP 7.3. 

Run the accompanying order to introduce all necessary PHP expansions: 

sudo dnf install php php-curl php-gd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip php-opcache 

Load the new modules by restarting the FPM service:

sudo systemctl restart php-fpm

Downloading ownCloud

At the hour of composing this article, the most recent stable rendition of ownCloud is form 10.3.2. Prior to proceeding with the following stage, visit the ownCloud download page and check if there is another rendition of ownCloud accessible. 

Utilize the accompanying wget order to download the ownCloud zip document: 

wget -P /tmp
sudo tar jxf /tmp/owncloud-10.3.2.tar.bz2 -C /var/www

Set the right possession with the goal that the Apache webserver can have full admittance to the ownCloud's records and registries. 

sudo chown -R apache: /var/www/owncloud

On the off chance that SELinux is running on your framework, you'll have to refresh the SELinux security setting: 

sudo chcon -tR httpd_sys_rw_content_t /var/www/owncloud

Configuring Apache

Open your content manager and make the accompanying Apache setup record. 

sudo nano /etc/httpd/conf.d/owncloud.conf


Alias /owncloud "/var/www/owncloud/"

<Directory /var/www/owncloud/>
  Options +FollowSymlinks
  AllowOverride All

 <IfModule mod_dav.c>
  Dav off

 SetEnv HOME /var/www/owncloud
 SetEnv HTTP_HOME /var/www/owncloud


Restart the Apache administration to actuate the changes: 

sudo systemctl restart httpd

Installing ownCloud

Since ownCloud is downloaded, and the administrations are arranged, open your program and start the ownCloud establishment by visiting your worker's space name or IP address followed by/owncloud : 


You will be given the ownCloud arrangement page. 

In the event that you can't get to the page, at that point presumably your firewall is hindering port 80 or 443. 

Utilize the accompanying orders to open the essential port: 

sudo firewall-cmd --zone=public --add-port=80/tcp
sudo firewall-cmd --zone=public --add-port=443/tcp
sudo firewall-cmd --runtime-to-permanent

Enter your ideal administrator username and secret word and the MySQL client and information base subtleties you recently made. 

Snap on the Finish arrangement button. When the establishment cycle is finished, you will be diverted to the ownCloud dashboard signed in as administrator client. 


You have figured out how to introduce and design ownCloud on your CentOS 8 machine. In the event that you have a space name related with your ownCloud worker, you should protect your Apache with a free Let's Encrypt SSL declaration. 

To discover more data about how to deal with your ownCloud occasion, visit the ownCloud documentation page. 

In the event that you have any inquiries, if it's not too much trouble leave a remark beneath.