CentOS 7安装ownCloud

前端之家收集整理的这篇文章主要介绍了CentOS 7安装ownCloud前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

CentOS 7安装ownCloud

ownCloud官网:https://owncloud.org/
ownCloud官方文档:https://doc.owncloud.org/

安装ownCloud

安装ownCloud 9,依赖于LNMP(环境)

  • 安装Apache

参考:http://blog.csdn.net/wh211212...

参考:http://blog.csdn.net/wh211212...
http://blog.csdn.net/wh211212...

  • 安装Mariadb

参考:http://blog.csdn.net/wh211212...

  • 安装ownCloud
  1. # install from EPEL
  2. [root@linuxprobe ~]# yum --enablerepo=epel -y install PHP-pear-MDB2-Driver-MysqLi PHP-pear-Net-Curl
  3. [root@linuxprobe ~]# wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d
  4. [root@linuxprobe ~]# yum -y install owncloud
  5. [root@linuxprobe ~]# systemctl restart httpd
  1. [root@linuxprobe ~]# MysqL -u root -p
  2. Enter password:
  3. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  4. [root@linuxprobe ~]# MysqL -u root -p
  5. Enter password:
  6. Welcome to the MariaDB monitor. Commands end with ; or \g.
  7. Your MariaDB connection id is 11
  8. Server version: 5.5.52-MariaDB MariaDB Server
  9.  
  10. Copyright (c) 2000,2016,Oracle,MariaDB Corporation Ab and others.
  11.  
  12. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  13.  
  14. MariaDB [(none)]> create database owncloud;
  15. Query OK,1 row affected (0.15 sec)
  16.  
  17. MariaDB [(none)]> grant all privileges on owncloud.* to owncloud@'localhost' identified by 'password';
  18. Query OK,0 rows affected (0.00 sec)
  19.  
  20. MariaDB [(none)]> flush privileges;
  21. Query OK,0 rows affected (0.00 sec)
  22.  
  23. MariaDB [(none)]> exit
  24. Bye

注:如果系统开启selinux,需设置以下操作:

  1. [root@linuxprobe ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/apps
  2. [root@linuxprobe ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/config
  3. [root@linuxprobe ~]# restorecon /var/www/html/owncloud/apps
  4. [root@linuxprobe ~]# restorecon /var/www/html/owncloud/config

  • 如果连接到数据库的信息是正确的,欢迎如下所示:

  • 这是ownCloud主页,可以使用ownCloud作为云存储。

https://doc.owncloud.org/serv...

猜你在找的CentOS相关文章