{"id":18355,"date":"2026-09-29T19:52:43","date_gmt":"2026-09-29T16:52:43","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/install-cpanel-whm\/"},"modified":"2026-11-22T18:53:00","modified_gmt":"2026-11-22T15:53:00","password":"","slug":"install-cpanel-whm","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/install-cpanel-whm\/","title":{"rendered":"Installing cPanel and WHM on a New Server: Requirements, the Install Command and First-Run WHM Setup"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>Requirements and the command<\/b>On a fresh server with a supported OS (such as AlmaLinux, Rocky Linux, CloudLinux or Ubuntu in versions cPanel supports), set the hostname, then run the official installer as root. When it finishes, open <code>https:\/\/your-hostname:2087<\/code> and complete the first-run wizard.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18355-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-install-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-install-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-install-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-install-en.mp4<\/a><\/video><\/div><\/div>\n<p>cPanel only installs on a clean server: no other control panel and no web or mail server already installed. Hyyat Host VPS plans come without a control panel, so this guide is for anyone installing cPanel on their own server with a cPanel licence. If you are comparing panels first, see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-whm-on-vps\/\">cPanel and WHM on a VPS<\/a>.<\/p>\n<h2>Before installing<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Requirement<\/th>\n<th>Detail<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A supported OS<\/td>\n<td>The list changes with versions, so check cPanel\u2019s official requirements page before choosing<\/td>\n<\/tr>\n<tr>\n<td>A clean server<\/td>\n<td>Straight after the OS install, with no Apache, MySQL or other panel<\/td>\n<\/tr>\n<tr>\n<td>A fully qualified hostname<\/td>\n<td>Such as <code>server.example.com<\/code>, not the main domain itself, with an A record pointing to the server IP<\/td>\n<\/tr>\n<tr>\n<td>A cPanel licence<\/td>\n<td>Activated on the server IP. Without it the install runs as a trial<\/td>\n<\/tr>\n<tr>\n<td>Root access<\/td>\n<td>Over SSH, as in <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-connect-to-a-server-via-ssh\/\">connecting with SSH<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Installing<\/h2>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-sv-t-install.webp\" alt=\"Commands to install cPanel and WHM: set the hostname and run the installer\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<ol class=\"hkb-steps\">\n<li><b>Set the hostname<\/b> <code>hostnamectl set-hostname server.example.com<\/code>.<\/li>\n<li><b>Run inside screen<\/b> the install is long, and <code>screen<\/code> protects it from a dropped connection.<\/li>\n<li><b>Run the install command<\/b> as shown. The script downloads cPanel and installs every service.<\/li>\n<li><b>Wait for it to finish<\/b> it can take a long time depending on the server and connection. At the end it shows the WHM link.<\/li>\n<\/ol>\n<div class=\"hkb-note warn\">Do not interrupt the install or reboot during it. If it breaks off for any reason, the safest path is reinstalling the OS and starting again.<\/div>\n<h2>WHM\u2019s first-run wizard<\/h2>\n<p>The first time you log in to WHM as root, a short wizard runs:<\/p>\n<ol class=\"hkb-steps\">\n<li><b>Agreement and licence<\/b> you accept cPanel\u2019s terms and the licence is checked.<\/li>\n<li><b>Contact details<\/b> an address for server alerts. Use one on a domain hosted elsewhere.<\/li>\n<li><b>Networking<\/b> the hostname and the DNS resolvers the server uses.<\/li>\n<li><b>Nameservers<\/b> such as ns1 and ns2 on your domain, if the server will host DNS for sites.<\/li>\n<\/ol>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-sv-w-basic.webp\" alt=\"WHM Basic WebHost Manager Setup for contacts and basic settings\" width=\"800\" height=\"457\" loading=\"lazy\" \/><\/figure>\n<p>All of this can be changed later in <b>Server Configuration, then Basic WebHost Manager Setup<\/b>.<\/p>\n<h2>Right after installing<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Task<\/th>\n<th>Guide<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A firewall<\/td>\n<td><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/csf-firewall-whm\/\">Installing CSF<\/a><\/td>\n<\/tr>\n<tr>\n<td>Free SSL certificates<\/td>\n<td><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/enable-autossl-whm\/\">AutoSSL<\/a><\/td>\n<\/tr>\n<tr>\n<td>Automatic backups<\/td>\n<td><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/configure-backups-whm\/\">Backup Configuration<\/a><\/td>\n<\/tr>\n<tr>\n<td>Automatic updates<\/td>\n<td><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/enable-automatic-cpanel-whm-updates\/\">Update Preferences<\/a><\/td>\n<\/tr>\n<tr>\n<td>A first package and account<\/td>\n<td><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/create-hosting-package-whm\/\">create a package<\/a>, then <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/create-a-new-website-using-whm-cpanel\/\">create an account<\/a><\/td>\n<\/tr>\n<tr>\n<td>Basic hardening<\/td>\n<td><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/5-tips-to-secure-your-cpanel-server\/\">securing a cPanel server<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Common install errors<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Problem<\/th>\n<th>Cause and fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>The script will not start<\/td>\n<td>The OS is unsupported or not clean. Reinstall a supported OS from the provider panel<\/td>\n<\/tr>\n<tr>\n<td>Hostname rejected<\/td>\n<td>It must be fully qualified with at least two dots, such as server.example.com<\/td>\n<\/tr>\n<tr>\n<td>Stops while downloading packages<\/td>\n<td>A network or DNS problem on the server. Check <code>ping<\/code> to an outside site<\/td>\n<\/tr>\n<tr>\n<td>WHM will not open afterwards<\/td>\n<td>Port 2087 is closed at the provider\u2019s firewall, or the service has not started. Try <code>\/scripts\/restartsrv_cpsrvd<\/code><\/td>\n<\/tr>\n<tr>\n<td>Invalid licence message<\/td>\n<td>The licence is not active on the server IP, or the IP differs from the one registered. Check with <code>\/usr\/local\/cpanel\/cpkeyclt<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Installation questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Can I install cPanel on a server that already hosts sites?<\/summary>\n<p>No. The server must be clean. Move the sites in after installing.<\/p>\n<\/details>\n<details>\n<summary>Does cPanel run without a licence?<\/summary>\n<p>Only for a trial period; then it needs a licence activated on the server IP.<\/p>\n<\/details>\n<details>\n<summary>Can cPanel be uninstalled?<\/summary>\n<p>There is no official uninstall. The way back is reinstalling the OS.<\/p>\n<\/details>\n<details>\n<summary>What is the minimum memory?<\/summary>\n<p>Check the minimum on cPanel\u2019s official requirements page, and remember sites and mail need memory on top of that.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-whm-on-vps\/\">cPanel and WHM on a VPS \u2014 The Complete 2026 Guide: What They Are, Licensing, and When to Choose Them<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/csf-firewall-whm\/\">The CSF Firewall on a cPanel Server: What It Does, Installing It from Manage Plugins, and the First Settings<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/create-a-new-website-using-whm-cpanel\/\">Creating a New cPanel Account in WHM: Every Field in Create a New Account Explained<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-connect-to-a-server-via-ssh\/\">How to Connect to a Server via SSH from Windows, Mac and Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/5-tips-to-secure-your-cpanel-server\/\">5 Tips to Secure Your cPanel Server<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/whm-cpanel-control-panels\/\">All WHM guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Requirements and the commandOn a fresh server with a supported OS (such as AlmaLinux, Rocky Linux, CloudLinux or Ubuntu in versions cPanel supports), set the hostname, then run the official installer as root. When it finishes, open https:\/\/your-hostname:2087 and complete the first-run wizard. cPanel only installs on a clean server: no other control panel and [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":21277,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2734],"doc_tag":[],"class_list":["post-18355","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-whm-cpanel-control-panels"],"year_month":"2026-11","word_count":649,"total_views":"5","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WHM\/cPanel","term_url":"https:\/\/www.hyyat.com\/en\/kb\/whm-cpanel-control-panels\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18355"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/21277"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18355"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18355"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}