{"id":16797,"date":"2025-04-04T19:17:43","date_gmt":"2025-04-04T17:17:43","guid":{"rendered":"https:\/\/tremhost.com\/blog\/?p=16797"},"modified":"2025-04-04T19:17:43","modified_gmt":"2025-04-04T17:17:43","slug":"how-to-install-cpanel-whm-on-a-vps","status":"publish","type":"post","link":"https:\/\/tremhost.com\/blog\/how-to-install-cpanel-whm-on-a-vps\/","title":{"rendered":"How to install cPanel\/WHM on a VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><h1>How to Install cPanel\/WHM on a VPS<\/h1>\n<p>Installing cPanel\/WHM on your VPS gives you a powerful web hosting control panel for managing websites, email accounts, DNS, and more. Follow these steps to install cPanel\/WHM on a supported VPS (typically running CentOS, AlmaLinux, or CloudLinux) with root access.<\/p>\n<hr \/>\n<h2>1. Prepare Your VPS<\/h2>\n<ul>\n<li><strong>Supported Operating System:<\/strong><br \/>\nEnsure your VPS is running a supported OS such as CentOS 7\/8, AlmaLinux 8, or CloudLinux. A fresh, minimal installation is recommended.<\/li>\n<li><strong>Set a Fully Qualified Domain Name (FQDN):<\/strong><br \/>\nBefore installation, set a proper hostname. For example:<\/p>\n<pre><code class=\"language-bash\">hostnamectl set-hostname server.yourdomain.com\r\n<\/code><\/pre>\n<\/li>\n<li><strong>Update Your System:<\/strong><br \/>\nUpdate packages to ensure your system is up to date:<\/p>\n<pre><code class=\"language-bash\">yum update -y\r\n<\/code><\/pre>\n<\/li>\n<li><strong>Disable SELinux:<\/strong><br \/>\nEdit the SELinux configuration file to disable it (or set it to permissive mode) as cPanel recommends disabling SELinux:<\/p>\n<pre><code class=\"language-bash\">nano \/etc\/selinux\/config\r\n<\/code><\/pre>\n<p>Change <code>SELINUX=enforcing<\/code> to <code>SELINUX=disabled<\/code>, then save and reboot the server:<\/p>\n<pre><code class=\"language-bash\">reboot\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>2. Set Up Required Configurations<\/h2>\n<ul>\n<li><strong>Ensure a Clean Environment:<\/strong><br \/>\nMake sure no other web control panels or conflicting services are installed.<\/li>\n<li><strong>Check for a Valid License:<\/strong><br \/>\ncPanel\/WHM requires a valid license. You can obtain one from cPanel\u2019s website or via your hosting provider after installation.<\/li>\n<\/ul>\n<hr \/>\n<h2>3. Download and Run the cPanel\/WHM Installer<\/h2>\n<ul>\n<li><strong>Log in as Root:<\/strong><br \/>\nAccess your VPS via SSH as the root user.<\/li>\n<li><strong>Download the Installer:<\/strong><br \/>\nRun the following command to download the cPanel installer:<\/p>\n<pre><code class=\"language-bash\">cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest\r\n<\/code><\/pre>\n<\/li>\n<li><strong>Run the Installer:<\/strong><br \/>\nExecute the installer script. Note that this process can take 30-60 minutes, depending on your VPS performance and network speed.<\/p>\n<pre><code class=\"language-bash\">sh latest\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>4. Complete the Installation and Initial Setup<\/h2>\n<ul>\n<li><strong>Access WHM:<\/strong><br \/>\nOnce the installation is complete, open your web browser and navigate to:<\/p>\n<pre><code>https:\/\/your-server-ip:2087\r\n<\/code><\/pre>\n<p>(Replace <code>your-server-ip<\/code> with your VPS\u2019s IP address.)<\/li>\n<li><strong>Log in to WHM:<\/strong><br \/>\nUse the root username and password to log in.<\/li>\n<li><strong>Initial Configuration Wizard:<\/strong><br \/>\nFollow the on-screen wizard to:<\/p>\n<ul>\n<li>Accept the End-User License Agreement (EULA).<\/li>\n<li>Enter your valid cPanel license details (if prompted).<\/li>\n<li>Configure basic settings such as networking, nameservers, and contact information.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Secure Your Installation:<\/strong><br \/>\nWHM provides options to configure firewall rules, enable automatic updates, and set up additional security measures. Take time to review and secure your new installation.<\/li>\n<\/ul>\n<hr \/>\n<h2>Final Thoughts<\/h2>\n<p>Installing cPanel\/WHM on your VPS transforms it into a robust hosting environment, making it easier to manage multiple websites and services. With a supported OS, proper configurations, and a valid cPanel license, you\u2019re ready to leverage one of the industry\u2019s most popular hosting control panels.<\/p>\n<p>Need additional help? Consult cPanel\u2019s official documentation or support forums for further troubleshooting and advanced configuration tips.<\/p>\n<p>Ready to manage your hosting like a pro? Follow these steps, and you&#8217;ll have cPanel\/WHM up and running on your VPS in no time!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Install cPanel\/WHM on a VPS Installing cPanel\/WHM on your VPS gives you a powerful web hosting control panel for managing websites, email accounts, DNS, and more. Follow these steps to install cPanel\/WHM on a supported VPS (typically running CentOS, AlmaLinux, or CloudLinux) with root access. 1. Prepare Your VPS Supported Operating System: Ensure [&hellip;]<\/p>\n","protected":false},"author":1772,"featured_media":16798,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"tdm_status":"","tdm_grid_status":"","footnotes":""},"categories":[163],"tags":[],"class_list":{"0":"post-16797","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-hosting"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/users\/1772"}],"replies":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/comments?post=16797"}],"version-history":[{"count":1,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16797\/revisions"}],"predecessor-version":[{"id":16799,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16797\/revisions\/16799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media\/16798"}],"wp:attachment":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media?parent=16797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/categories?post=16797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/tags?post=16797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}