Installing cPanel & WHM
For cPanel & WHM versions 11.25/26
Choosing a Server
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.
- Pentium or AMD chipset at 266 MHz.
- Both i386 (32-bit) and x86-64 (64-bit) architectures will work with cPanel.
- 256 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.
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 vs. Red Hat Operating Systems
|| Red Hat Enterprise Linux
| Community-supplied updates
|| Updates from Red Hat
| Community-supplied support
|| Support from Red Hat
The recommended operating systems are:
- Red Hat Enterprise Linux versions:
- For i386 machines only: 2.1.
- For x86-64 or i386 machines: 3, 4, or 5.
- CentOS versions:
- For i386 machines only: 3.x.
- For x86-64 or i386 machines: 4.x, or 5.x.
- Red Hat Linux distributions can be obtained at http://redhat.com.
- A CentOS distribution can be obtained at http://www.centos.org.
- You can also obtain download a free CentOS DVD ISO here. Upon its first reboot, this will install cPanel and WHM in the background.
- To use this ISO, you must burn the image to a DVD. Then, insert the DVD into the server and turn it on.
- FreeBSD® can be obtained at http://www.freebsd.org.
You will need to use a web-accessible computer to download the operating system and burn it to CD or DVD so that it can be installed on your server.
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 (
). 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 or KDE 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 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:
- Correctly partition your hard drive.
- Deactivate the firewall.
- Disable SELinux.
- 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
. 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.
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELinux must remain disabled in order for WHM and cPanel to run on your web server. Ensure that the pound sign (
) does not
precedes this configuration option, the line will be ignored.
Do not transfer the SELinux configuration file between computers as it may destroy the file’s integrity.
Please note that these partitions pertain to Linux. When installing Linux, use an
While each operating system provides a default partition setup, a simplified setup is recommended. The
partition is created for security reasons.
| Partition Name
|| 1 GB (1024 MB)
|| Grow to fill disk.
|| 2x memory (RAM)
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 in the Advanced Options documentation
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:
- Access your server.
- This can be done remotely if you do not have physical access.
- Check and configure some files.
- 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 here
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.
root as the login name.
- Enter the root password.
If you typed username and password correctly, you should be logged into the server.
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 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 http://www.cpanel.net/store
We also offer 15-day test licenses for no cost at http://www.cpanel.net/store
Installing cPanel & WHM
To begin your installation, use the following commands:
- cd /home — Opens the directory
- wget -N http://layer1.cpanel.net/latest — Fetches the latest installation file from the cPanel servers.
- sh latest — Opens and runs the installation files.
- /usr/local/cpanel/cpkeyclt — Activates your license after installation.
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, visit:
: You should configure your Ethernet connection(s) when installing your operating system whenever possible.
Getting Started in WHM
To access the WHM interface:
- Type https://$IP:2087 in your preferred web browser.
- $IP is meant to stand for the IP address of your web server.
- Use root as the login name in the Name field.
- Enter the root password into the Password field.
- Click Log In.
- For more details, see our documentation on the WHM Initial Setup wizard.
- To set up cPanel accounts for your users, navigate to the WHM Create a New Account screen. cPanel allows your users to create email and FTP accounts, as well as perform other website management tasks.