大佬教程收集整理的这篇文章主要介绍了CentOS 7安装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
[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
[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
以上是大佬教程为你收集整理的CentOS 7安装ownCloud全部内容,希望文章能够帮你解决CentOS 7安装ownCloud所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。