|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
19-09-2009, 05:36 PM | #1 |
Guest
Trả Lời: n/a
|
Hướng dẩn cài đặt cPanel và WHM (Installing cPanel and WHM)
Hướng dẩn cài đặt cPanel và WHM (Installing cPanel and WHM)
Đây là tài liệu chính thức của cPanel, chỉ dẫn rất chi tiết cách cài đặt cPanel các bạn tham khảo nha.
Choosing a Server 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
Choosing an Operating System We recommend using a Red Hat® Enterprise Linux® or CentOS operating system in order to ensure the best possible experience with our software. CentOS Red Hat Enterprise Linux Free Paid Community-supplied updates Updates from Red Hat Community-supplied support Support from Red Hat CentOS vs. Red Hat Operating Systems The recommended operating systems are:
Important: CentOS, Red Hat, 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:
Configuring your Operating System You will be asked to configure a number of features when installing your operating system. You will need to:
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:
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. 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: Advanced partitioning information is available later in this guide. Preparing to Install cPanel and WHM Once you have successfully installed your operating system, you are ready to install WHM and cPanel. There are some basic steps to installing the cPanel software. You will need to:
Connecting to Your Server Remotely via SSH To begin the cPanel/WHM installation process, a connection must be made from your computer to the server unless you have physical access to the server. To begin in a *nix environment:
To begin using PuTTy:
Remember: Once you are logged into the server you will need to use the POSIX standardized commands to manipulate files on that server, regardless of whether you are using PuTTy or a native SSH client. Obtaining a cPanel / WHM license If a license for cPanel/WHM has not yet been obtained, you will need to obtain one for your IP address. You should acquire your license before you attempt to install cPanel. Note: We offer 15-day test licenses for no cost at http://www.cpanel.net/store. You can obtain a license at http://www.cpanel.net/store. Installing cPanel / WHM To begin your installation, use the following commands:
Configuring Your Network Connection Red Hat and CentOS let you run the setup command to configure network connections. If you did not set up a static IP address for your server during the OS installation, you will need to define the IP address, subnet address, and default gateway IP for your server using the the setup tool. Your data center will be able to provide you with this information. If you are using FreeBSD, you should consult that community’s documentation when configuring your server’s connection. For information about obtaining IP addresses you may visit:
Getting Started in WHM To access the WHM interface:
Have a fun |
|
|