rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key

curl -L https://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -o /etc/yum.repos.d/ownCloud.repo

yum clean expire-cache
yum install -y owncloud-files

yum install -y mariadb-server

systemctl start mariadb
systemctl enable mariadb
mysql -u root 

MariaDB [(none)]> CREATE DATABASE owncloud;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit

yum install -y httpd
systemctl start httpd
systemctl enable httpd

[[email protected] ~]# firewall-cmd --permanent --add-service=http
[[email protected] ~]# firewall-
firewall-cmd          firewall-offline-cmd
[[email protected] ~]# firewall
firewall-cmd          firewalld             firewall-offline-cmd
[[email protected] ~]# firewall-cmd --reload

yum install -y epel-release
yum update -y
yum install -y owncloud

This version of ownCloud requires at least PHP 5.6.0
You are currently running 5.4.16. Please update your PHP version.

yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -y yum-utils
yum-config-manager --enable remi-php56

yum update -y

php --version

yum install -y php-gd php-intk php-mbstring php-process.x86_64 php-xml

yum install -y policycoreutils-python

chcon -R -t httpd_sys_rw_content_t /var/www/html/owncloud/

yum install php-mysql