Installing cPanel & WHM(安装Cpanel & WHM)
发布时间:2011-07-25 12:12:02 来源: 亚狐科技
Preparing to install cPanel & WHM or DNSONLY
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:
- Access your server.
- This can be done remotely if you do not have physical access.
- Check your server's configuration.
- Run installation commands in a command-line interface.
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:
- Access the command line interface (using a terminal application).
- Type the following command:
ssh root@$IP
(where$IP
is meant to represent your target server’s IP address.) - Enter your server’s root password.
If you are installing cPanel from a Windows® computer, you should use PuTTy to connect to your server. You can visit the PuTTy site for more details.
To begin using PuTTy:
- Download and install the client from the URL above.
- Open the client.
- Under the Sessions menu, input the IP address of the server.
- Make sure that the SSH button is selected.
- Click Open.
- Use
root
as the login name. - Enter the root password.
If you typed username and password correctly, you should be logged into the server.
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.
Removing YUM groups
You will need to make sure certain yum
groups are not installed. To obtain a list of yum
groups, use the following command:
yum grouplist
Make sure the following yum
groups are not installed:
- FTP Server
- GNOME Desktop Environment
- KDE (K Desktop Environment)
- Mail Server
- Mono
- Web Server
- X Window System
To remove a yum
group, you can use the yum groupremove
command. For example, if you wanted to remove Mono
and Mail Server
:
yum groupremove "Mono" "Mail Server"
Note: You can specify more than one group per line. You will need to use quotation marks ("") around each group you wish to remove.
Obtaining a cPanel license
If you do not have a license for cPanel & WHM, you will need to obtain one for your IP address. You should acquire your license before you attempt to install cPanel. You can obtain a license at the cPanel store.
Note: We also offer 15-day test licenses for no cost at the cPanel store.
Installing cPanel & WHM
To begin your installation, use the following commands:
- Open the
/home
directory by typing the command cd /home - Fetch the latest installation file from the cPanel servers by typing the command wget -N http://httpupdate.cpanel.net/latest
- Open and run the installation files by typing the command sh latest
If licensing has failed (due to a strict firewall or changed IP), execute the following command to activate your license:
- /usr/local/cpanel/cpkeyclt
Note: During the installation process, Apache 2.2 and PHP 5.2.17 are installed by default. You can customize your server's Apache and PHP configuration using our EasyApache feature after the installation is complete.
版权所有@转载请注明原文地址