How to Install Owncloud on CentOS 7/ Redhat

OwnCloud is an open source, self-hosted file sync and share app platform. Access & sync your files, contacts,

calendars & bookmarks across your devices. You decide what happens with your data, where it is and who can access it.

Installing Package

  • Download the ownCloud repository file
sudo rpm --import
sudo curl -L -o /etc/yum.repos.d/ownCloud.repo
sudo yum clean expire-cache
  • Install Owncloud
sudo yum install owncloud -y

Setup Database for Owncloud

  • Install Database Server
sudo yum install mariadb-server -y
  • Setup database name
mysql -u root -p

After typed command above, enter the root password that you set when you installed the database server.

  • Create database name (example, cloud)
mysql> CREATE DATABASE owncloud;
  • Create database user and grant privilege
mysql> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'your_password';


mysql> exit;

Configuring OwnCloud

To configure Owncloud, open the web browser, then input the URL as followwing.

https://server-IP_or_domain-name/owncloud  (Example,

Then, you will see the page as below. Create your admin credential by insert them in the blank box.

Next, click on the Storage & database link. Leave “Data folder” as default, then click on MySQL/MariaDB.

Fill in the database username & password, database name, and database server. Finally, click on “Finish setup”.

Congratulation! Now you have your Owncloud to manage your data on the Internet.

Sophat Saom

Senior System Engineer, VCP

View my other posts

Leave a Reply

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