Building an open source storage owncloud Environment

Source: Internet
Author: User
Tags owncloud

Building an open source storage owncloud Environment

Remember to deploy open source private storage owncloud environment once, in addition to download PC-side and mobile phone, others help you do a direct open.

Environment Centos7 Apache MySQL php5.6

Preparatory work

Centos7 Owncloud-10.0.7.zip

Shutting down the firewall

Systemctl Stop Firewalld

Systemctl Disable FIREWALLD

Turn off SELinux

Vi/etc/selinux/config

Put selinux=enforcing

Change into selinux=disabled

Or

Sed-i ' s/selinux=.*/selinux=disabled/g '/etc/selinux/config

Init 6 Restart

Install lamp environment

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

Launch Apache

Systemctl Restart Httpd.service

Start MySQL

Systemctl Restart Mariadb.service

Log in to MySQL and set up MySQL yourself, owncloud when installed

Log in and create databases and accounts and empower

Mysql

MariaDB [(none)]> use MySQL;

MariaDB [mysql]> CREATE DATABASE owncloud;

Change root account password to root

MariaDB [mysql]> Update mysql.user set Password=password (' root ') where user= "root" and host= "%";

MariaDB [mysql]> flush Privileges;

MariaDB [mysql]> exit;

Download the unzip installation file

Https://download.owncloud.org/community/owncloud-10.0.7.zip

Unzip Owncloud-10.0.7.zip

Copy the Web file to the Web site root and assign the right

Cp-r owncloud/*/var/www/html/

Chown-r apache.apache/var/www/html/

Then restart the Web Apache service

Systemctl Restart Httpd.service

Browser access to the server address

Access error

This version of OwnCloud requires at least PHP 5.6.0

You are currently running PHP 5.4.16. Please update your PHP version.

Tip PHP version is low, PHP version requires more than 5.6

Upgrade php5.4 to version 5.6, install PHP repository

RPM-UVH https://mirror.webtatic.com/yum/el7/epel-release.rpm

RPM-UVH https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

If you do not respond more than a few times

Delete the original php5.4

Yum Remove php-common-y

Install php5.6 add extensions as needed

Yum install-y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbst Ring

Restart the web environment

Systemctl Restart httpd

NETSTAT-NTLP # Check if service port is on, prompt no command # yum install net-tools-y installation

View PHP

# php-v

PHP 5.6.36 (CLI) (built:may 18 2018 04:51:01)

Accessing the Web interface again successfully

Set the Administrator account password

Fill in the database information below optional SQLite and MySQL, we choose MySQL to fill in the above settings, point installation completed, patient waiting

You can then log in via the Web, and you can download PC-side and phone-side direct open!!

Building an open source storage owncloud Environment

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.