{"id":21924,"date":"2024-05-02T00:53:57","date_gmt":"2024-05-01T21:53:57","guid":{"rendered":"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/"},"modified":"2026-11-12T17:38:11","modified_gmt":"2026-11-12T14:38:11","slug":"how-to-install-cpanel-on-almalinux","status":"publish","type":"post","link":"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/","title":{"rendered":"How to Install cPanel on AlmaLinux (8, 9, 10): Step-by-Step Guide"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Supported_AlmaLinux_Versions_and_Requirements\" >Supported AlmaLinux Versions and Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#What_to_Know_Before_You_Install\" >What to Know Before You Install<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Installing_cPanel_on_AlmaLinux_Step_by_Step\" >Installing cPanel on AlmaLinux Step by Step<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#First_Login_to_WHM_and_Basic_Settings\" >First Login to WHM and Basic Settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Security_After_Installation\" >Security After Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Common_Installation_Problems\" >Common Installation Problems<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Frequently_Asked_Questions\" >Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Is_cPanel_free\" >Is cPanel free?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Can_cPanel_be_installed_on_Windows\" >Can cPanel be installed on Windows?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/sunucun.com.tr\/blog\/how-to-install-cpanel-on-almalinux\/#Can_I_use_a_ready-made_cPanel_instead_of_installing_it_myself\" >Can I use a ready-made cPanel instead of installing it myself?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\"><strong>Short answer:<\/strong> cPanel &amp; WHM is installed on a freshly installed AlmaLinux server, as root, with a single official command: <code>cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest<\/code>. Before running it, set the hostname to a fully qualified domain name (FQDN), disable SELinux and stop the firewall. When the installation finishes, you log in to WHM at <code>https:\/\/server-ip:2087<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Supported_AlmaLinux_Versions_and_Requirements\"><\/span>Supported AlmaLinux Versions and Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">According to cPanel&#8217;s official AlmaLinux requirements page:<\/p>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th>AlmaLinux<\/th><th>Supported cPanel &amp; WHM<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>10<\/td><td>132 or later<\/td><\/tr>\n<tr><td>9<\/td><td>114 or later<\/td><\/tr>\n<tr><td>8<\/td><td>110 or later<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th>Resource<\/th><th>Minimum<\/th><th>Recommended<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Processor<\/td><td>1.1 GHz, 64-bit (ARM is not supported)<\/td><td>\u2014<\/td><\/tr>\n<tr><td>RAM<\/td><td>2 GB<\/td><td>4 GB (at least 3 GB if you&#8217;ll use ClamAV)<\/td><\/tr>\n<tr><td>Disk<\/td><td>20 GB<\/td><td>40 GB<\/td><\/tr>\n<tr><td>IP address<\/td><td>At least one static IPv4 (no DHCP-assigned IP)<\/td><td>\u2014<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re building a new server, choose AlmaLinux 9 or 10; 8 is still supported but is the older release. CentOS is no longer among the operating systems cPanel supports (the supported ones are AlmaLinux, CloudLinux, Rocky Linux and Ubuntu). For background on CentOS, see our <a href=\"https:\/\/sunucun.com.tr\/blog\/what-is-centos\/\">what is CentOS<\/a> article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_to_Know_Before_You_Install\"><\/span>What to Know Before You Install<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Clean operating system:<\/strong> install cPanel only on a freshly installed operating system. Don&#8217;t install it on a server that already has Apache, MySQL or another panel.<\/li>\n<li><strong>No uninstaller:<\/strong> cPanel has no uninstaller; to remove it you have to reinstall the server.<\/li>\n<li><strong>Hostname:<\/strong> it must be a fully qualified name under a registered domain (e.g. <code>server.yourdomain.com<\/code>), must not match any of the sites on the server, must be at most 60 characters and must resolve to the server&#8217;s IP address.<\/li>\n<li><strong>SELinux must be disabled:<\/strong> cPanel doesn&#8217;t support SELinux enforcing mode, and permissive mode isn&#8217;t recommended.<\/li>\n<li><strong>Licence:<\/strong> cPanel is paid; a 15-day free trial is offered for new installations. After that you need a licence.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installing_cPanel_on_AlmaLinux_Step_by_Step\"><\/span>Installing cPanel on AlmaLinux Step by Step<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Connect as root and update the system:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@server-ip\ndnf -y update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Set the hostname<\/strong> and create an A record for it in your domain&#8217;s DNS pointing to the server IP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hostnamectl set-hostname server.yourdomain.com\nhostname -f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Disable SELinux.<\/strong> Check the status with <code>getenforce<\/code>; if it isn&#8217;t &#8220;Disabled&#8221;, change the configuration and reboot:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>getenforce\nsed -i 's\/^SELINUX=.*\/SELINUX=disabled\/' \/etc\/selinux\/config\nreboot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Stop the firewall during installation.<\/strong> cPanel recommends disabling the operating system&#8217;s firewall before installing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop firewalld\nsystemctl disable firewalld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Start the installation in a tmux session.<\/strong> Installation can take a while; use tmux so it isn&#8217;t interrupted if your SSH connection drops. Then run cPanel&#8217;s official install command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf -y install tmux\ntmux new -s cpanel\ncd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the connection drops, reconnect and return to the installation with <code>tmux attach -t cpanel<\/code>. The script installs the required packages (including Perl) itself, and on AlmaLinux 8 it also disables NetworkManager. When it finishes, the WHM login address is shown on screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"First_Login_to_WHM_and_Basic_Settings\"><\/span>First Login to WHM and Basic Settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <code>https:\/\/server-ip:2087<\/code> in your browser. A self-signed certificate warning on first login is normal.<\/li>\n<li>Log in with <strong>root<\/strong> and your root password.<\/li>\n<li>In the initial setup wizard, accept the licence agreement and enter your contact email address and nameservers (ns1\/ns2).<\/li>\n<li>Create your first <a href=\"https:\/\/sunucun.com.tr\/hosting\/\" data-internallinksmanager029f6b8e52c=\"126\" title=\"Web bar\u0131nd\u0131rma paketlerini inceleyin\">hosting<\/a> account in WHM with <strong>Create a New Account<\/strong>; that account&#8217;s user logs in to cPanel at <code>https:\/\/domain:2083<\/code>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">In short: WHM is the server administrator&#8217;s panel (creating accounts, packages, server settings), while cPanel is each hosting account&#8217;s own panel (files, email, databases, domains).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Security_After_Installation\"><\/span>Security After Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Re-enable the firewall:<\/strong> configure the firewall you turned off for the installation to allow the ports cPanel uses (2083, 2087, 2096, web and mail ports) and turn it back on.<\/li>\n<li><strong>Enable cPHulk:<\/strong> cPHulk Brute Force Protection in WHM blocks repeated failed logins.<\/li>\n<li><strong>Harden SSH:<\/strong> switch to key-based login and disable root login with a password. More: <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-prevent-ssh-brute-force-attacks-with-fail2ban\/\">preventing SSH brute-force attacks with Fail2ban<\/a>.<\/li>\n<li><strong>Set up updates and backups:<\/strong> configure automatic updates and off-server backups in WHM.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_Installation_Problems\"><\/span>Common Installation Problems<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Installation stops with a hostname error<\/td><td>The hostname isn&#8217;t an FQDN or matches a site&#8217;s domain<\/td><td>Use a separate name such as <code>server.yourdomain.com<\/code><\/td><\/tr>\n<tr><td>SELinux warning<\/td><td>SELinux is enforcing or permissive<\/td><td>Set it to disabled in \/etc\/selinux\/config and reboot<\/td><\/tr>\n<tr><td>WHM port 2087 won&#8217;t open<\/td><td>Firewall or the provider&#8217;s network filter<\/td><td>Allow 2087; check the security group in your provider&#8217;s panel<\/td><\/tr>\n<tr><td>Installation was interrupted<\/td><td>The SSH connection dropped<\/td><td>Run the installation inside tmux; if needed, start again on a clean system<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Is_cPanel_free\"><\/span>Is cPanel free?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. cPanel offers a 15-day free trial; after that you need a monthly licence priced by the number of accounts. If you&#8217;re looking for a free panel, consider the alternatives.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_cPanel_be_installed_on_Windows\"><\/span>Can cPanel be installed on Windows?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. cPanel runs only on supported Linux distributions (AlmaLinux, CloudLinux, Rocky Linux, Ubuntu). Windows servers use panels such as Plesk.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_I_use_a_ready-made_cPanel_instead_of_installing_it_myself\"><\/span>Can I use a ready-made cPanel instead of installing it myself?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. If you only host websites, a hosting plan that comes with cPanel is the easiest route. If you want full control, get a <a href=\"https:\/\/sunucun.com.tr\/en\/vds-server\">VDS server<\/a> and install it yourself with this guide.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" data-snc=\"svc20261105\">If you&#8217;re looking for hosting with cPanel ready to use, see <a href=\"https:\/\/sunucun.com.tr\/\" data-internallinksmanager029f6b8e52c=\"75\" title=\"Sunucun veri merkezi ve altyap\u0131 \u00e7\u00f6z\u00fcmleri\">Sunucun<\/a>&#8217;s <a href=\"https:\/\/sunucun.com.tr\/en\/hosting\/cpanel-hosting\">cPanel hosting<\/a> plans; for a cPanel licence for your own server, see our <a href=\"https:\/\/sunucun.com.tr\/en\/license-services\">license services<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short answer: cPanel &amp; WHM is installed on a freshly installed AlmaLinux server, as root, with a single official command: cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest. Before running it, set the hostname to a fully qualified domain name (FQDN), disable SELinux and stop the firewall. When the installation finishes, you&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10587,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1473],"tags":[],"class_list":["post-21924","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/21924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=21924"}],"version-history":[{"count":0,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/21924\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media\/10587"}],"wp:attachment":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=21924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=21924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=21924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}