+3 votes
258 views
How to install ownCloud on CentOS 8

in Linux / Unix by (551k points)
reopened | 258 views

1 Answer

+4 votes
Best answer

1. Install LAMP CentOS 8
2. Configure ownCloud database in CentOS 8
3. Downloading ownCloud in CentOS 8
4. Configure Apache for ownCloud in CentOS 8
5. How ownCloud works in CentOS 8

Technology has advanced in giant steps so much that today we can see that one of the most used ways to dispose of documents in a secure and comprehensive way is using the cloud. This gives us access almost anywhere in the world to the files we upload and we can be sure of their integrity since they are on encrypted servers that meet the highest levels of security ensuring that the information is always there. Today we see applications such as OneDrive , Google Drive, etc., which allow you to host the files in a central location and synchronize them directly in the cloud, that is, any changes that are made locally automatically will be replicated to the file in the cloud..

One of the applications that has taken boom in this field is OwnCloud which has been developed as an open source software focused on being a collaboration platform for everything related to Linux cloud storage giving security and privacy of the information that is rise. That is why today we will see how to install Owncloud on CentOS

ownCloud allows us to host files in a central location giving a level of privacy as it prevents unauthorized access by other users, in addition to that, ownCloud provides us with a free desktop client and a free application for current mobile systems giving control Total access to files.

OwnCloud features
Among its most outstanding features we find:
  • It allows to synchronize files and share data from all associated devices
  • ownCloud is hosted only on our server or private cloud in order to guarantee access to data
  • Available for Android or iOS and as an extra point, ownCloud can work together with Dropbox, Microsoft OneDrive and many more cloud platforms.
  • Real-time synchronization between desktop and mobile devices.
  • It allows to increase its functions through the installation of applications managed by the community.
  • All data transfers are protected through SSL encryption, checksum, WebDAV optimizations and many more.
  • It allows working with FTP, Swift, S3 or Dropbox to add external storage.
  • It has an end-to-end or E2EE add-on encryption to fully encrypt the files.

Now we will learn how to install ownCloud on CentOS 8


1. Install LAMP CentOS 8


The first step will be to install the LAMP suite (Linux - Apache - MySQL - PHP), which will be essential for the operation of ownCloud.
Step 1

For this the first step will be to install Apache, for this we execute the following:
 sudo yum install httpd httpd-tools 

image

Step 2

The following message will be launched which we must accept to proceed with the installation:

image

Step 3

Once the installation is finished we will see the following:

image

Step 4

After this we will execute the following:
 systemctl start httpd (start Apache) systemctl enable httpd (enable Apache) systemctl status httpd (validates Apache status in CentOS 8) 

image

Step 5

After this we must allow external access to the server by executing the following:
 firewall-cmd --permanent --zone = public --add-service = http firewall-cmd --permanent --zone = public --add-service = https systemctl reload firewalld 
Step 6

The next step is to install MySQL on CentOS 8 for database management, for this we execute the following:
 sudo yum install mariadb-server mariadb -y 

image

Step 7

When the process is finished we will see the following:

image

Step 8

Now we execute the following:
 systemctl start mariadb (Start the database) systemctl enable mariadb (enable database) systemctl status mariadb (allows to see the status of the database) 

image

Step 9

The next step will be to ensure the installation of MySQL, for this we execute the following:
 mysql_secure_installation 
Step 10

There we must validate a series of questions associated with the database:

image

Step 11

When this is completed we will see the following:

image

Step 12

Finally, we install PHP with the following command:
 sudo yum install php 
Step 13

We are going to install a series of PHP plugins needed for ownCloud:
 sudo dnf install php-curl php-gd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip php-opcache 

image

Step 14

Enter the letter S to confirm and proceed with the download and installation:

image


2. Configure ownCloud database in CentOS 8

Step 1

The next step will be to create the database where the files will be hosted in the cloud, for this we access MySQL with the following command:
 mysql -u root -p 
Step 2

There we enter each of the following lines:
 CREATE DATABASE owncloud_db; GRANT ALL ON owncloud_db. * TO 'user' @ 'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; EXIT; 

image


3. Downloading ownCloud in CentOS 8

Step 1

We proceed to download ownCloud in CentOS 8 by running the following command:
 sudo wget https://download.owncloud.org/community/owncloud-10.3.2.tar.bz2 

image

Step 2

Now let's extract this content in the / var / www / directory:
 sudo tar -jxf owncloud-10.3.2.tar.bz2 -C / var / www / 

image

Step 3

We configure Apache permissions in that directory:
 sudo chown -R apache: / var / www / owncloud 

image


4. Configure Apache for ownCloud in CentOS 8

Step 1

We will create an Apache configuration file in order to access ownCloud, for this we enter the following:
 sudo nano /etc/httpd/conf.d/owncloud.conf 
Step 2

There we enter the following data:
 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> 

image

Step 3

We save the changes using the following key combination:

+ O Ctrl + O

We leave the editor using:

+ X Ctrl + X

Step 4

We restart and check the Apache service with the following commands:
 sudo systemctl restart httpd sudo systemctl status httpd 

image

Step 5

In case SELinux is enabled and running, we will use the following command in order to enable the Apache web server to write to the ownCloud directory:
 sudo setsebool -P httpd_unified 1 

5. How ownCloud works in CentOS 8

Step 1

To complete the configuration of ownCloud we will go to a browser and enter the following syntax:
 http: // ip-server / owncloud 
Step 2

There we define the following:
  • Assigning ownCloud administrator name and password
  • In the "Configure the database" field, select "MySQL María DB"
  • At the bottom we enter the name of the table, user and password that we have assigned in MySQL
image
Step 3

We click on the "Complete installation" button to follow the process: image
Step 4

When this is finished we must enter the username and password that we have assigned: image
Step 5

When accessing ownCloud we will see the following: image
Step 6

We can close this window to see the general environment of OwnCloud: image
Step 7

We can access the settings and these are composed of two sections that are:
  • Personal
  • Administration
Personal
In the Personal section we can edit variables such as:
  • Name
  • Photo
  • Mail
  • Password
  • Use language
  • Activate alerts and more
image
Security
In security we can add domains, view sessions or establish applications: image
Storage
Some settings such as storage are controlled by the administrator: image
Administration
In the Administration section we can find the Applications section where we can extend the functionality of ownCloud: image
generate
In General we can configure:
  • Email delivery language
  • Edit Address
  • Download the ownCloud configuration report
  • Set legal parameters
image
Step 8

We can activate external storage to increase file hosting capacity: image
Step 9

In the Encryption section we can enable encryption to increase security in ownCloud: image

This is the method to install and configure ownCloud on CentOS 8 and in the process have a mechanism for hosting in the cloud in a secure and dynamic way..


by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Nov 5, 2019 in Linux / Unix by backtothefuture (551k points) | 209 views
+4 votes
1 answer
asked Oct 8, 2020 in Linux / Unix by backtothefuture (551k points) | 341 views
+5 votes
1 answer
asked Sep 2, 2020 in Linux / Unix by backtothefuture (551k points) | 2k views
+3 votes
1 answer
asked Aug 13, 2020 in Linux / Unix by backtothefuture (551k points) | 1.9k views
+4 votes
1 answer
asked Jun 9, 2020 in Linux / Unix by backtothefuture (551k points) | 595 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,632 questions
10,764 answers
510 comments
3 users