Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install OwnCloud on CentOS 8 - DesignLinux

May 29 2020
designlinux 0 Comments

Owncloud is a market-leading, client-server software that offers a cloud platform that allows you to back-up your files in a central location and syncs them on the cloud. It’s an excellent alternative to popular backup applications such as OneDrive, Dropbox and Google Drive.

Unlike these popular platforms, OwnCloud doesn’t offer data center capabilities for hosting files. Nevertheless, you will be guaranteed the security and privacy of your stored data.

In this article, we will walk you through how you can install OwnCloud on CentOS 8.

Prerequisites

Before we get started, ensure that you have a LAMP stack installed and running.

With all the requirements fulfilled, we can roll our sleeves and get started!

Step 1: Install Additional PHP Modules

OwnCloud is a PHP application and its official documentation recommends PHP 7.3 or PHP 7.2 which comes installed by default. Also, some additional PHP extensions are required by OwnCloud for it to work seamlessly.

So open your terminal as a sudo user and run the command.

$ sudo dnf install php-curl php-gd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip php-opcache 
Install PHP Modules

Install PHP Modules

Step 2: Create a Database for OwnCloud

After installing the requisite PHP extensions, login to the MariaDB database engine using the command below and provide the password.

$ mysql -u root -p

Upon logging in, create a database for OwnCloud and add a user for the database.

MariaDB [(none)]> CREATE DATABASE owncloud_db;
MariaDB [(none)]> GRANT ALL ON owncloud_db.* TO 'owncloud_user'@'localhost' IDENTIFIED BY '[email protected]';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Create OwnCloud Database

Create OwnCloud Database

Step 3: Download OwnCloud in CentOS 8

The next step is to download the OwnCloud file, by the time of writing this guide, the latest version on OwnCloud is 10.3.2. Using the wget command, download the latest tarball file.

$ wget https://download.owncloud.org/community/owncloud-10.3.2.tar.bz2

Then extract the tarball file to the /var/www/ directory.

$ sudo tar -jxf owncloud-10.3.2.tar.bz2 -C /var/www/

Next, configure ownership permissions that will allow Apache webserver to read / access Owncloud’s files and folders.

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

Step 4: Configure Apache Web Server for OwnCloud

A few changes are required for the Apache webserver to serve OwnCloud. So create a configuration for OwnCloud.

$ sudo vim /etc/httpd/conf.d/owncloud.conf

Append the following configuration.

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

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

 <IfModule mod_dav.c>
  Dav off
 </IfModule>

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

</Directory>

Save and exit the file.

For the changes to come into effect, restart the webserver and confirm the status by running.

$ sudo systemctl restart httpd
$ sudo systemctl status httpd
Check Apache Service Status

Check Apache Service Status

If SELinux is enabled and running, execute the command below to allow the Apache webserver to write to Owncloud’s directory.

$ sudo setsebool -P httpd_unified 1

Step 5: Finalize Installation of OwnCloud on CentOS 8

With all the major configurations done, it’s time to finalize the installation of OwnCloud. So launch your browser and visit your server’s IP as shown.

http://server-ip/owncloud
OwnCloud Login

OwnCloud Login

Provide the username and password as shown above. Next click on ‘Storage and database’ link directly below and select ‘MySQL/MariaDB’ database. Fill out all the database details i.e database user, password, and database name.

OwnCloud Database Details

OwnCloud Database Details

Finally, click the ‘Finish Setup’ button to complete the setup.

Complete OwnCloud Installation

Complete OwnCloud Installation

This brings you to the login page where you will log in with the username and password that you specified earlier on.

OwnCloud Login

OwnCloud Login

Since we are logging in for the first time, you will be presented with options for installing the owncloud App on different platforms such as Android and iOS.

OwnCloud App Installation

OwnCloud App Installation

This is what the dashboard looks like. Quite simple and intuitive to use.

OwnCloud Dashboard

OwnCloud Dashboard

And that’s how you install OwnCloud on CentOS 8. Your feedback is much welcome.

Sharing is Caring…
Share on FacebookShare on TwitterShare on LinkedinShare on Reddit

Related

Tags: CentOS Tips, cloud storage, owncloud

Learn Python Set/Frozenset Data Structure – Part 4

Prev Post

How to Append Text to End of File in Linux

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 2
  • 2,866
  • 618,769

DesignLinux.com © All rights reserved

Go to mobile version