How to configure and install OwnCloud on CentOS 7 VPS

FerdieQO

Well-known member
Joined
Jul 15, 2016
Messages
222
Points
28
If you want to create a server to sync/share files for your images, backups, calendars or any data, ownCloud is a good solution. It is open source software intended to be simple to host. In addition to being similar to services like Dropbox, Google Drive, ownCloud is free for everyone who wants to try it on a computer or server. In this tutorial, you will know how to install and configure ownCloud on Centos 7 VPS.

Before starting, you need to prepare:
  • SSH root access to VPS
  • LAMP stack
Step 1 - ownCloud installation
CentOS does not have this software in its default software repositories, but ownCloud has its repo to handle. First, enter the release key:

Code:
rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key
Then run this command to download the repository:

Code:
curl -L https://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -o /etc/yum.repos.d/ownCloud.repo
Now, we will introduce this package by clearing the cache with yum:

Code:
yum clean expire-cache
The result will be similar:
Loaded plugins: fastestmirror
Cleaning repos: base ce_stable extras updates vz-base vz-updates
10 metadata files removed


First, install the owncloud package by running the command yum install:

Code:
yum install owncloud -y
You have successfully installed the ownCloud package, now is the time to create a database!

Step 2 - Create a database
Log in to MySQL by executing this command:

Code:
mysql -u root -p
When asked, enter the root password you are using

Create a new database named owncloud:

Code:
CREATE DATABASE owncloud;
Now create the user and assign it to owncloud database:

Code:
GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'password';
Change the password to the password you want to use with this user to access the database. Once completed, exit MySQL:

Code:
exit
Database and user are ready; you can now configure your ownCloud.

Step 3 - Configuration
To access ownCloud via the browser with this URL:

https://your_domain_or_IP/owncloud

When you access ownCloud, a warning will appear saying that the certificate may be unreliable. You can ignore it; the data will still be encrypted. Alternatively, you can install the SSL certificate from Let’s Encrypt to clear this warning. The same screen may appear after the warning:

How to configure and install OwnCloud on CentOS 7 VPS 1.jpg

Enter the Username and Password to install the new administrator account. After that, access to Storage & database.

How to configure and install OwnCloud on CentOS 7 VPS 2.jpg

Leave the data folder as it is, and click on MySQL / MariaDB under Configure the database. Here you need to fill in the database name and user created in Step 2.

After that, proceed by clicking the Finish setup button .
It is done! You have entirely installed ownCloud; you can upload data to your cloud server. OwnCloud installation process is a simple process, you have installed a new repository for CentOS 7 VPS. Then you create the database and fill configuration information for initial installation. You can now use the features of this software without problems.
 
Latest Threads
Replies
1
Views
24
Replies
0
Views
176
Replies
1
Views
37
Replies
2
Views
81

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top