{"id":2064,"date":"2016-06-23T16:04:32","date_gmt":"2016-06-23T20:04:32","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2064"},"modified":"2018-01-12T14:03:47","modified_gmt":"2018-01-12T19:03:47","slug":"install-cpanel-whm-centos-7","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/","title":{"rendered":"How to Install cPanel \/ WHM on CentOS 7"},"content":{"rendered":"<h1>How to Install cPanel \/ WHM on CentOS 7<\/h1>\n<p>cPanel and WHM are tools that abstract away many complexities of hosting web-based applications. With cPanel running, best practices for installing and upgrading many common web applications are placed at your fingertips, managed by a best-in-class web interface that is well-documented. No longer is it necessary to perform arcane steps to set up websites, create certificates and manage databases. With this control panel, all of these tasks are automated, and can be performed with very little knowledge of how the underlying system works. If you&#8217;re running CentOS 7 and wish to install it, this guide will help you do so.<\/p>\n<h2>Getting Started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running CentOS 7.<\/p>\n<p>When we&#8217;re done, it will be running cPanel, and can host a variety of separate domains and web apps.<\/p>\n<h2>Tutorial<\/h2>\n<p>Start by applying all CentOS 7 security updates and bugfixes. This step should be done regularly to keep your server running securely and efficiently.<\/p>\n<p><code>yum -y update<br \/>\nshutdown -r now<\/code><\/p>\n<p>SELinux is a solid security subsystem, but it also presents some management challenges. For this guide, we&#8217;ll disable SELinux to make things easier. In general, SELinux does not play well with services like cPanel that attempt to manage underlying aspects of your server.<\/p>\n<p><code> setenforce 0<br \/>\nsed -i 's\/enforcing\/disabled\/' \/etc\/sysconfig\/selinux<\/code><\/p>\n<p>We must also disable the firewall, since cPanel will be securely managing any services it needs. cPanel also expects to run services on arbitrary ports, and leaving the firewall active will complicate initial setup.<\/p>\n<p><code>systemctl stop firewalld.service<br \/>\nsystemctl disable firewalld.service<\/code><\/p>\n<p>A valid hostname must be set on the server for it to operate. We&#8217;ll set that up in this step.<\/p>\n<p><code> hostnamectl set-hostname server.yourdomain.com<\/code><\/p>\n<p>cPanel is packaged as its own installer. As such, you&#8217;ll need to download and run that to start the process.<\/p>\n<p><code> cd \/home<br \/>\ncurl -o latest -L https:\/\/securedownloads.cpanel.net\/latest<br \/>\nsh latest <\/code><\/p>\n<p>When the installation completes, go to your WHM management area to continue. It can be accessed at https:\/\/your_ip:2087.<\/p>\n<h2>Conclusion<\/h2>\n<p>You now have a complete cPanel\/WHM installation. With this task accomplished, it is now time to start creating and deploying other websites and services to your new server. If this guide was helpful to you, kindly share it with others who may also be interested.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to Install cPanel \/ WHM on CentOS 7 cPanel and WHM are tools that abstract away many complexities of hosting web-based applications. With cPanel running, best practices for installing and upgrading many common web applications are placed at your fingertips, managed by a best-in-class web interface that is well-documented. No longer is it necessary<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,70],"tags":[],"class_list":["post-2064","post","type-post","status-publish","format-standard","hentry","category-monitoring","category-web-hosting","operating_system-centos-7"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install cPanel \/ WHM on CentOS 7 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will walk you through the installation of cPanel \/ WHM on your CentOS 7 server. Read now &amp; start installing and upgrading your web apps !\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/\" \/>\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 CentOS 7 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will walk you through the installation of cPanel \/ WHM on your CentOS 7 server. Read now &amp; start installing and upgrading your web apps !\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-23T20:04:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T19:03:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/\",\"name\":\"How to Install cPanel \/ WHM on CentOS 7 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-06-23T20:04:32+00:00\",\"dateModified\":\"2018-01-12T19:03:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will walk you through the installation of cPanel \/ WHM on your CentOS 7 server. Read now & start installing and upgrading your web apps !\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install cPanel \/ WHM on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install cPanel \/ WHM on CentOS 7 - Globo.Tech","description":"This tutorial will walk you through the installation of cPanel \/ WHM on your CentOS 7 server. Read now & start installing and upgrading your web apps !","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:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install cPanel \/ WHM on CentOS 7 - Globo.Tech","og_description":"This tutorial will walk you through the installation of cPanel \/ WHM on your CentOS 7 server. Read now & start installing and upgrading your web apps !","og_url":"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/","og_site_name":"Globo.Tech","article_published_time":"2016-06-23T20:04:32+00:00","article_modified_time":"2018-01-12T19:03:47+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/","url":"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/","name":"How to Install cPanel \/ WHM on CentOS 7 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-06-23T20:04:32+00:00","dateModified":"2018-01-12T19:03:47+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will walk you through the installation of cPanel \/ WHM on your CentOS 7 server. Read now & start installing and upgrading your web apps !","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-cpanel-whm-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install cPanel \/ WHM on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2064"}],"version-history":[{"count":3,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2064\/revisions"}],"predecessor-version":[{"id":4079,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2064\/revisions\/4079"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}