Nextcloud 설치하기

http://Nextcloud auf Ubuntu Server 22.04 LTS mit nginx, PostgreSQL/MariaDB, PHP, Let’s Encrypt, Redis und Fail2ban

 

 

 

nextcloud 를 설치하자

 

비실이

 

2018. 2. 14. 10:12

 

 이웃추가

 

본문 기타 기능

 

nextcloud 는 

owncloud 의 초기 개발자가 

owncloud 를 포기하고 포크해서 개발하고 있는 오픈소스 클라우드 스토리지 이다.

 

원래 owncloud를 쓰고있었는데

너무 문제가 많이발생해서 nextcloud 를 설치해보려고 한다.

안드로이드앱까지 결제했는데 ㅠㅠ

다행히 nextcloud 는 앱이 무료인듯하다.

 

먼저 말해두는데

https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html

위 링크대로 설치를 진행할 생각이다.

 

시스템 요구 사항

메모리

nextcloud 서버를 실행하기 위한 메모리 요구 사항은 

사용자 및 파일수와 서버 활동량에 따라 크게 다르다

최소 128 메가  램이상

보통 512메가 램 이상을 권장함

 

nextcloud 실행을 위한 권장 설정

최적의 성능, 안정성, 지원 및 전체 기능을 위해서 :

레드햇 리눅스 7/ 우분투 16.04 lts

mysql/ mariadb

php7.0, 7.1, 7.2

apache 2.4 with mod_php

 

지원하는 플랫폼

Server: 

Linux (Debian 7, SUSE Linux Enterprise Server 11 SP3 & 12, Red Hat Enterprise Linux/CentOS 6.5 and 7 (7 is 64-bit only), Ubuntu 14.04 LTS, 16.04 LTS)

Web server: 

Apache 2 (mod_php, php-fpm) or Nginx (php-fpm)

Databases: 

MySQL/MariaDB 5.5+; PostgreSQL 9, 10; Oracle 11g (currently only possible if you contact us <https://nextcloud.com/enterprise> as part of a subscription)

PHP 5.6 + required (up to PHP 7.2)

Hypervisors: 

Hyper-V, VMware ESX, Xen, KVM

Desktop: 

Windows XP SP3 (EoL Q2 2015), Windows 7+, Mac OS X 10.7+ (64-bit only), Linux (CentOS 6.5, 7 (7 is 64-bit only), Ubuntu 12.04 LTS, 14.04 LTS, 14.10, Fedora 20, 21, openSUSE 12.3, 13, Debian 7 & 8).

Mobile apps: 

iOS 7+, Android 4+

Web browser: 

IE11+, Microsoft Edge, Firefox 14+, Chrome 18+, Safari 7+

 

mysql/mariadb 를 위한 데이터베이스 요구사항

너가 만일 nextcloud 를 mysql/mariadb 데이터베이스와 함께 실행시킬거라면 

다음의 요구사항을 따라야한다.

Disabled or BINLOG_FORMAT = MIXED configured Binary Logging

InnoDB storage engine (MyISAM is not supported)

“READ COMMITED” transaction isolation level

(https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#db-transaction-label 위 링크를 보

 

Database configuration — Nextcloud 13 Administration Manual 13 documentation

 

« Converting database type Enabling MySQL 4-byte support » Database configuration Nextcloud requires a database in which administrative data is stored. The following databases are currently supported: MySQL / MariaDB PostgreSQL Oracle The MySQL or MariaDB databases are the recommended da

 

docs.nextcloud.com

 

라)

 

이모티콘 utf8 4byte 를 데이터베이스에서 지원하려면 

 

CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

 

과 같은 명령어를 써주고 

추가적으로 innodb 셋팅으로

 

[mysqld] innodb_large_prefix=on innodb_file_format=barracuda innodb_file_per_table=true

 

해줘야한다

자세한건 

https://docs.nextcloud.com/server/13/admin_manual/configuration_database/mysql_4byte_support.html

위 링크 참조

 

Enabling MySQL 4-byte support — Nextcloud 13 Administration Manual 13 documentation

 

« Database configuration BigInt (64bit) identifiers » Enabling MySQL 4-byte support In order to use Emojis (textbased smilies) on your Nextcloud server with a MySQL database, the installation needs to be tweaked a bit. Update your Nextcloud server to Nextcloud 11 or later. Make sure the

 

docs.nextcloud.com

 

 

데이터베이스 설정은 

https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html

 

Database Configuration — Nextcloud 12 Server Administration Manual 12 documentation

 

« Converting Da... Enabling MySQ... » Database Configuration ¶ Nextcloud requires a database in which administrative data is stored. The following databases are currently supported: MySQL / MariaDB PostgreSQL Oracle The MySQL or MariaDB databases are the recommended database engines

 

docs.nextcloud.com

 

위 링크를 참조하라

 

일단 nextcloud 를 설치하기 전에 

미리 설치해야 할 것들이 있다.

 

Upgrade to PHP 7.0 on Ubuntu

 

This tutorial talks you through the steps required to upgrade to PHP 7 on Ubuntu 14.04, using Apache 2.4 as your web server.

 

www.stewright.me

 

 

https://www.stewright.me/2016/03/upgrade-php-7-0-ubuntu/

 

먼저 apt source 를 추가해주자 

 

sudo add-apt-repository ppa:ondrej/php

 

추가 해 줬으면 이제 apt update를 해주고

 

apt-get install apache2 mariadb-server libapache2-mod-php7.0 apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip

 

위 명령어로 필요한 프로그램을 설치해주자

 

마리아db 서버는 

 

sudo mysql_secure_installation

 

따로 비밀번호를 설정해주자

https://ohjongsung.io/2017/06/04/ubuntu-16-04-1-lts%EC%97%90-maria-db-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0

 

Ubuntu 16.04.1 LTS에 Maria DB 설치하기

 

널리 알려진 것처럼 Maria DB는 MySQL 커뮤니티 버전을 기반으로 만든 DB 이다. 최근에는 MySQL의 완벽한 드롭인 대체품으로 인정받고 있다. 이 글을 작성해서 Ubuntu Server에 Maria DB를 설치한 경험을 공유한다.

 

ohjongsung.io

 

위 링크 참조

 

이제 netxcoud 를 다운로드 하자 

https://nextcloud.com/install/

 

Install – Nextcloud

 

Nextcloud is an open source, self-hosted file share and communication platform. Access & sync your files, contacts, calendars & communicate and collaborate across your devices. You decide what happens with your data, where it is and who can access it!

 

nextcloud.com

 

 

나는 미리 다운로드 해놓고 ftp로 넣어줌

 

unzip nextcloud-13.0.0.zip 

 

명령어로 압축을 풀어줌

 

 

이제 압축풀은 디렉토리를 웹서버 도큐먼트 루트에 넣어주자

 

cp -r nextcloud /path/to/webserver/document-root

 

위에는 경로가 저렇게 적혀있지만 

보통 아파치는 기본 /var/www 로 되어있으니 

 

cp -r nextcloud /var/www

 

로 써주자

 

아파치 웹서버 설정

 

vi /etc/apache2/sites-available/nextcloud.conf

 

 

Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>

 

위 내용을 추가해주자

 

그리고나서 

 

ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf

 

명령어로 

/etc/apache2/sites-enabled 에 심볼릭 링크를 추가해주자 

 

추가적인 아파치 설정

nextcloud가 정확히 작동하기 위해서

우리는 mod-rewrite 모듈이 필요하다 

 

a2enmod rewrite

 

위 커맨드로 실행해주자

 

a2enmod headers a2enmod env a2enmod dir a2enmod mime

 

위 모듈들도 필요함 전부 실행

 

만일 표준 mod_php 대신 mod_fcgi 를 실행하고 있다면 

 

a2enmod setenvif

 

도 실행하라고 한다.

근데 뭔지 모르니까 안할래

 

You must disable any server-configured authentication for Nextcloud, as it uses Basic authentication internally for DAV services. If you have turned on authentication on a parent folder (via e.g. an AuthType Basic directive), you can turn off the authentication specifically for the Nextcloud entry. Following the above example configuration file, add the following line in the <Directory> section:

무슨 말인지 모르겟다

 

service apache2 restart

 

아파치 재시작!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

d

 

PC-모바일 어디서나 수정가능한으로 쓴 글입니다

 

댓글 0 공유하기

 

비실이

 

엄밀함 보다 이해하는 것이 중요하다. 서두르지 말고 쉬지도 말라 노력은 결과를 위한 과정에 불과하다.

 

이웃추가

 

이 블로그 게시판 카테고리 글

 

자바스크립트의 발전에 대하여...

 

2018. 3. 13.

 

일렉트론과 NW.js 를 공부하기에 앞서서

 

2018. 3. 9.

 

wsl 로 리눅스 응용프로그램을 실행해보자

 

2018. 2. 24.

 

16 진수를 사용하는 이유

 

2018. 2. 19.

 

nextcloud13 PHP Opcache가 제대로 설정되어 있지 않습니다.

 

2018. 2. 18.

 

ubuntu 17.10 mariadb-server 설치

 

2018. 2. 17.

 

nextcloud external storage local 권한 오류

 

2018. 2. 14.

 

nextcloud 를 설치하자

 

2018. 2. 14.

 

우분투 apt 저장소 변경

 

2018. 2. 14.

 

lubuntu 재설치 오류

 

2018. 2. 14.

 

윈도우10 wsl 에서 gui를 이용해보자

 

2018. 2. 13.

 

BIOS 와 CMOS 차이

 

2018. 2. 7.

 

c언어 system calll function 과 library call function에 대해서 알아보자

 

2018. 2. 4.

 

구형 넷북에 owncloud를 설치해서 nas로 만들자

 

2018. 2. 3.

 

vs code 에서 wsl bash 로 oh my zsh을 사용해서 gcc 를 사용해보자

 

2018. 2. 2.

 

'IT > Cloud' 카테고리의 다른 글

LEMP Stack 설치  (0) 2019.02.05
Nextcloud 설치하기 2(총망라)  (0) 2019.02.02
NextCloud 큰 파일 업로드  (0) 2018.06.11
조대협의블로그(자바, 클라우드 관련) - 글 추천  (0) 2018.03.09