How to Setup cpanel on debian OS ?
Comprehensive installers that take most of the effort out of installing the complex cPanel and WHM software packages are used by cpanel and WHM.
The following things are required if you want to install cPanel and WHM:
-One of the supported operating systems basic server install.
-As cPanel and WHM will not run without a license file a cpanel license is a necessary.( A license from an authorized cpanel distributor or partner can be obtained along with a free 15-day test license )
Before Beginning :-
A blank Dedicated server with a fresh operating system install is a must as cpanel and WHM can only be installed on it.The Dedicated server should have no data that you want to keep. Web pages, configuration files, user accounts and scripts are included in this but are not limited.Some other type of data also cannot be kept. Many changes to your system will be made by your installer.This also includes the downloading and configuring of the packages you need. Due to all these changes made on your Dedicated server as you have installed the cpanel you are suggested to reformat the server if you want to uninstall the cPanel and WHM software.
Fresh installation with minimal installation options is suggested.wget and development tool libraries are also required.
-As MySQL, Apache, exim, PHP, etc will be installed by cPanel and WHM it is necessary that you install any of these services beforehand.
-Make sure that package management (or ports) system is properly configured (yum, apt-get, up2date, ports).
-Also ensure that /etc/resolv.conf contains valid name-Dedicated servers that allow you to resolve domains properly.
Example > You can also test this, try: dig domain.com @serverip
SYNTAX : Replace “domain.com” with the name of a well known domain and replace “serverip” with the IP address of a name-server in “/etc/resolv.conf”
A fully qualified domain name that will not be used elsewhere on the server should be the hostname of this server.Already used hostname should never be set by you to a name that is already used (www, ftp, mail, etc) or to the name of an account on the server (www.domain.com).Your hostname should never be a domain name and especially not the name of your domain!!This is what the above written words mean.
If you think that installation for you should be done by cPanel, Inc and you have already obtained a license then, you may request it.IP address, the root password of your Dedicated server and the operating system installed on the server should also be provided.
| Item | Setting |
|---|---|
| /boot | 35 MB (Megabytes) |
| /usr | 8192+ MB (8192MB if you have a 80GB drive, 10240MB for a 100 GB drive, drive20480MB for a 200GB drive, etc.) |
| /var | 2500+ MB |
| /tmp | 512+ MB |
| / | 2048 MB |
| /home | Grow to fill disk |
| swap | 2x memory size |
NOTE : Different partition schemes are suitable for different types of hosting.To be allocated in different ways than others some servers may require space.This recommended scheme is an attempt to provide enough space for many different types of hosting but it is no substitution for real world experience. This partition scheme may need to be varied to suit the needs of your specific setup.
The “/tmp” directory is a special directory that is required to be writable by all users and processes on the system. In general, directories that are writable by all users and processes are a cause for security concern, however this directory is a special case. To minimize any security impact as a result of having an unsecured directory will verify and potentially remount the partition with the “no exec” option. Additionally, the installer will ensure that the sticky bit is set on the directory and that the other permissions are correct. If “/tmp” is not mounted on a separate partition, the installer will create a file system disk image of 512 MB and mount “/tmp” on the newly created disk image with the “no exec” directive. Under most circumstances, 512 MB is sufficient for the “/tmp” partition; however, your system may require additional space. It is therefore recommended that you include a separate partition for the “/tmp” mount point (sized according to your size specification) prior to installing cPanel.
Custom Configurations
Number of tools are provided by the cPanel within the cPanel and WHM Software to handle custom server and client configurations.Tools like those in our EasyApache system which allow you to configure modules, compile options, httpd.conf modifications, etc.
At this time, the following configurations are not recommended and not supported by cPanel:
- Network Address Translation (NAT)
- Operating systems not listed as supported on www.cpanel.net
Choosing to use one of the above configurations can and most likely will result in unexpected experiences when trying to use cPanel and WHM.It is strongly recommend that you do not use them.
Minimum System Requirements
- P266
- 256 Meg of ram
- 20 GB of space (Partition sizes required to host multiple account. Less than 500MB is needed for new files)
Make sure you are logged in as root and perform the following commands:
- # cd /home
- # wget http://layer1.cpanel.net/latest
- # sh latest
The installer has now started, and can take between 30 and 60 minutes depending on your machine. If you are asked any questions press the Enter key or q if there is no default. After the installation has completed, you will need to setup WebHost Manager. You can refer to logging on for the first time for more information.
Important : To install cPanel you must have a stable Internet connection. The installation will be aborted,if your shell session disconnects during the installation of cPanel.The installation can be restarted if you want to by using sh latest, it is recommend that you format your machine and start over, ensuring there are no problems with the installation.


















i tried your method on a fresh debian but this is what i get when i try to start cpanel
Starting cPanel services: [ OK ]
Starting cPanel brute force detector services: [ OK ]
Starting cPanel dav services: [FAILED]
Starting pop3 services: [ OK ]
Starting cPanel Chat services:
Starting Melange Chat services:
Starting cPanel ssl services: [ OK ]
Starting cPanel Queue services: [FAILED]
Starting tailwatchd: [ OK ]
Starting cPanel Log services: [ OK ]
Starting mailman services: [ OK ]
And it doesn’t work
[...] to the following screen Click Next to Continue. … Mail (will not be published) (required) …How to Setup cpanel on debian OS ? | Affordable Web Hosting …Comprehensive installers that take most of the effort out of installing the complex cPanel and WHM [...]