Install ownCloud in CentOS 7

Source: Internet
Author: User

Install ownCloud in CentOS 7

OwnCloud Official Website: https://owncloud.org/
OwnCloud official documentation: https://doc.owncloud.org/

Install ownCloud

Installing ownCloud 9 depends on LNMP (Environment)

  • Install Apache

Reference: http://blog.csdn.net/wh211212/article/details/52982917

  • Install php

Reference: http://blog.csdn.net/wh211212/article/details/52994505
Http://blog.csdn.net/wh211212/article/details/70208130

  • Install Mariadb

Reference: http://blog.csdn.net/wh211212/article/details/53129488

  • Install 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
  • Add users and databases for ownCloud in MariaDB.
[root@linuxprobe ~]# mysql -u root -pEnter password:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)[root@linuxprobe ~]# mysql -u root -pEnter password:Welcome to the MariaDB monitor.  Commands end with ; or \g.Your MariaDB connection id is 11Server version: 5.5.52-MariaDB MariaDB ServerCopyright (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)]> exitBye

NOTE: If selinux is enabled, you need to set the following operations:

[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
  • Client Access URLhttp: // 10.1.1.53/owncloud:

  • If the information for connecting to the database is correct, welcome to the following:

  • This is the ownCloud homepage. You can use ownCloud as the cloud storage.

Https://doc.owncloud.org/server/9.1/user_manual/files/access_webdav.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.