CentOS 7.6 安装 owncloud 10.1.1

操作系统:CentOS 7.6

官方链接:https://doc.owncloud.org/server/10.1/admin_manual/installation/manual_installation.html#centos-7

(官方有说明全程yum安装,需要安装官方yum仓库,见下面链接:)
(https://download.owncloud.org/download/repositories/stable/owncloud/index.html)


安装php7、mariadb、httpd等应用
yum install -y -q epel-release http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-utils \
yum-config-manager –enable remi-php72 \
yum update -y -q \
yum install -y -q \
httpd mariadb-server php72 php72-php php72-php-gd \
php72-php-mbstring php72-php-mysqlnd php72-php-cli \
php72-pecl-apcu redis php72-php-pecl-redis php72-php-common php72-php-opcache \
php72-php-ldap mariadb-server mariadb \
scl enable php72 bash

部署owncloud文件
cd /var/www/html/
wget https://download.owncloud.org/community/owncloud-10.1.1.tar.bz2
tar jxvf owncloud-10.1.1.tar.bz2
chmod -R 777 ./owncloud/

新建owncloud的Apache配置
vim /etc/httpd/conf.d/owncloud.conf
=======================================================
Alias /owncloud “/var/www/html/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>
=======================================================

确认apache已加载下述module(/etc/httpd/conf.modules.d/00-base.conf):
headers
env
dir
mime
unique_id

重启apache
systemctl restart httpd

访问http://ip/owncloud
填入新创建的用户密码,选择mysql数据库及相关信息,点击安装完成即可登录。