Owncloud is a file host service software, which is the cloud storage we usually use. However, this is to establish our own private cloud on the server of our own host. Owncloud uses AGPLv3 protocol to publish. This project is based on PHP and SQLite, mysql, Oracle or PostgreSQL database, so it can run on all platforms
Rhel7 deploying private cloud disk rhel7 deploying private cloud disk
Download the owncloud installation package
[[email protected] tools]# wget https://download.owncloud.org…
–2020-06-01 15:09:12– https://download.owncloud.org…
Resolving host download.owncloud.org ( download.owncloud.org )… 116.203.164.24, 2a01:4f8:1c0c:8147::
Connecting download.owncloud.org ( download.owncloud.org )|116.203.164.24 |: 443… Connected.
HTTP request issued, waiting for response… 301 moved permanently
Location: https://attic.owncloud.org/co… [follow to new url]
–2020-06-01 15:09:18– https://attic.owncloud.org/co…
Resolving host attic.owncloud.org ( attic.owncloud.org )… 195.201.36.192, 2a01:4f8:c2c:5c1d::1
Connecting attic.owncloud.org ( attic.owncloud.org )|195.201.36.192 |: 443… Connected.
HTTP request issued, waiting for response… 200 OK
Length: 42123371 (40m) [application / zip]
Saving to: owncloud-10.0.2. Zip
100% [= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
2020-06-01 15:12:34 (212 KB / s) – saved “owncloud-10.0.2. Zip” [42123371 / 42123371])
[[email protected] tools]# ls
owncloud-10.0.2.zip
Install dependent package components
[[email protected] tools]# yum install -y httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo wget vim
Combine owncloud package with ApacheUnzip owncloud to the Apache directory
[[email protected] tools]# unzip owncloud-10.0.2.zip -d /var/www/html/
to grant authorization
[[email protected] tools]# chown -R apache.apache /var/www/html/owncloud/
Set up databaseStart database and Apache
[[email protected] tools]# systemctl start mariadb
[[email protected] tools]# systemctl start httpd
Turn off firewall and SELinux
[[email protected] tools]# setenforce 0
[[email protected] tools]# systemctl stop firewalld
Create user and authorize
[[email protected] tools]# mysql
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 2
Server version: 5.5.56-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.
MariaDB [(none)]> create database owncloud;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user ‘owncloud’@’localhost’ identified by ‘123456’;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all on owncloud.* to ‘owncloud’@’%’;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> quit
Bye
Sign in
Rhel7 deploying private cloud disk rhel7 deploying private cloud disk
Fill in the relevant database information
Rhel7 deploying private cloud disk rhel7 deploying private cloud disk
Deployment complete
Rhel7 deploying private cloud disk rhel7 deploying private cloud disk
test
Rhel7 deploying private cloud disk rhel7 deploying private cloud disk
Rhel7 deploying private cloud disk rhel7 deploying private cloud disk
Upload success!