Setting up owncloud on RHEL7 / CENTOS7
Requirements:
Minimal server
Required packages:
yum install httpd php php-mysql mariadb-server mariadb php-dom php-mbstring php-gd php-pdo wget
optional:
mc bash-completion
Disable selinux
/etc/selinux/config:
SELINUX=permissive
Setup Firewall – choose http/https or both
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd –reload
Apache
systemctl start httpd.service
systemctl enable httpd.service
Mariadb
systemctl start mariadb.service
systemctl enable mariadb.service
Owncloud
Download
wget https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2
Extract + set owner to apache:apache
Create DB, all perms to serviceaccount
Set up vhost
Set up certificate
Edit configfile (typ: /var/www/html/owncloud/config/config.php