The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS...

17
Options For This Howto VMware Images: The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 2] (832.1 MB) (05/20/2010) VMware Image Import Guide List of all VMware Images Free Support Paid Support Navigation Howtos Linux CentOS Debian Fedora Kernel Mandriva PCLinuxOS SuSE Ubuntu Web Server English | Deutsch | Site Map/RSS Feeds | Advertise You are here: Home » How tos » Linux » CentOS » The Perfect Server - CentOS 5.5 X86_64 [ISPConfig 2] The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 2] Do you like HowtoForge? Please consider supporting us by becoming a subscriber. Submitted by falko ( Contact Author ) ( Forums ) on Tue, 2010-05-25 17:17. :: CentOS | ISPConfig The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 2] Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Follow me on Twitter Last edited 05/20/2010 This tutorial shows how to set up a CentOS 5.5 server (x86_64) 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 64-bit version of CentOS 5.5, but should apply to the 32-bit version with very little modifications as well. In the end you should have a system that works reliably, and if you like you can install the free webhosting control panel ISPConfig (i.e., ISPConfig runs on it out of the box). I will use the following software: Web Server: Apache 2.2 with PHP 5.1.6 Database Server: MySQL 5.0 LXer FAQForge Subscription Contribute Search News Forums Howtos PDFmyURL.com

Transcript of The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS...

Page 1: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

Options For ThisHowtoVMware Images:

The Perfect Server -CentOS 5.5 x86_64[ISPConfig 2] (832.1MB) (05/20/2010)

VMware Image ImportGuideList of all VMwareImages

Free SupportPaid Support

NavigationHowtos

LinuxCentOSDebianFedoraKernelMandrivaPCLinuxOSSuSEUbuntu

Web Server

English | Deutsch | Site Map/RSS Feeds | Advertise

You are here: Home » Howtos » Linux » CentOS » The Perfect Serv er - CentOS 5.5 X86_64 [ISPConfig 2]

The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 2]

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.

Submitted by falko (Contact Author) (Forums) on Tue, 2010-05-25 17:17. :: CentOS | ISPConfig

The Perfect Server - CentOS 5.5 x86_64[ISPConfig 2]Version 1.0

Author: Falko Timme <ft [at] falkotimme [dot] com>

Follow me on TwitterLast edited 05/20/2010

This tutorial shows how to set up a CentOS 5.5 server (x86_64) that offers all servicesneeded by ISPs and web hosters: Apache web server (SSL-capable), Postfix mailserver 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 64-bit version ofCentOS 5.5, but should apply to the 32-bit version with very little modifications as well.In the end you should have a system that works reliably, and if you like you can install

the free webhosting control panel ISPConfig (i.e., ISPConfig runs on it out of the box).

I will use the following software:

Web Server: Apache 2.2 with PHP 5.1.6Database Server: MySQL 5.0

LXerFAQForgeSubscriptionContributeSearchNewsForumsHowtos

PDFmyURL.com

Page 2: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

Web ServerApacheCherokeeLighttpdnginx

BackupControl Panels

ISPConfig

DNSBINDMyDNSPowerDNSdjbdns

DesktopEmail

Anti-Spam/VirusPostfixProcmailSendmail

FTPHigh-AvailabilityMonitoringMySQL

Mail Server: PostfixDNS Server: BIND9 (chrooted)FTP Server: ProftpdPOP3/IMAP server: DovecotWebalizer for web site statisticsPlease note that this setup does not work for ISPConfig 3! It is valid for ISPConfig 2 only!

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take.I do not issue any guarantee that this will work for you!

1 RequirementsTo install such a system you will need the following:

Download the two CentOS 5.5 DVDs or the eight CentOS 5.5 CDs from a mirror next to you (the list of mirrors can be found here:http://isoredirect.centos.org/centos/5/isos/x86_64/).a fast Internet connection.

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

3 Install The Base SystemBoot from your first CentOS 5.5 CD (CD 1) or the first CentOS 5.5 DVD. Press <ENTER> at the boot prompt:

PDFmyURL.com

Page 3: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

MySQLProgramming

C/C++PHP

SambaSecurity

Anti-Spam/Virus

StorageVirtualization

KVMOpenVZVMwareVirtualBoxXen

OtherFreeBSDCommercial

Mini-HowtosForumsContributeSubscriptionLogin It can take a long time to test the installation media so we skip this test here:

PDFmyURL.com

Page 4: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

Site Map/RSS Feeds

User loginUsername:

Password:

Remember Me?

Log inCreate a new accountRequest new password

Who's onlineThere are currently 12users and 2714 guestsonline.

HowtoForgeForums

Plugin system withversion upgrade.DNS RecordConfirmationftp login failedpure-ftpd userlogin - how doesit work?cant access newsub domainISPconfig 2 FTPtransfer slow onLANReinstallingISPConfig and

The welcome screen of the CentOS installer appears. Click on Next:

PDFmyURL.com

Page 6: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

Original DesignManufacturers(ODM&#039;s)Speed Up Your UbuntuNetbook With ThisSmall TweakIs it really that hard tofollow the GPL?

more

Recentcomments

Thanks!13 hours 51 min agoRe: Phpmyadmin21 hours 31 min agoRe: Re: Re: Step 10Update23 hours 6 min agoExelent post1 day 2 hours agoRe: No wireless1 day 8 hours agoidea is good butimplementation is ... notso good1 day 9 hours agopassword

Select your keyboard layout:

PDFmyURL.com

Page 7: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

password1 day 12 hours agoThanks so much!1 day 14 hours agoJust because you CANdoesn&#039;t meanyou SHOULD2 days 5 hours agonginx, php5 web serverscripted installation2 days 5 hours ago

NewsletterSubscribe toHowtoForgeNewsletterand stay informed aboutour latest HOWTOs andprojects.

enter email address

Submit

(To unsubscribe fromour newsletter, visit thislink.)

Syndicate I'm installing CentOS 5.5 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasingALL DATA?

PDFmyURL.com

Page 8: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

HowtoForge Feed forFacebook®

"Facebook" is a registeredtrademark of Facebook, Inc. All

rights reserv ed.

Now we must select a partitioning scheme for our installation. For simplicity's sake I select Remove linux partitions on selecteddrives 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:

PDFmyURL.com

Page 10: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

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 IPaddresses are not a bad idea... Click on the Edit button at the top right.

PDFmyURL.com

Page 11: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

In the window that pops up uncheck Use dynamic IP configuration (DHCP) and Enable IPv6 support and give your network card astatic 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):

PDFmyURL.com

Page 16: The Perfect Server - CentOS 5.5 x86 64 [ISPConfig 2 ... · server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, ... FTP Server: Proftpd POP3/IMAP server:

Copyright © 2010 Falko TimmeAll Rights Reserved.

add comment | view as pdf | print: this | all page(s) |

Please do not use the comment function to ask for help! If you need help, please use our forum .Comments will be pub lished after administrator approval.

Sponsored Links: Turn your desk phone and mobile phone into one w ith Sprint Mobile Integration.w w w.seamlessenterprise.com

One number. One voicemail. Seize the lead. Sprint Mobile Integration.w w w.seamlessenterprise.com

One Number. One Voicemail.Make it easier for clients to reach you. Turn your desk phone and mobile phone into one w ith Sprint Mobile Integration.

w w w.seamlessenterprise.com

One number. One voicemail. Sprint Mobile Integration.w w w.seamlessenterprise.com

One number. one voicemail. Seize the lead w ith Sprint. Learn more

AT&T Synaptic Compute as a Service. Boost your power on demand.

Trial: IBM Cognos Express Reporting, Analysis & Planning

Learn benefits of Simpana software.View the Gartner Video

Sprint 4G - The Ultimate Mobile BroadbandClick here

SAP-Business Objects Crystal Reports ServerComplete reporting w ithout hidden costs. Free Trial

Blade Server Information Free White Paper. Turbocharge Your Data Center. Dell w/ Intel® Xeon. www.TalkToDell.com

Server Virtualization Increase IT Agility & Reduce Costs. Download Virtualization White Paper www.ca.com/Virtualization

Centrify Active Directory Web Server Authentication Across Multiple Platforms. Get White Paper www.Centrify.com/FreeWhitePaper

PDFmyURL.com