请稍候...
  • 企业级 VPS主机
  • Windows VPS 主机
  • Unmanaged VPS 主机
  • 通配符证书,部署全网SSL证书必备神器
  • 高速稳定独立主机High quality stable server

Installing cPanel & WHM(安装Cpanel & WHM)

发布时间:2011-07-25 12:12:02 来源: 亚狐科技

Choosing a server

PICK Important: cPanel and WHM cannot be installed on a production web server; you must use a server with a freshly installed operating system.

It is important to consider how many sites you plan to host with your web server. For example, if your server is going to host a lot of websites, each with its own set of email addresses and databases, your server’s requirements for processing power, disk space, and RAM will increase.

It is also important to consider what kind of web hosting you plan to do when choosing a server. While cPanel and WHM will run on the minimum requirements specified below, your server’s requirements may increase if you plan to host videos, music, or other high-volume websites such as blogs or forums.

Minimum requirements

  • Pentium or AMD chipset at 266 MHz.
    • Both i386 (32-bit) and x86-64 (64-bit) architectures will work with cPanel.
  • 512 MB of RAM (1 GB minimum is recommended when hosting many accounts).
  • 10 GB free hard drive space (More is required to host multiple accounts).
  • A fresh installation of an operating system specified below.

PICK Important: Because cPanel is designed for commercial hosting, we only license publicly visible, static IP addresses. We do not license dynamic, sticky, or internal IPs.

Choosing an operating system

We recommend you use one of the following operating systems:

  • Red Hat Enterprise Linux version 4.x or 5.x
  • CentOS version 4.x or 5.x
  • CloudLinux (works with cPanel & WHM 11.28 and later only)

CentOS vs. Red Hat

CentOS RedHat Enterprise Linux
Free Paid
Community-supplied updates Updates from Red Hat
Community-supplied support Support from Red Hat
CentOS vs. Red Hat Operating Systems

To install cPanel & WHM on CentOS:

  1. Download a free CentOS DVD ISO.
    • To use this ISO, you must burn the image to a DVD. Then, insert the DVD into the server and turn it on.
  2. Upon its first reboot, the ISO will install cPanel & WHM in the background.
  3. For more details, read our documentation on Installing cPanel & WHM below.

To install an operating system other than CentOS:

  • You can download Red Hat Linux from http://redhat.com.
    • You will need to use a web-accessible computer to download the operating system. Then, burn it to CD or DVD so that you can install it on your server.
  • You can download FreeBSD® from http://www.freebsd.org.
    • You will need to use a web-accessible computer to download the operating system. Then, burn it to CD or DVD so that you can install it on your server.
  • You can download and install CloudLinux by following the instructions in our CloudLinux installation documentation.

PICK Important: CentOS, Red Hat, CloudLinux, and FreeBSD are the only operating systems supported by cPanel and WHM. No other OS is compatible.

A note about FreeBSD

While FreeBSD is supported, it is only recommended for system administrators who are familiar with it. FreeBSD can require a detailed manual configuration in order to run smoothly.

cPanel uses FreeBSD’s ports system for updates. When cPanel is installed, do not use binary packages (pkg_add). Use of both systems can cause major administration problems when dependencies are removed from one system without the other system being made aware. The ports used by cPanel come directly from FreeBSD's ports repository.

Port upgrades may require you to manually interact with the system to ensure it is functioning as expected. There are some issues we cannot solve automatically in a FreeBSD system.

For this reason, we ask those without FreeBSD administration experience to use Red Hat or CentOS. This will provide a better overall experience with our software.

Installing your operating system (OS)

When the operating system discs are placed in your server, you will be prompted to test the discs prior to running the installation. We highly recommend that you test the disc(s) before installing, as it could save time later, if a disc proves to be unreadable.

Before installing your OS, here are some points to consider:

  • You should install a minimal version of the operating system. All services that cPanel requires will be installed during the cPanel & WHM installation process. This means you need to deselect software package groups such as a Gnome, KDE, and any other GUI desktop environments. Installing services prior to the installation of cPanel & WHM will cause compatibility issues.
  • The minimal installation does, however, need to include a working package handler such as yum or up2date (included in default installations of CentOS and Red Hat Enterprise Linux).
  • If possible, configure your Ethernet device with a static IP address and a fully qualified hostname during the operating system’s installation. This will minimize the amount of work you will need to do after the installation of the OS and cPanel software.
    • You will need to register your fully qualified hostname. This hostname cannot be the same as any domain used on your server.
    • You will need to define the IP address, subnet address, and default gateway IP for your server. Your data center will be able to provide you with this information.

Install the OS, following the prompts and referring to the OS documentation when necessary.

Configuring your operating system

You will be asked to configure a number of features when installing your operating system.

You will need to:

  1. Correctly partition your hard drive.
  2. Deactivate the firewall.
  3. Disable SELinux.
  4. Ensure your newly-installed OS has the latest updates and patches.

Disable SELinux security features

For a fully successful installation you should disable SELinux. When installing a Red Hat or CentOS distribution, you will be able to use the graphical interface to disable SELinux when configuring the operating system.

This can also be accomplished by editing /etc/selinux/config from the command line, and setting the SELINUX parameter to disabled with a text editor such as nano or vi. The file should resemble the following text:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

PICK Important: SELinux must remain disabled in order for WHM and cPanel to run on your web server. Ensure that the pound sign (#) does not precede SELINUX=disabled. If # precedes this configuration option, the line will be ignored.

ALERT! Warning: Do not transfer the SELinux configuration file between computers as it may destroy the file’s integrity.

Recommended partitions

Please note that these partitions pertain to Linux. When installing Linux, use an ext file system.

While each operating system provides a default partition setup, a simplified setup is recommended. The /tmp partition is created for security reasons.

Partition Name Size
/tmp 1 GB (1024 MB)
/ Grow to fill disk.
swap 2x memory (RAM)
Partitioning Guide

In some cases it may be optimal to increase the number of partitions (especially on servers that use high volumes of email), as the number of files that the operating system can access per partition is limited.

note Note: Advanced partitioning information is available in the Advanced Options documentation.

上一页123下一页
【责任编辑:亚狐科技 (Top) 返回页面顶端

上一篇:my.cnf