Build a powerful Owncloud Server on top of CentOS 7.3 Server

CentOS is a powerful Linux distribution and its perfect for server. This tutorial I will show you how I create my Owncloud Server using CentOS 7.3 Server. Installing Owncloud on CentOS needs few command line execution but don’t worry, I will try to explain every steps I took here with example. I hope at the end of this post, you will be able to power up your own Owncloud server on your local network or in the real cloud environment.

Steps to install Owncloud on CentOS 7.3

Step 1. Install LAMP Server

I have created a special tutorial to install LAMP Stack on CentOS 7.3 Server. You may also watch the following video to install LAMP Server on CentOS 7.3

Step 2. Prepare installation for Owncloud

If you follow my tutorial above to install LAMP Stack on CentOS 7.3, we still need to install some additional packages to our system prior to Owncloud installation.

Install additional PHP modules

Install Owncloud

Step 3. Create Owncloud Database

We need to create a new database for Owncloud.

Step 4. Configure SELINUX on CentOS

By default, SELINUX is enabled on CentOS 7.3. We need to do some tweak to the owncloud installation to work with SELINUX. If not, you will get the following permission error when opening Owncloud web interface.

To fix this, run the following commands as root

Don’t forget to change the owncloud directory if you installed it on different location. For more information about this permission and SELINUX on Owncloud, please visit this page.

Now we can start configure Owncloud via web browser.


Follow on screen installation wizard. You will be asked to enter the MySQL database, user and password we created earlier.


Leave a Reply

Your email address will not be published. Required fields are marked *