CentOS7 install OwnCloud7 Private Cloud

Source: Internet
Author: User
Tags owncloud
OwnCloud, a file host service software, is the cloud storage we usually use. However, this is to build our own private cloud on the server of our host, and OwnCloud is released using the AGPLv3 protocol. This project is based on PHP and SQLite, MySQL, Oracle or PostgreSQL databases, so it can run on all platforms. This tutorial will teach you how to install OwnCloud7 on CentOS7. Install CentOS7 by default in initial settings

OwnCloud, a file host service software, is the cloud storage we usually use. However, this is to build our own private cloud on the server of our host, and OwnCloud is released using the AGPLv3 protocol. This project is based on PHP and SQLite, MySQL, Oracle or PostgreSQL databases, so it can run on all platforms. This tutorial will teach you how to install OwnCloud 7 on CentOS 7.

Install the CentOS 7 default minimum configuration and then install all current updates:

Yum-y update

Next, we need to install PHP, Apache Web Server, MySQL server, and PHP extension:

Yum install httpd php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo wget vim

Set SELinux to allow owncloud to write data:

Setsebool-P httpd_unified 1

Firewall settings:

Firewall-cmd -- permanent -- zone = public -- add-service = http
Firewall-cmd -- permanent -- zone = public -- add-service = https
Firewall-cmd -- reload

Run the following command to start Apache:

Systemctl start httpd. service

Run this command to start MariaDB:

Systemctl start mariadb. service

The auto-start service starts in the system:

Systemctl enable httpd. service
Systemctl enable mariadb. service

First, we need to download owncloud from the official website. Run the following command:

Wget https://download.owncloud.org/community/owncloud-7.0.0.tar.bz2

Decompress the file:

Tar-jxvf owncloud-7.0.0.tar.bz2-C/var/www/html/

Next we need to set the read and write permissions for the file directory on the Web server:

Chown-R apache. apache/var/www/html/owncloud/

Configure the MariaDB instance in the database:

Mysql_secure_installation;

During the setting process, enter Y and press enter.

Create owncloud databases and users. Log on to the MySQL server and run the following command:

Mysql-u root-p

Next, we need to create owncloud users and permissions:

 

Mysql> create database owncloud;

Mysql> create user 'ownercloud' @ 'localhost' identified by 'somedatabasepassword ';

Mysql> grant all on owncloud. * to 'ownercloud' @ 'localhost ';

Mysql> flush privileges;

Mysql> quit;

Open your favorite editor to edit the owncloud external configuration file. I use vim:

Vim/etc/httpd/conf. d/owncloud. conf

Add the following lines to the configuration file:


Alias/owncloud/var/www/html/owncloud


Options Indexes FollowSymLinks
AllowOverride All
Order allow, deny
Allow from all

Start Apache and MariaDB services:

Systemctl start httpd. service
Systemctl start mariadb. service

Owncloud configuration open your favorite browser to access http: // your ip address/owncloud or http: // your domain name/owncloud. It displays the initial owncloud settings page. Must be configured.

  • This article is from: Linux Technical Network
  • Link: http://www.ahlinux.com/centos/22624.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.