CentOS 7
Sponsored Link

Install ownCloud
Install ownCloud 9 which is Cloud Storage Server.
[4] Install ownCloud.
# install from EPEL

[root@dlp ~]#
yum --enablerepo=epel -y install php-pear-MDB2-Driver-mysqli php-pear-Net-Curl
[root@dlp ~]#
wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d
[root@dlp ~]#
yum -y install owncloud
[root@dlp ~]#
systemctl restart httpd
[5] Add user and database for ownCloud in MariaDB.
[root@dlp ~]#
mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.47-MariaDB MariaDB Server

Copyright (c) 2000, 2015, 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)]>
grant all privileges on owncloud.* to owncloud@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>

[6] If SELinux is enabled, change rules like follows.
[root@dlp ~]#
semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/apps

[root@dlp ~]#
semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/config

[root@dlp ~]#
restorecon /var/www/html/owncloud/apps

[root@dlp ~]#
restorecon /var/www/html/owncloud/config

[7] Access to the URL "http://(your hostname or IP address)/owncloud/" from a client computer with Web browser. Then following screen is shown. Add an admin account for ownCloud, and also click "MySQL/MariaDB" in database section and input username or database name for MariaDB. If it's OK all, Click "Finish Setup" to proceed.
[8] Welcome is shown like follows if connection info to Database is correct one.
[9] This is ownCloud main page. It's possible to use ownCloud as cloud storage.
Matched Content