{"id":1,"date":"2016-02-24T13:56:08","date_gmt":"2016-02-24T18:56:08","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=1"},"modified":"2026-10-23T09:51:48","modified_gmt":"2026-10-23T13:51:48","slug":"how-to-install-cpanel-on-centos-without-errors","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/how-to-install-cpanel-on-centos-without-errors\/","title":{"rendered":"How to Install cPanel &#038; WHM Without Errors (AlmaLinux, CloudLinux, Ubuntu)"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-sliders-h\" style=\"color:#00D4FF;\"><\/i> Control Panels<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">How to Install cPanel &amp; WHM Without Errors (AlmaLinux, CloudLinux, Ubuntu)<\/h1>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> Start from a fresh, supported operating system (for example AlmaLinux 9), set a fully qualified hostname, update the system, then run the installer as root inside <code>screen<\/code>: <code>cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest<\/code>. When it finishes, open <code>https:\/\/your-server-ip:2087<\/code> and complete the setup in WHM. Most install errors come from a server that is not fresh, a bad hostname, or too little disk space.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#requirements\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Requirements<\/a><\/li>\n<li><a href=\"#which-operating-system-to-choose\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Which operating system to choose<\/a><\/li>\n<li><a href=\"#how-big-should-the-server-be\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">How big should the server be?<\/a><\/li>\n<li><a href=\"#step-1-set-the-hostname\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 1: set the hostname<\/a><\/li>\n<li><a href=\"#step-2-update-the-system\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 2: update the system<\/a><\/li>\n<li><a href=\"#step-3-start-a-screen-session\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 3: start a screen session<\/a><\/li>\n<li><a href=\"#step-4-run-the-installer\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 4: run the installer<\/a><\/li>\n<li><a href=\"#step-5-finish-the-setup-in-whm\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 5: finish the setup in WHM<\/a><\/li>\n<li><a href=\"#step-6-first-things-to-do-after-installing\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 6: first things to do after installing<\/a><\/li>\n<li><a href=\"#common-install-errors-and-how-to-fix-them\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Common install errors and how to fix them<\/a><\/li>\n<li><a href=\"#where-to-read-the-install-log\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Where to read the install log<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"requirements\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-clipboard-check\" style=\"color:#00D4FF;\"><\/i> Requirements<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Requirement<\/th>\n<th style=\"padding:14px;text-align:left;\">What you need<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Operating system<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A fresh install of a supported release. On UnderHost Cloud VPS, cPanel is available on AlmaLinux 8, 9 and 10, CloudLinux 8 and 9, and Ubuntu 22.04 and 24.04.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Fresh server<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">No web server, database server or other control panel installed before cPanel.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Memory and disk<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">cPanel lists at least 2 GB of RAM and 20 GB of disk. Plan for more on a production server. Check cPanel&#8217;s requirements page for the current figures.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Network<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A static public IPv4 address.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Hostname<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A fully qualified domain name that is not used by a website, for example <code>server1.example.com<\/code>.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Licence<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A cPanel licence for the server&#8217;s IP address. You can buy one with your server.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div style=\"background:#FFF7ED;border:1px solid #FDBA74;border-radius:16px;padding:20px 22px;margin:24px 0;\">\n<h3 style=\"margin:0 0 10px;color:#9A3412;font-size:20px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#F97316;\"><\/i> CentOS:<\/h3>\n<p style=\"margin:0;color:#7C2D12;line-height:1.7;\">cPanel no longer installs on CentOS 7 or CentOS 8. If your server still runs CentOS, move to AlmaLinux or CloudLinux. See our <a href=\"https:\/\/underhost.com\/blog\/centos-7-cloudlinux-7-eol-what-underhost-customers-need-to-know-before-july-1-2025\/\">CentOS 7 end-of-life guide<\/a>.<\/p>\n<\/div>\n<h2 id=\"which-operating-system-to-choose\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-info-circle\" style=\"color:#00D4FF;\"><\/i> Which operating system to choose<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">System<\/th>\n<th style=\"padding:14px;text-align:left;\">Choose it when<\/th>\n<th style=\"padding:14px;text-align:left;\">Cost on UnderHost Cloud VPS<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">AlmaLinux<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">You want a stable, free system and most cPanel guides to match your server.<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Free<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">CloudLinux<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">You host many accounts and want per-account CPU and memory limits, CageFS isolation and PHP Selector.<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">+$14.95 a month<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Ubuntu LTS<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Your team already works on Ubuntu and prefers its tools.<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Free<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">For a server that hosts customer accounts or resellers, CloudLinux is usually worth it, because one busy account cannot slow down the others. For a single business running its own sites, AlmaLinux is the simplest choice.<\/p>\n<h2 id=\"how-big-should-the-server-be\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-server\" style=\"color:#00D4FF;\"><\/i> How big should the server be?<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Use<\/th>\n<th style=\"padding:14px;text-align:left;\">Suggested starting point<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A few small business sites<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">2 to 4 CPU cores, 4 GB RAM, 80 GB or more of NVMe storage<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Agency or reseller with dozens of sites<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">4 to 8 cores, 8 to 16 GB RAM, 200 GB or more<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Busy stores or many WordPress sites<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">8 cores or more, 16 GB RAM or more, fast NVMe storage<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">These are starting points, not limits. Watch CPU, memory and disk use in WHM after a few weeks, and upgrade before the server is under constant pressure.<\/p>\n<h2 id=\"step-1-set-the-hostname\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 1: set the hostname<\/h2>\n<p style=\"margin:0 0 18px;\">Pick a hostname under a domain you control, and create an A record for it that points to the server&#8217;s IP address.<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>hostnamectl set-hostname server1.example.com\nhostname -f      # should print server1.example.com<\/code><\/pre>\n<h2 id=\"step-2-update-the-system\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 2: update the system<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code># AlmaLinux, Rocky Linux, CloudLinux\ndnf update -y\n\n# Ubuntu\napt update &amp;&amp; apt upgrade -y<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Reboot if a new kernel was installed, so the installer runs on the updated system.<\/p>\n<h2 id=\"step-3-start-a-screen-session\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 3: start a screen session<\/h2>\n<p style=\"margin:0 0 18px;\">The installer takes a while. Run it inside <code>screen<\/code>, so a dropped SSH connection does not stop it.<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code># AlmaLinux, Rocky Linux, CloudLinux\ndnf install -y screen\n\n# Ubuntu\napt install -y screen\n\nscreen -S cpanel<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">If your connection drops, log back in and reattach with <code>screen -r cpanel<\/code>.<\/p>\n<h2 id=\"step-4-run-the-installer\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 4: run the installer<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">The installer checks the system, installs the packages and builds the configuration. Expect it to take from about 30 minutes to over an hour, depending on the server. When it finishes, it prints the address of WHM.<\/p>\n<h2 id=\"step-5-finish-the-setup-in-whm\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 5: finish the setup in WHM<\/h2>\n<ol style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Open <code>https:\/\/your-server-ip:2087<\/code> and log in as <code>root<\/code>.<\/li>\n<li style=\"margin:0 0 8px;\">Accept the licence agreement.<\/li>\n<li style=\"margin:0 0 8px;\">Enter a contact email address, so the server can send you alerts.<\/li>\n<li style=\"margin:0 0 8px;\">Set the nameservers, or keep the defaults if you use external DNS.<\/li>\n<li style=\"margin:0 0 8px;\">Finish the wizard. WHM opens on the home screen.<\/li>\n<\/ol>\n<h2 id=\"step-6-first-things-to-do-after-installing\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 6: first things to do after installing<\/h2>\n<ul style=\"list-style:none;padding-left:0;\">\n<li style=\"margin:0 0 8px;\">\u2713 <strong>SSL:<\/strong> turn on AutoSSL in <strong>SSL\/TLS &gt; Manage AutoSSL<\/strong>. See our <a href=\"https:\/\/underhost.com\/blog\/free-ssl-install-lets-encrypt-cpanel-centos-servers\/\">free SSL guide<\/a>.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 <strong>Backups:<\/strong> set up <strong>Backup Configuration<\/strong> with an off-site destination. See our <a href=\"https:\/\/underhost.com\/blog\/automatic-cpanel-backup-domain-mysql-with-cron-php\/\">automatic backups guide<\/a>.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 <strong>Firewall:<\/strong> set up a firewall and allow your own IP address before you lock anything down. See our <a href=\"https:\/\/underhost.com\/blog\/how-to-install-and-configure-csf-firewall-on-your-server\/\">CSF firewall guide<\/a>.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 <strong>PHP:<\/strong> choose the default PHP version in <strong>MultiPHP Manager<\/strong> and add the extensions your sites need.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 <strong>Updates:<\/strong> check <strong>Update Preferences<\/strong> so cPanel updates itself automatically.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 <strong>Security:<\/strong> work through our <a href=\"https:\/\/underhost.com\/blog\/top-cpanel-security-tips-to-keep-your-hosting-environment-safe\/\">cPanel security tips<\/a>.<\/li>\n<\/ul>\n<h2 id=\"common-install-errors-and-how-to-fix-them\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Common install errors and how to fix them<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Error or symptom<\/th>\n<th style=\"padding:14px;text-align:left;\">Cause<\/th>\n<th style=\"padding:14px;text-align:left;\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The installer stops and says the server is not fresh<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A web server, MySQL or another panel is already installed<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Reinstall the operating system and run the installer on the clean system.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Hostname warning or failure<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The hostname is not fully qualified, or it is the same as a website domain<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Set a hostname such as server1.example.com with an A record, then run the installer again.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Unsupported operating system<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The release is too old or not supported<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Use a supported release such as AlmaLinux 9.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Not enough disk space<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The disk is too small, or \/home or \/var is on a small partition<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Use a larger disk, or a single partition layout.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Licence error when WHM opens<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">No licence for this IP address yet, or the IP changed<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Buy or move the licence to the server&#8217;s IP. See our <a href=\"https:\/\/underhost.com\/blog\/how-to-fix-cpanel-license-errors-after-ip-address-changes\/\">licence error guide<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The install stopped when SSH dropped<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The installer ran outside screen<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Reinstall the operating system and run the installer inside screen.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"where-to-read-the-install-log\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Where to read the install log<\/h2>\n<p style=\"margin:0 0 18px;\">If the installer fails, the log shows the exact step. It is saved as <code>\/var\/log\/cpanel-install.log<\/code>. Look at the last lines first:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>tail -n 50 \/var\/log\/cpanel-install.log<\/code><\/pre>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Skip the install entirely: order a Cloud VPS or dedicated server with cPanel ready to use, or let our team set it up and secure it.<\/p>\n<p><a href=\"https:\/\/underhost.com\/server-management.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See cPanel management plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I install cPanel on CentOS?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. cPanel no longer supports CentOS. Use a supported system such as AlmaLinux, Rocky Linux, CloudLinux or a supported Ubuntu LTS release.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">How long does a cPanel install take?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Usually from about 30 minutes to over an hour, depending on the server speed and network.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Do I need a licence before installing?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">You can install first, but WHM needs a valid licence for the server&#8217;s IP address to work. Buying the licence with your server avoids interruptions.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I install cPanel on Ubuntu?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Yes, on supported Ubuntu LTS releases. cPanel supports only certain LTS versions, so check the supported list before you install. On UnderHost Cloud VPS, cPanel is offered on Ubuntu 22.04 and 24.04.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I install cPanel on a server that already hosts websites?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. The installer needs a fresh operating system. Move the sites to the new server after cPanel is installed.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-fix-cpanel-license-errors-after-ip-address-changes\/\">How to Fix cPanel License Errors After IP Address Changes<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-fix-usr-bin-crontab-permissions-are-wrong-error-in-cpanel\/\">How to Fix &#8220;\/usr\/bin\/crontab Permissions Are Wrong&#8221; Error in cPanel<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-mongodb-cpanel-server\/\">Updated Guide: How to Install MongoDB on a cPanel Server<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-gmp-cpanel-centos-servers\/\">How to Install GMP on a cPanel Server (EasyApache 4)<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-install-clamav-cpanel\/\">How to Install and Use ClamAV Antivirus in WHM\/cPanel<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Can I install cPanel on CentOS?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. cPanel no longer supports CentOS. Use a supported system such as AlmaLinux, Rocky Linux, CloudLinux or a supported Ubuntu LTS release.\"}}, {\"@type\": \"Question\", \"name\": \"How long does a cPanel install take?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Usually from about 30 minutes to over an hour, depending on the server speed and network.\"}}, {\"@type\": \"Question\", \"name\": \"Do I need a licence before installing?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"You can install first, but WHM needs a valid licence for the server's IP address to work. Buying the licence with your server avoids interruptions.\"}}, {\"@type\": \"Question\", \"name\": \"Can I install cPanel on Ubuntu?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes, on supported Ubuntu LTS releases. cPanel supports only certain LTS versions, so check the supported list before you install. On UnderHost Cloud VPS, cPanel is offered on Ubuntu 22.04 and 24.04.\"}}, {\"@type\": \"Question\", \"name\": \"Can I install cPanel on a server that already hosts websites?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. The installer needs a fresh operating system. Move the sites to the new server after cPanel is installed.\"}}]}<\/script><\/p>\n<h2 id=\"sources\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-book\" style=\"color:#00D4FF;\"><\/i> Sources<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/installation-guide\/\">cPanel documentation: installation guide<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/installation-guide\/system-requirements\/\">cPanel documentation: system requirements<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/cloud-vps.php\">UnderHost Cloud VPS: operating systems and control panels<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Start from a fresh, supported operating system (for example AlmaLinux 9), set a fully qualified hostname, update the system, then run the installer as root inside screen: cd \/home &#038;&#038; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &#038;&#038; sh latest. When it finishes, open https:\/\/your-server-ip:2087 and complete the setup in WHM. Most install errors come from a server that is not fresh, a bad hostname, or too little disk space.<\/p>\n","protected":false},"author":1,"featured_media":302,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,202],"tags":[111,120,110,108,114,109],"class_list":["post-1","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","category-cpanel-whm","tag-tag-almalinux","tag-tag-cloud-vps","tag-tag-cloudlinux","tag-tag-cpanel","tag-tag-ubuntu","tag-tag-whm"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":18,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":7014,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/1\/revisions\/7014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/302"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}