CentOS 7安裝ownCloud
ownCloud官網(wǎng):https://owncloud.org/
ownCloud官方文檔:https://doc.owncloud.org/
安裝ownCloud
安裝ownCloud 9,依賴于LNMP(環(huán)境)
- 安裝Apache
- 安裝php
參考:http://blog.csdn.net/wh211212/article/details/52994505
http://blog.csdn.net/wh211212/article/details/70208130
- 安裝Mariadb
- 安裝ownCloud
# install from EPEL
[root@linuxprobe ~]# yum --enablerepo=epel -y install php-pear-MDB2-Driver-mysqli php-pear-Net-Curl
[root@linuxprobe ~]# wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d
[root@linuxprobe ~]# yum -y install owncloud
[root@linuxprobe ~]# systemctl restart httpd
- 在MariaDB中為ownCloud添加用戶和數(shù)據(jù)庫。
[root@linuxprobe ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@linuxprobe ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 5.5.52-MariaDB MariaDB Server
Copyright (c) 2000, 2016, 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.15 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)]> exit
Bye
注:如果系統(tǒng)開啟selinux,需設(shè)置以下操作:
[root@linuxprobe ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/apps
[root@linuxprobe ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/config
[root@linuxprobe ~]# restorecon /var/www/html/owncloud/apps
[root@linuxprobe ~]# restorecon /var/www/html/owncloud/config
這里寫圖片描述
- 如果連接到數(shù)據(jù)庫的信息是正確的,歡迎如下所示:
這里寫圖片描述
-
這是ownCloud主頁,可以使用ownCloud作為云存儲。
這里寫圖片描述
https://doc.owncloud.org/server/9.1/user_manual/files/access_webdav.html