{"id":13778,"date":"2024-08-26T12:52:53","date_gmt":"2024-08-26T12:52:53","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=13778"},"modified":"2024-11-04T13:03:25","modified_gmt":"2024-11-04T13:03:25","password":"","slug":"how-to-install-cpanel-whm-on-a-vps","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/","title":{"rendered":"How to install cpanel\/WHM on a VPS"},"content":{"rendered":"\n<p>Requirements.<\/p>\n\n\n\n<p>Root access to the server. <\/p>\n\n\n\n<p>cPanel license or use a Trial license.<\/p>\n\n\n\n<p>Almalinux 8 OS<\/p>\n\n\n\n<p>RAM &#8211; 2GB minimum<\/p>\n\n\n\n<p>Disk usage &#8211; 20GB<\/p>\n\n\n\n<p>Supported operating system &#8211; For us we shall be using Almalinux 9<\/p>\n\n\n\n<p>1.Login to the server.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><code>ssh root@server-ip <\/code><\/p>\n\n\n\n<p>2.Run system update by typing.<\/p>\n\n\n\n<p><code>yum -y update <\/code><\/p>\n\n\n\n<p>or <\/p>\n\n\n\n<p><code>dnf -y update <\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"270\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png\" alt=\"\" class=\"wp-image-16589\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-300x79.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-768x202.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47.png 1041w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3. Setup hostname &#8211; The hostname must be a fully qualified domain name.  We shall use srv2.lintsawa.com<\/p>\n\n\n\n<p><code>hostnamectl set-hostname srv2.lintsawa.com<\/code><\/p>\n\n\n\n<p>For changes to be effected immediately, type the command below. <\/p>\n\n\n\n<p><code>exec bash <\/code><\/p>\n\n\n\n<p>4. Now run the cPanel installation script. <\/p>\n\n\n\n<p><code>cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Wait for 10-15 minutes<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>5. Once done access the WHM interface using your IP:PORT<\/p>\n\n\n\n<p>For example <a href=\"https:\/\/23.123.124.125:2087\">https:\/\/23.123.124.125:2087<\/a> or using your hostname <a href=\"https:\/\/srv2.lintsawa.com:2087\">https:\/\/srv2.lintsawa.com:2087<\/a><\/p>\n\n\n\n<p>6.To obtain a one time login url type the command below on your server.<\/p>\n\n\n\n<p><code>whmlogin<\/code><\/p>\n\n\n\n<p>copy the url and paste on the browser and you will auto login without using password.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>That&#8217;s it. You may proceed further with adding other softwares as needed. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirements. Root access to the server. cPanel license or use a Trial license. Almalinux 8 OS RAM &#8211; 2GB minimum Disk usage &#8211; 20GB Supported operating system &#8211; For us we shall be using Almalinux 9 1.Login to the server. ssh root@server-ip 2.Run system update by typing. yum -y update or dnf -y update 3. [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1879],"doc_tag":[],"class_list":["post-13778","docs","type-docs","status-publish","hentry","doc_category-servers"],"year_month":"2026-06","word_count":179,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Kibera","author_nicename":"dan-k","author_url":"https:\/\/truehost.com\/support\/author\/dan-k\/"},"doc_category_info":[{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install cpanel\/WHM on a VPS -<\/title>\n<meta name=\"description\" content=\"Installing cpanel on a VPS server is easy by following the steps outlined in this article. Follow the steps as outlined without skipping...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install cpanel\/WHM on a VPS -\" \/>\n<meta property=\"og:description\" content=\"Installing cpanel on a VPS server is easy by following the steps outlined in this article. Follow the steps as outlined without skipping...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-04T13:03:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/\",\"name\":\"How to install cpanel\\\/WHM on a VPS -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-47-1024x270.png\",\"datePublished\":\"2024-08-26T12:52:53+00:00\",\"dateModified\":\"2024-11-04T13:03:25+00:00\",\"description\":\"Installing cpanel on a VPS server is easy by following the steps outlined in this article. Follow the steps as outlined without skipping...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-47-1024x270.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-47-1024x270.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-cpanel-whm-on-a-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install cpanel\\\/WHM on a VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install cpanel\/WHM on a VPS -","description":"Installing cpanel on a VPS server is easy by following the steps outlined in this article. Follow the steps as outlined without skipping...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to install cpanel\/WHM on a VPS -","og_description":"Installing cpanel on a VPS server is easy by following the steps outlined in this article. Follow the steps as outlined without skipping...","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/","article_modified_time":"2024-11-04T13:03:25+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/","name":"How to install cpanel\/WHM on a VPS -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png","datePublished":"2024-08-26T12:52:53+00:00","dateModified":"2024-11-04T13:03:25+00:00","description":"Installing cpanel on a VPS server is easy by following the steps outlined in this article. Follow the steps as outlined without skipping...","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-47-1024x270.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-cpanel-whm-on-a-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to install cpanel\/WHM on a VPS"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=13778"}],"version-history":[{"count":2,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13778\/revisions"}],"predecessor-version":[{"id":16596,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13778\/revisions\/16596"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=13778"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=13778"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=13778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}