New system’s recommended to follow initial server setup. Shell access to the CentOS 8 system

Step 1 – Disable SELinux

Before starting, it is a good idea to disable the SELinux in your system. To disable SELinux, open the /etc/selinux/config file: Change the following line:

Step 2 – Install Apache/MySQL/PHP

To set up ownCloud you must have running LAMP server on your CentOS 8 system. If you already have running LAMP stack skip this step else use the following commands to install it.

Install Apache2

Install MySQL

Use this tutorial for the complete MySQL installation steps on CentOS 8.

Install PHP

Let’s start with the installation of PHP 5.6 or higher version.

Step 3 – Download ownCloud Source

After successfully configuring lamp server on your system, Let’s download latest ownCloud from its official website. Next, extract downloaded archive under the website document root and set up appropriate permissions on files and directories. ownCloud keep its data under the separate directory. We suggest to keep this outside of ownCloud application directory. So create directory like below, and set proper permission to allow web server to write files.

Step 4 – Create MySQL User and Database

After extracting code, let’s create a MySQL database and user account for configuring ownCloud. Use following set of command to login to MySQL server and create database and user.

Step 5 – Configure Apache

Now, create a Apache configuration file and setup owncloud alias. This will allow us to access ownCloud as sub-directory url. Create and edit file: Add the below content:

Save and close file. Then restart the Apache service to reload configuration file.

Step 6 – Run ownCloud Web Installer

Now access the ownCloud in the web browser as below. Change the to your server IP address or domain name. Enter new admin credentials to create an admin account and provide the location of the data folder.

Now slide your page down and input the database credentials and click on Finish Setup.

After completing the setup you will get the admin dashboard. Where you can create a user, groups, assigned them permissions, etc.


Congratulations, You have a working ownCloud instance on your CentOS 8 Linux system.

How to Install ownCloud on CentOS 8   TecAdmin - 6How to Install ownCloud on CentOS 8   TecAdmin - 27How to Install ownCloud on CentOS 8   TecAdmin - 23