Virtual Private Server User Guide
Table of Contents
Chapter 1 Internet and UNIX Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 1
Internet Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 1
The Client/Server Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 1
Your Virtual Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 1
3FS Fast Flexible File Sharing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 2
UNIX Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 4
SSH The Preferred Login Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 5
Logging on to your Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 7
Ownership and Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 9
Shells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 14
Directory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 17
Some Key Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 17
Text Editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 18
Finding Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 19
Chapter 2 User and Group Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 1
User Accounts and User Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 2
Basic User Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 2
Basic User Quota Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 9
Group Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 12
The Root User (Superuser) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 15
Chapter 3 Network Servers and Server Applications . . . . . . . . . . . . . . . . . . . . . . . . . .3 1
Viewing Network Services and Connections . . . . . . . . . . . . . . . . . . . . . .3 3
Xinetd: The Super Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 5
Chapter 4 The Telnet and SSH Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 1
The Telnet Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 1
The SSH Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 1
Chapter 5 FTP Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 1
An Introduction To FTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 1
ProFTPd The FTP Server Application. . . . . . . . . . . . . . . . . . . . . . . . . .5 2
Using FTP and SSH Together For Secure File Transfer . . . . . . . . . . . . .5 3
Using the Provided FTP Client Program . . . . . . . . . . . . . . . . . . . . . . . . .5 3
Chapter 6 The Apache Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 1
Apache: A Powerful Web Server Application . . . . . . . . . . . . . . . . . . . . . .6 1
Methods for publishing a Web site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 4
Controlling Apache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 7
Configuring Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 8
Hosting Multiple Web Sites Through Virtual Hosting . . . . . . . . . . . . . . . .6 10
SSL The Secure Socket Layer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 20
Extending Apache's Capabilities Through Modules. . . . . . . . . . . . . . . . .6 20
Troubleshooting Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 23
Chapter 7 Log Files and Statistics Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 1
Log Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 1
Analog Web Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2
Xferstats FTP Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 3
Technical Training Department
August 2004
1