# Plesk(Ubuntu 18.04 LTS)에 Discourse 설치하기

**URL:** https://meta.discourse.org/t/install-discourse-on-plesk-ubuntu-18-04-lts/138196
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [1월 10, 2020, 12:12오전 UTC](https://meta.discourse.org/t/install-discourse-on-plesk-ubuntu-18-04-lts/138196 "2020-01-10T00:12:10Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Vault1337](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@Vault1337](https://meta.discourse.org/u/Vault1337)
#### Post date: [1월 10, 2020, 12:12오전 UTC](https://meta.discourse.org/t/install-discourse-on-plesk-ubuntu-18-04-lts/138196/1 "2020-01-10T00:12:10Z")

</div>

안녕하세요 여러분,

Plesk Onyx (Ubuntu 14.04)용 설치 튜토리얼을 따라갔지만 많은 문제에 부딪혔습니다.

이제 제 Plesk에서 모든 것이 정상 작동하므로, 새로운 튜토리얼(Plesk 메일 서버를 이용한 메일 설정)을 작성하기로 결정했습니다.

**1. Plesk에서 옵션 설정**

- Plesk에서 도메인/서브도메인 생성.  

- Let’s Encrypt 인증서 활성화.  

- 메일 계정 생성.

**2. Docker 설치**

- 확장 프로그램(Extensions)으로 이동.  

- Docker를 검색하여 확장 프로그램을 설치합니다. 이제 사이드 메뉴에 Docker 메뉴 항목이 표시됩니다.  

**3. Discourse 설치**

> 이제 Plesk 호스팅 중인 서버에 대한 ssh 접근 권한이 필요합니다.  
> 예시 데이터:  
> _도메인: forum.domain.tld_  
> _이메일: [mail@domain.tld](mailto:mail@domain.tld)_  
> _이메일: password123_

- git 다운로드.

- 이제 setup 스크립트를 편집해야 합니다.

- 아래 부분으로 스크롤합니다:  

- 그리고 이것으로 변경합니다:  

- STRG+X를 눌러 종료한 후, Y를 입력하고 엔터를 눌러 파일을 저장합니다.

- setup 실행.

- 이제 몇 가지 질문에 답합니다.

- 시간이 좀 걸립니다. 커맨드 라인으로 돌아올 때까지 기다리세요. Docker 컨테이너가 시작되지 않습니다. 괜찮습니다. 이제 Plesk와 함께 작동하도록 app.yml을 변경합니다.

- 포트 변경 및 두 줄을 주석 처리합니다. 변경 전:  

- 변경 후:  

- STRG+X를 눌러 종료한 후, Y를 입력하고 엔터를 눌러 파일을 저장합니다.

- 이제 컨테이너를 다시 빌드할 시간입니다.

1. docker 에뮬레이션의 hosts 파일 변경

- 이제 discourse가 Plesk 메일 서버를 사용할 수 있도록 hosts 파일을 변경합니다. Docker 컨테이너에 진입합니다.

> `./launcher enter app`

- 커맨드 라인이 다시 나타날 때까지 기다립니다. 이제 nano를 설치합니다.

> `apt-get install nano`

- hosts 파일을 변경해 보겠습니다.

> `nano /etc/hosts`

- 마지막 줄을 추가합니다:  
 ![hosts](https://global.discourse-cdn.com/meta/original/3X/b/6/b683ff0bcb1d11414dad53353944c7f7527b98b4.png)
- STRG+X를 눌러 종료한 후, Y를 입력하고 엔터를 눌러 파일을 저장합니다.
- 컨테이너에서 나옵니다.

> `exit`

1. Plesk 프록시 설정 변경

- 서브도메인으로 이동하여 Docker 프록시 규칙(Docker Proxy Rules)을 클릭합니다.  
 ![plesk_docker_proxy](https://global.discourse-cdn.com/meta/original/3X/b/1/b1b1c38aeb2ef1df7445e05e5f80bed23109a036.png)
- 새 규칙 추가  
 ![plesk_docker_proxy_1](https://global.discourse-cdn.com/meta/original/3X/a/0/a0155f7ab3fb7434a502aa4d8fdb19b41fe7d407.png)
- 다음 사이트는 이렇게 보아야 합니다:  
 ![plesk_docker_proxy_2](https://global.discourse-cdn.com/meta/original/3X/f/9/f92fc76247af5abc32824caf469bfa7cec2d9637.png)
- Okay를 누르면, 개요는 이렇게 보아야 합니다:  
 ![plesk_docker_proxy_3](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/d/0/d08105ba152c8c0483a711094399271c722d349a_2_690x34.png)

누군가에게 도움이 되길 바랍니다.

독일에서 인사드립니다.

PS: Google 번역기에 감사드립니다 😃

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-on-plesk-ubuntu-18-04-lts/138196)._
