서버 설정 · 6 min read · Jan 21, 2026
완벽한 서버 - Ubuntu 15.10 (Wily Werewolf)와 Apache, PHP, MySQL, PureFTPD, BIND, Postfix, Dovecot 및 ISPConfig 3 - 페이지 3
15 Roundcube 웹메일 설치
Roundcube 웹메일을 설치하려면 다음 명령어를 실행하세요:
apt-get 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? <-- Yes
Database type to be used by roundcube: <-- mysql
MySQL application password for roundcube: <-- Press enter
Password of the database's administrative user: <-- Enter your mysql root password here
그런 다음 RoundCube apache 구성 파일을 편집합니다.
nano /etc/apache2/conf-enabled/roundcube.conf첫 번째 2개의 alias 줄 앞의 #을 제거하고, 두 개의 다른 “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/program/js/tiny_mce/ /usr/share/tinymce/www/
Alias /roundcube /var/lib/roundcube
Alias /webmail/program/js/tiny_mce/ /usr/share/tinymce/www/
Alias /webmail /var/lib/roundcube
[...]
AddType application/x-httpd-php .php
[...] 그리고 apache를 재시작합니다.
service apache2 restart그런 다음 RoundCube config.inc.php 구성 파일을 편집합니다:
nano /etc/roundcube/config.inc.php기본 호스트를 localhost로 변경합니다:
$rcmail_config['default_host'] = 'localhost';이렇게 하면 Roundcube가 로그인 양식에 서버 이름 입력 필드를 표시하지 않게 됩니다.
16. ISPConfig 3 설치
최신 릴리스 버전의 ISPConfig 3을 설치하려면 다음을 수행하세요:
cd /tmp
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install/다음 단계는 다음을 실행하는 것입니다.
php -q install.php이렇게 하면 ISPConfig 3 설치 프로그램이 시작됩니다. 설치 프로그램은 Postfix, Dovecot 등과 같은 모든 서비스를 자동으로 구성합니다. ISPConfig 2에 필요한 수동 설정(완벽한 설정 가이드)은 필요하지 않습니다.
root@server1:/tmp/ispconfig3_install/install# php -q install.php
——————————————————————————–
_ _ _ _
| / | \/ \ / () / \
| | | | --.| |_/ / | / \/___ _ __ | |_ _ __ _ _/ / | | | |–.\ / | | / \| ‘ \| | |/ ` | | |
| || |\/ / | |_ /\ () | | | | | | | (| | __\ \
_/__/_| _/\/|| ||| ||_, | __/ / |
|__/
——————————————————————————–
>> Initial configuration
Operating System: 15.10 UNKNOWN
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.example.com]: <– ENTER
MySQL server hostname [localhost]: <– ENTER
MySQL root username [root]: <– ENTER
MySQL root password []: <– yourrootsqlpassword
MySQL database to create [dbispconfig]: <– ENTER
MySQL charset [utf8]: <– ENTER
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]: <– DE (your country code, in my case DE for Germany)
State or Province Name (full name) [Some-State]: <– ENTER
Locality Name (eg, city) []: <– Lueneburg (your city)
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <– ISPConfig UG (your company name)
Organizational Unit Name (eg, section) []: <– ENTER
Common Name (e.g. server FQDN or YOUR name) []: <– server1.example.com
Email Address []: <– ENTER
Configuring Jailkit
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring Pureftpd
Configuring BIND
Configuring Apache
Configuring Vlogger
Configuring Apps vhost
Configuring Bastille Firewall
Configuring Fail2ban
Installing ISPConfig
ISPConfig Port [8080]: <– ENTER
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]: <– DE (enter your country code, in my case DE for Germany)
State or Province Name (full name) [Some-State]: <– ENTER
Locality Name (eg, city) []: <– Lueneburg (your city)
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <– ISPConfig UG (name of your company)
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
Restarting services …
Installation completed.
root@server1:/tmp/ispconfig3_install/install# 설치 프로그램은 모든 기본 서비스를 자동으로 구성하므로 수동 구성이 필요하지 않습니다. 그 후 http(s)://server1.example.com:8080/ 또는 http(s)://192.168.1.100:8080/에서 ISPConfig 3에 접근할 수 있습니다 (HTTP 또는 HTTPS는 설치 중 선택한 것에 따라 다릅니다). 사용자 이름 admin과 비밀번호 admin으로 로그인합니다 (첫 로그인 후 기본 비밀번호를 변경해야 합니다): 

시스템이 이제 사용 준비가 완료되었습니다. ### 16.1 ISPConfig 3 매뉴얼 ISPConfig 3을 사용하는 방법을 배우기 위해 ISPConfig 3 매뉴얼을 다운로드하는 것을 강력히 권장합니다. 300페이지가 넘는 이 매뉴얼은 ISPConfig의 개념(관리자, 리셀러, 클라이언트)을 다루고, ISPConfig 3을 설치하고 업데이트하는 방법을 설명하며, ISPConfig의 모든 양식 및 양식 필드에 대한 참조와 유효한 입력 예제를 포함하고, ISPConfig 3에서 가장 일반적인 작업에 대한 튜토리얼을 제공합니다. 또한 서버를 더 안전하게 만드는 방법을 설명하고 마지막에 문제 해결 섹션이 포함되어 있습니다. ## 17 ISPConfig에 Dkim 지원 추가 Dkim은 모든 발신 이메일에 디지털 서명을 추가하는 기술입니다. Dkim 지원은 ISPConfig 3.1에 통합될 예정이며, 현재 ISPConfig 3.0.5.4p8에는 Dkim 기능의 백포트가 제공됩니다. 이 단계에서는 이 패치를 설치하는 방법을 보여드리겠습니다. 패치를 다운로드하고 설치 스크립트를 실행합니다: cd /tmp wget blog.schaal-24.de/files/dkim-latest_ispconfig3.tar.gz tar xfz dkim-latest_ispconfig3.tar.gz cd dkim-patch php -q install.php 설치 프로그램의 질문에 답합니다: Configure amavis? [ Y | n ]? <-- Press Enter to accept the default. Directory for DKIM-Keys [ /var/lib/amavis/dkim ] <-- Press Enter to accept the default. Configure postfix? [ Y | n ]? <-- Press Enter to accept the default. Update databse? [ Y | n ]? <-- Press Enter to accept the default. ISPConfig에 로그인하고 시스템 > 서버 구성 > 메일에서 Dkim 경로를 “/var/lib/amavis/dkim”로 설정한 후 “저장”을 눌러 변경 사항을 저장합니다.
## 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 done ### 18.2 이 튜토리얼의 가상 머신 이미지 다운로드 이 튜토리얼은 VMWare 및 Virtualbox와 호환되는 ovf/ova 형식의 사용 준비가 완료된 가상 머신 이미지로 제공됩니다. 가상 머신 이미지는 다음 로그인 세부정보를 사용합니다: SSH / 셸 로그인 사용자 이름: administrator
비밀번호: howtoforge 이 사용자는 sudo 권한이 있습니다. ISPConfig 로그인 사용자 이름: admin
비밀번호: howtoforge MySQL 로그인 사용자 이름: root
비밀번호: howtoforge VM의 IP는 192.168.1.100이며, /etc/network/interfaces 파일에서 변경할 수 있습니다. 위의 모든 비밀번호를 변경하여 가상 머신을 안전하게 보호하세요. ## 19. 링크 - Ubuntu: http://www.ubuntu.com/
- ISPConfig: http://www.ispconfig.org/
새 게시물을 받은 편지함에서 받기
스팸은 없습니다. 언제든지 구독 해지 가능합니다.