서버 설정 · 5 min read · Nov 26, 2025
완벽한 서버 - Ubuntu 17.04 (Zesty Zapus)와 Apache, PHP, MySQL, PureFTPD, BIND, Postfix, Dovecot 및 ISPConfig 3.1 - 페이지 3
16. Roundcube 웹메일 설치
Roundcube 웹메일을 설치하려면 다음을 실행하십시오:
apt-get -y install roundcube roundcube-core roundcube-mysql roundcube-plugins roundcube-plugins-extra javascript-common libjs-jquery-mousewheel php-net-sieve tinymce설치 프로그램은 다음 질문을 할 것입니다:
Configure database for roundcube with dbconfig-common? <-- 예
MySQL application password for roundcube: <-- Enter 키를 누르십시오
그런 다음 RoundCube apache 구성 파일을 편집하십시오.
nano /etc/apache2/conf-enabled/roundcube.conf그리고 Alias 줄 앞의 #을 제거하고 “
# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
Alias /roundcube /var/lib/roundcube
[...]
AddType application/x-httpd-php .php
[...] 그리고 apache를 재시작하십시오
service apache2 restart그런 다음 RoundCube config.inc.php 구성 파일을 편집하십시오:
nano /etc/roundcube/config.inc.php그리고 기본 호스트를 localhost로 변경하십시오:
$config['default_host'] = 'localhost';이것은 Roundcube가 로그인 양식에 서버 이름 입력 필드를 표시하지 않도록 합니다.
17. ISPConfig 3.1 설치
최신 릴리스 버전에서 ISPConfig 3를 설치하려면 다음을 수행하십시오:
cd /tmp
wget -O ispconfig.tar.gz https://git.ispconfig.org/ispconfig/ispconfig3/repository/archive.tar.gz?ref=stable-3.1
tar xfz ispconfig.tar.gz
cd ispconfig3*/install/다음 단계는
php -q install.php를 실행하는 것입니다. 이것은 ISPConfig 3 설치 프로그램을 시작합니다. 설치 프로그램은 Postfix, Dovecot 등과 같은 모든 서비스를 자동으로 구성합니다.
# php -q install.php
--------------------------------------------------------------------------------
_____ ___________ _____ __ _ ____
|_ _/ ___| ___ \ / __ \ / _(_) /__ \
| | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ /
| | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ |
_| |_\/__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \
\___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/
__/ |
|___/
-------------------------------------------------------------------------------->> Initial configurationOperating System: Ubuntu 17.04 (Zesty Zapus)Following will be a few questions for primary configuration so be careful.
Default values are in [brackets] and can be accepted with .
Tap in "quit" (without the quotes) to stop the installer. Select language (en,de) [en]: <-- Enter 키를 누르십시오Installation mode (standard,expert) [standard]: <-- Enter 키를 누르십시오Full qualified hostname (FQDN) of the server, eg server1.domain.tld [server1.canomi.com]: <-- Enter 키를 누르십시오MySQL server hostname [localhost]: <-- Enter 키를 누르십시오MySQL server port [3306]: <-- Enter 키를 누르십시오MySQL root username [root]: <-- Enter 키를 누르십시오MySQL root password []: <-- MySQL root 비밀번호를 입력하십시오MySQL database to create [dbispconfig]: <-- Enter 키를 누르십시오MySQL charset [utf8]: <-- Enter 키를 누르십시오Configuring Postgrey
Configuring Postfix
Generating a 4096 bit RSA private key
.......................................................................++
........................................................................................................................................++
writing new private key to 'smtpd.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- 2자리 국가 코드를 입력하십시오
State or Province Name (full name) [Some-State]: <-- 주의 이름을 입력하십시오
Locality Name (eg, city) []: <-- 도시를 입력하십시오
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- 회사 이름을 입력하거나 Enter 키를 누르십시오
Organizational Unit Name (eg, section) []: <-- Enter 키를 누르십시오
Common Name (e.g. server FQDN or YOUR name) []: <-- 서버 호스트 이름을 입력하십시오, 제 경우에는: server1.example.com
Email Address []: <-- Enter 키를 누르십시오
Configuring Mailman
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring BIND
Configuring Jailkit
Configuring Pureftpd
Configuring Apache
Configuring vlogger
Configuring Metronome XMPP Server
writing new private key to 'localhost.key'
-----
Country Name (2 letter code) [AU]: <-- 2자리 국가 코드를 입력하십시오
Locality Name (eg, city) []: <-- 도시를 입력하십시오
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- 회사 이름을 입력하거나 Enter 키를 누르십시오
Organizational Unit Name (eg, section) []: <-- Enter 키를 누르십시오
Common Name (e.g. server FQDN or YOUR name) [server1.canomi.com]: <-- 서버 호스트 이름을 입력하십시오, 제 경우에는: server1.example.com
Email Address []: <-- Enter 키를 누르십시오Configuring Ubuntu Firewall
Configuring Fail2ban
[INFO] service OpenVZ not detected
Configuring Apps vhost
Installing ISPConfig
ISPConfig Port [8080]:Admin password [admin]:Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) [y]: <-- Enter 키를 누르십시오Generating RSA private key, 4096 bit long modulus
.......................++
................................................................................................................................++
e is 65537 (0x10001)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- 2자리 국가 코드를 입력하십시오
State or Province Name (full name) [Some-State]: <-- 주의 이름을 입력하십시오
Locality Name (eg, city) []: <-- 도시를 입력하십시오
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- 회사 이름을 입력하거나 Enter 키를 누르십시오
Organizational Unit Name (eg, section) []: <-- Enter 키를 누르십시오
Common Name (e.g. server FQDN or YOUR name) []: <-- 서버 호스트 이름을 입력하십시오, 제 경우에는: server1.example.com
Email Address []: <-- Enter 키를 누르십시오Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: <-- Enter 키를 누르십시오
An optional company name []: <-- Enter 키를 누르십시오
writing RSA key
Configuring DBServer
Installing ISPConfig crontab
no crontab for root
no crontab for getmail
Detect IP addresses
Restarting services ...
Installation completed.설치 프로그램은 모든 기본 서비스를 자동으로 구성하므로 수동 구성은 필요하지 않습니다.
그 후 http(s)://server1.example.com:8080/ 또는 http(s)://192.168.1.100:8080/에서 ISPConfig 3에 접근할 수 있습니다 (HTTP 또는 HTTPS는 설치 중 선택한 것에 따라 다릅니다). 사용자 이름 admin과 비밀번호 admin으로 로그인하십시오 (첫 로그인 후 기본 비밀번호를 변경해야 합니다):
시스템이 이제 사용 준비가 완료되었습니다.
18. 추가 노트
18.1 OpenVZ
방금 이 튜토리얼에서 설정한 Ubuntu 서버가 OpenVZ 컨테이너(가상 머신)인 경우, 호스트 시스템에서 다음을 수행해야 합니다 (OpenVZ 컨테이너의 ID가 101이라고 가정합니다 - 시스템에서 올바른 VPSID로 교체하십시오):
VPSID=101
for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE
do
vzctl set $VPSID --capability ${CAP}:on --save
done18.2 이 튜토리얼의 가상 머신 이미지 다운로드
이 튜토리얼은 VMWare 및 Virtualbox와 호환되는 ovf/ova 형식의 사용 준비가 완료된 가상 머신 이미지로 제공됩니다. 가상 머신 이미지는 다음 로그인 세부정보를 사용합니다:
SSH / 셸 로그인
사용자 이름: administrator
비밀번호: howtoforge
이 사용자는 sudo 권한이 있습니다.
ISPConfig 로그인
사용자 이름: admin
비밀번호: admin
MySQL 로그인
사용자 이름: root
비밀번호: howtoforge
VM의 IP는 192.168.1.100이며, /etc/network/interfaces 파일에서 변경할 수 있습니다. 위의 모든 비밀번호를 변경하여 가상 머신을 안전하게 보호하십시오.
19. 링크
- Ubuntu: http://www.ubuntu.com/
- ISPConfig: http://www.ispconfig.org/
새 게시물을 받은 편지함에서 받기
스팸은 없습니다. 언제든지 구독 해지 가능합니다.