Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Import open source cloud storage ownCloud

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1 theoretical basis

1.1 Project introduction

OwnCloud is an open source cloud project based on Linux, which allows users to access the cloud server through browser or WebDAV for various management tasks. OwnCloud supports multiple device access, and users can easily synchronize personal devices with important data stored on the server, such as files, schedules, address books, bookmarks, and so on.

1.2 minimum system configuration

Server OS requires PHP 5.4or greater (5.6recommended)

Fully packaged:

-Debian 8

-RHEL / CENTOS 6.6,7

-Ubuntu 14.04 LTS and 15.10

-SLES 11 SP4, SLES 12 SP1

Webserver: Apache

Databases: MySQL 5.5, Maria 10.0 or higher, PostgreSQL 9.1.19 or higher, Oracle 11g + (Oracle is Enterprise Subscription only)

Apache: 2.2 or 2.4 (2.4 is recommended)

Hypervisors: Hyper-V, VMware ESX, Xen, KVM

2 practice part

2.1 Environment configuration

Ipaddress = 10.168.0.156

OS = CentOS 6.8

2.2 Apache partial configuration

2.2.1 yum Source installation

Yum install-y httpd

2.2.2 start the service and configure boot

/ etc/init.d/httpd startchkconfig httpd on

2.2.3 Open the relevant port of httpd

Vim / etc/sysconfig/iptables

Add the following line (copy ssh from 22 to 80)

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 80-j ACCEPT

Restart the firewall service

/ etc/init.d/iptables restart

2.3 MySQL partial configuration

2.3.1 configure MySQL Feed

Vim / etc/yum.repos.d/MySQL.repo

Enter the following configuration:

[mysql-5.5-community] name=mysql-5.5-communitybaseurl= http://repo.mysql.com/yum/mysql-5.5-community/el/6/x86_64/gpgcheck=1gpgkey=http://repo.mysql.com/RPM-GPG-KEY-mysql

2.3.2 install MySQL related packages

Yum install-y mysql-community-server mysql-community-devel mysql-community-client

2.3.3 start the database and configure boot

/ etc/init.d/mysqld startchkconfig mysqld on

2.3.4 initialize the database

Mysql_secure_installation

2.3.5 create a database and authorize

Mysql-uroot-p

Enter the following configuration:

CREATE DATABASE IF NOT EXISTS owncloud;GRANT ALL PRIVILEGES ON owncloud.* TO 'username'@'localhost' IDENTIFIED BY' password';flush privileges

2.3.6 Open the relevant port of mysql (optional)

Vim / etc/sysconfig/iptables

Add the following line (copy 22 of ssh to 3306)

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3306-j ACCEPT

Restart the firewall service

/ etc/init.d/iptables restart

2.3.7 Test connection

Mysql-uusername-ppassword

2.4 PHP partial configuration

2.4.1 install the SCL source

Yum install centos-release-SCL

2.4.2 install PHP related packages

Yum install-y php54 php54-php php54-php-gd php54-php-mbstring php54-php-mysqlnd php54-php-ldap

2.4.3 configure PHP

Cp / opt/rh/php54/root/etc/php.ini / opt/rh/php54/root/etc/php.ini.defaultln-s / opt/rh/php54/root/etc/php.ini / etc/php.inivim / etc/php.ini

Modify the configuration as follows:

# configuration for PHP MySQL moduleextension=pdo_ mysql.so[mysql] mysql.allow_local_infile=Onmysql.allow_persistent=Onmysql.cache_size=2000mysql.max_persistent=-1mysql.max_links=-1mysql.default_port=mysql.default_socket=/var/lib/mysql/mysql.sockmysql.default_host=mysql.default_user=mysql.default_password=mysql.connect_timeout=60mysql.trace_mode=Off

2.4.4 restart the apache service

/ etc/init.d/httpd restart

2.4.5 Test PHP

Echo'> / var/www/html/phpinfo.php

2.4.6 browser confirmation

Http://10.168.0.156/phpinfo.php

The display is as follows:

2.5 install the project source package

2.5.1 download the source package

Cd ~ wget https://download.owncloud.org/community/owncloud-9.1.1.zip

2.5.2 decompress the source package

Unzip owncloud-9.1.1.zip

2.5.3 configure source code package

Cp-r owncloud / var/www/chown-R apache:apache / var/www/owncloudchmod-R 700 / var/www/owncloud

2.5.4 configuring apache

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

The configuration is as follows:

Alias / owncloud "/ var/www/owncloud/" Options + FollowSymlinks AllowOverride All Dav off SetEnv HOME / var/www/owncloud SetEnv HTTP_HOME / var/www/owncloud

2.5.5 restart the Apache service

/ etc/init.d/httpd restart

2.6 initialize configuration and login

2.6.1 configure data directories and database connections

Http://10.168.0.156/owncloud/

2.6.2 Login to use

=

Official documents:

Https://owncloud.com

Installation documentation

Https://doc.owncloud.org/

Https://doc.owncloud.org/server/9.1/admin_manual/installation/index.html

Https://doc.owncloud.org/server/9.1/ownCloud_Server_Administration_Manual.pdf

installation wizard

Https://owncloud.org/install/

Project yum source

Https://download.owncloud.org/download/repositories/stable/owncloud/

OwnCloud source code package

Https://owncloud.org/install/#edition

Https://owncloud.org/changelog/

Source code configuration

Https://doc.owncloud.org/server/9.1/admin_manual/installation/source_installation.html

Database configuration:

Https://doc.owncloud.org/server/9.1/admin_manual/configuration_database/linux_database_configuration.html#parameters

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report