The Perfect Server - CentOS 5.2 > 서버관리 Tip

본문 바로가기
 

The Perfect Server - CentOS 5.2

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 14,361회 작성일 09-06-05 13:03

본문

CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server)

 
This tutorial shows how to set up a CentOS 5.2 server that offers all services needed by ISPs and web hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of CentOS 5.2, but should apply to the 64-bit version with very little modifications as well.
Required:
  • Web Server: Apache 2.2 with PHP 5.1.6
  • Database Server: MySQL 5.0
  • Mail Server: Postfix
  • DNS Server: BIND9 (chrooted)
  • FTP Server: Proftpd
  • POP3/IMAP server: Dovecot
  • Webalizer for web site statistics
 

1 Requirements

To install such a system you will need the following:
  • Download the CentOS 5.2 DVD or the six CentOS 5.2 CDs from a mirror next to you (the list of mirrors can be found here: http://isoredirect.centos.org/centos/5/isos/i386/).
  • a fast internet connection.
 

2 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.
 

3 Install The Base System

Boot from your first CentOS 5.2 CD (CD 1) or the CentOS 5.2 DVD. Press at the boot prompt:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
It can take a long time to test the installation media so we skip this test here:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
The welcome screen of the CentOS installer appears. Click on Next:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Choose your language next:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Select your keyboard layout:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
I'm installing CentOS 5.2 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasing ALL DATA?
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Now we must select a partitioning scheme for our installation. For simplicity's sake I select Remove linux partitions on selected drives and create default layout. This will result in a small /boot and a large / partition as well as a swap partition. Of course, you're free to partition your hard drive however you like it. Then I hit Next:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Answer the following question (Are you sure you want to do this?) with Yes:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
On to the network settings. The default setting here is to configure the network interfaces with DHCP, but we are installing a server, so static IP addresses are not a bad idea... Click on the Edit button at the top right.
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
In the window that pops up uncheck Use dynamic IP configuration (DHCP) and Enable IPv6 support and give your network card a static IP address (in this tutorial I'm using the IP address 192.168.0.100 for demonstration purposes) and a suitable netmask (e.g. 255.255.255.0; if you are not sure about the right values, http://www.subnetmask.info might help you):
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Set the hostname manually, e.g. server1.example.com, and enter a gateway (e.g. 192.168.0.1) and up to two DNS servers (e.g. 213.191.92.86 and 145.253.2.75):
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Choose your time zone:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig
Give root a password:
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig

댓글목록

등록된 댓글이 없습니다.

Total 159건 7 페이지
서버관리 Tip 목록
번호 제목 글쓴이 조회 날짜
51 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15772 08-04
50 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9532 08-04
49 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12799 08-04
48 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10314 08-04
47 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15950 08-03
46 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11555 06-23
45 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10764 06-19
44 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15775 06-05
43 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8842 06-05
42 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18372 06-05
41 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14504 06-05
40 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13741 06-05
39 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13949 06-05
38 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13552 06-05
열람중 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14362 06-05
36 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16539 05-29
35 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15478 05-19
34 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19862 05-19
게시물 검색