Thông tin tài liệu
Web Host Manager
Administration Guide
Run your web host with the popular Web Host Manager software
Aric Pedersen
BIRMINGHAM - MUMBAI
Web Host Manager
Administration Guide
Copyright © 2006 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of
the information presented. However, the information contained in this book is sold
without warranty, either express or implied. Neither the author, Packt Publishing,
nor its dealers or distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: August 2006
Production Reference: 1110806
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 1-904811-50-7
www.packtpub.com
Cover Image by www.visionwt.com
Credits
Author
Aric Pedersen
Reviewers
Tony Butler
Brian Coogan
David Mytton
Development Editor
David Barnes
Technical Editor
Divya Menon
Editorial Manager
Dipali Chittar
Indexer
Mithil Kulkarni
Proofreaders
Martin Brooks
Chris Smith
Production Manager
Patricia Weir
Layouts and Illustrations
Shantanu Zagade
Cover Designer
Shantanu Zagade
About the Author
Aric Pedersen has been using cPanel and WHM on a daily basis for over six
years both as an end user for his own websites and as a systems administrator. He
currently works as a systems administrator for several hosting companies and also
for Netenberg.com, the creators of Fantastico Deluxe (a popular script auto-installer
for cPanel). Aric has been providing companies and end users with web hosting and
related documentation for several years.
As always, this book could not have been completed without the
assistance of numerous people. I’d like to take the time to thank a
few more of them:
To my mother and Allen: You’re the best.
To my brothers Ken, Big Steve, and Michael: You’re the best bunch
of brothers a kid ever had. Thanks to all of you for keeping my life
interesting.
To Ilias: Not only do you make some great products, you’ve also
been great to work with.
To Tony: For once again stepping up to the plate in a time of need.
To Pete: I hope this helps.
And nally to the readers: I hope you will nd my cPanel and WHM
books are a valuable resource that you will refer to time and again.
About the Reviewers
Tony Butler has been an IT Consultant and systems architect to some of the largest
nancial institutions in Europe for the past 10 years. He has also been using cPanel
and WHM, both personally and professionally for over ve years. He started a web
hosting business in 2002 targeting the SME market with a strong focus on customer
service, and in 2004 he acquired another successful host with similar customer-
centric philosophies. In December 2005, Tony's hosting business was bought out as
he shifted his focus more towards his family and personal life.
Although my part in this book was small, it took no small amount of
time to acquire the experience which allowed me to act as technical
reviewer. As such, I would like to thank:
My wife Yvonne for her love and support over the years, and for
being so tolerant when I spent many a long night and weekend
supporting my web hosting clients!
My sons, Lucas and Daniel, for providing so much joy in my life.
Aric for his invaluable support, both technical and otherwise over
the past ve years, and for giving me the tools to help me to help
him with this book :-)
My web hosting clients, who were so tolerant and understanding in
(rare) times of crisis, and a pleasure to deal with at quieter times.
Brian Coogan is owner and technical director of White Dog Green Frog, a
cPanel-based Webhosting company in Melbourne, Australia that has been hosting
sites for over 4 years. Brian has had over 20 years of experience with Unix
administration, including working for over 10 years as a consultant and trainer in
Unix Administration for Fortune 100 companies including Hewlett-Packard and
Telstra. Brian has also worked as an IT manager, software developer, youth crisis
worker, and high school teacher and has interests in health and longevity. Brian is
based in Melbourne, Australia.
David Mytton is a young web developer based in the UK. Although he spends
much of his time programming for the Web, he is also a keen writer, having written
articles for web development resource SitePoint.com and International PHP Magazine,
as well as for his own website. These articles have also included interviews of famous
personalities such as Andi Gutmans and Zeev Suraski (PHP architects & Zend
Founders), Matthew Mecham (Invision Power Services CEO & Lead Developer), and
Nick Lindridge (ionCube Founder). In between running his software development
company, Olate Ltd. (www.olate.co.uk), he enjoys scuba diving and fencing.
Table of Contents
Preface 1
Chapter 1: Introduction to WHM and Dedicated Server/VPS Hosting 5
What are WHM and cPanel and How Do They Work Together? 5
What WHM Can Do 6
What WHM Cannot Do 6
System Requirements for WHM and cPanel 7
Important Considerations before Shopping for a Server or VPS 8
What Do You Plan to Do with Your Server or VPS? 8
Do You Currently Have Any Experience of Offering cPanel Hosting to
Paying Customers? 9
What Kinds of Hosting Customers are You Going to Focus On? 9
Low-End Customers: Cheap and (Hopefully) Cheerful 9
Mid-Range Customers: Growing Needs, Growing Prots 10
High-End Customers: Welcome to the Big Time! 10
What Kind of Server do you Need? 11
Shopping for a VPS or Dedicated Server 11
Finding Deals 12
Important Things to Consider Before Sealing the Deal 12
Support is Critical 13
Additional Fees, Included Extras, Upgrade Charges 14
The Data Center Itself 14
Location, Location, Location 14
Billing and Cancellation Policies 15
General Purchasing Advice 15
Summary 16
Chapter 2: Setting Up Your Server with cPanel and WHM 17
Accessing Your Server for the First Time and Determining
if You Need to Install cPanel and WHM 17
Getting the Tools You Need to Access Your Server 18
Log into Your Server 18
[ ii ]
Table of Contents
Are cPanel and WHM Installed Already? 21
How to Install WHM and cPanel 22
Accessing WHM and Finishing the Installation Process 24
Finishing Installation 25
WHM Setup: The License 25
WHM Setup: Basic Information 25
Basic Information: Contact Details 25
Basic Information: Default Themes and Directories 27
Basic Setup: User IDs and Networking 29
Basic Setup: Hostname, Nameservers, and DNS Values 30
Basic Setup: CGI and Apache Logging 32
WHM Setup: Disk Quota Setup 33
WHM Setup: Nameserver Setup 33
WHM Setup: DNS Resolvers 34
WHM Setup: Setting the MySQL Root Password 35
Summary 35
Chapter 3: Additional Server Conguration 37
Welcome to Root WHM! 37
cPanel Builds: Choosing the Right One for You 41
Updating cPanel 44
About File and Directory Permissions 47
Setting Up Server Contact Information 48
The Contact Manager 49
Set Your Server's Hostname 52
Setting the Server's Clock and Date 54
Setting Up Extra Hard Drives 55
Choose Your Data Backup Strategy! 56
Tweak Settings: Additional Conguration 60
Display and Domains 60
Mail 62
MySQL and Notication 65
Software 67
Stats, Logs, and Status 68
System 72
cPAddons 76
Statistics Software Conguration 77
Summary 79
Chapter 4: Apache, PHP, Perl, and Databases 81
Apache: Web's Best Friend 82
PHP: Hypertext Processor 82
Perl: The Programming Language that Powers cPanel 83
[ iii ]
Table of Contents
MySQL: A Database for the Masses 83
PostgreSQL: The "Other" Database 84
Conguring Apache on a cPanel Server 84
Conguring or Updating the Back-End Copy of Apache and PHP 84
Conguring or Updating the Front-End Copy of Apache and PHP 85
Apache-Related Conguration Options - Part 1 86
PHP Conguration Options 87
Apache-Related Conguration Options - Part 2 93
Installing Zend Optimizer 94
Conguring and Working with Perl 95
Installing Perl Modules in WHM 96
Installing Perl Modules Using the Perlinstaller Script 96
Installing Perl Modules Using CPAN 97
Checking Perl Scripts and Automatically Installing the Needed Modules 97
Upgrading and Working with MySQL 98
Upgrading MySQL 98
Adding MySQL Remote Hosts in WHM 99
Changing a MySQL User or Database Password 100
Resetting MySQL's Root Password 100
Repairing MySQL Databases in WHM 101
Resetting the Local MySQL Root Password 101
Setting Up a Remote MySQL Server in WHM 102
Showing MySQL Processes 103
phpMyAdmin 103
Restarting MySQL 104
Installing and Working with PostgreSQL 104
Installing PostgreSQL 105
Restarting PostgreSQL 105
Summary 106
Chapter 5: Working with User Accounts 107
Transferring User Accounts from Other Servers 108
Transferring Multiple Accounts from another Server Using the Root or
Administrator Password 109
Transferring a Single Account from another Server Using the Root or
Administrator Password 110
Transferring Multiple Accounts from an Alabanza Server 111
Transferring a Single Account Using the Username and Password for the
Account (cPanel Servers Only) 112
Alternative Methods of Moving User Accounts from Other Servers 114
Review Copy Accounts Log 115
[...]... Other Sources Web Hosting Talk Third-Party Assistance Search Engines to the Rescue! WHM: The Final Words Index 261 261 261 262 263 263 264 264 265 265 266 266 267 267 268 268 268 269 [ viii ] Preface You've finally decided to buy a dedicated server, or Virtual Dedicated Server, or Virtual Private Server (VDS/VPS) with cPanel and Web Hosting Manager (WHM) management software and host your own websites A... Thankfully, many of the places you'd go to look for opinions and deals on shared hosting are also places that you can go to explore VPS and dedicated servers Here are a few good places to start your search: • http://webhostingtalk.com/: WebHostingTalk (or WHT as it is often • http://www.findmyhost.com/: FindMyHost is a hosting search engine that • http://forums.cpanel.net/forumdisplay.php?f=22: In cPanel's... makes cPanel and WHM cPanel is the name for the web- based hosting control panel for end users (customers or clients of yourself or your resellers) WHM is the web- based control panel for both server administrators (you) and resellers (clients of yours that host other clients' websites) Introduction to WHM and Dedicated Server/VPS Hosting WHM helps you manage your entire server, install and maintain... Plan to Do with Your Server or VPS? Are you planning on hosting paying clients' websites, or just host personal friends/ family? Friends and family are more likely to be forgiving in case of interruptions in service If you're hosting paying clients you don't personally know, don't expect them to be so forgiving Are you going to primarily sell hosting, or do you also want to offer other services like... control vital services, and install and manage important software that every web server needs This includes web server software (Apache), databases (MySQL or PostgreSQL), mail server software (Exim), DNS (Bind), SSH (OpenSSH, which provides secure access to the command line interface for your server), and other important services and software • WHM can install, manage, or remove clients from the server... to host and you want complete control over your sites, or perhaps you've chosen to start your own web- hosting company and you want a dedicated server or VPS so that you can maximize profits Either way, if you've never had a dedicated server or VPS before, the prospect of it can be a bit daunting What should you look for when you are shopping for hardware? How do you set it up initially? How do you manage. .. Chapter 1 Do You Currently Have Any Experience of Offering cPanel Hosting to Paying Customers? If not, you might want to consider cutting down on your up-front costs and looking for a reseller account from a reliable web host first This will allow you to focus on learning how the business works, without the added stress of learning to manage an entire server or multiple servers; then when you are sure... are familiar with running a hosting business, you can trade up What Kinds of Hosting Customers are You Going to Focus On? Generally, you can divide hosting customers into three segments—low-end, mid-range, and high-end Low-End Customers: Cheap and (Hopefully) Cheerful Low-end customers are typically very price-conscious Mostly, you'll find individuals looking for bare-bones hosting and very small "mom... Generate a Self-Signed Server SSL Certificate Change the WHM/cPanel SSL Certificate The SSL Manager Delete an SSL Host [] 143 144 144 145 146 146 146 147 147 148 148 149 150 150 162 162 163 164 164 165 165 165 166 166 167 168 168 170 171 172 172 173 173 Table of Contents DNS Management Add an A Entry for your Hostname Add a DNS Zone Edit an MX Entry Edit DNS Zone 173 174 174 174 175 DNS Zone Templates... discussion about all things related to hosting This includes dedicated servers, VPS, and colocation Lots of companies advertise specials here, so if you are very price sensitive this is a good place to visit regularly also includes dedicated server hosting in their database Customers also come here to rate their hosts forum, you can find special deals on servers, hosting and services in the Ads and Offers .
Web Host Manager
Administration Guide
Run your web host with the popular Web Host Manager software
Aric Pedersen
BIRMINGHAM - MUMBAI
Web Host Manager
Administration.
Virtual Private Server (VDS/VPS) with cPanel and Web Hosting Manager (WHM)
management software and host your own websites. A dedicated server is a single
piece
Ngày đăng: 16/01/2014, 20:21
Xem thêm: Tài liệu Web Host Manage pptx