{"id":22316,"date":"2021-06-18T14:22:29","date_gmt":"2021-06-18T14:22:29","guid":{"rendered":"https:\/\/www.itrcp.com\/blog\/?p=22316"},"modified":"2025-09-22T14:11:40","modified_gmt":"2025-09-22T14:11:40","slug":"how-to-install-cpanel-on-centos-7-cloudlinux-rhel","status":"publish","type":"post","link":"https:\/\/www.itrcp.com\/blog\/learn\/how-to-install-cpanel-on-centos-7-cloudlinux-rhel.html","title":{"rendered":"How to install cpanel on centos 7 \/ CloudLinux \/ RHEL"},"content":{"rendered":"\n<figure class=\"wp-block-gallery columns-0 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><\/ul><\/figure>\n\n\n\n<p>The CentOS Linux distribution is a stable, predictable, manageable and reproducible platform derived from the sources of Red Hat Enterprise Linux (RHEL). It will expand on that by creating the resources needed by other communities to come together and be able to build on the CentOS Linux platform. And today we start the process by delivering a clear governance model, increased transparency and access. In the coming weeks we aim to publish our own roadmap that includes variants of the core CentOS Linux.<\/p>\n\n\n\n<p>This guide will help you get up and running with cPanel on your CentOS 7 server. You may obtain a license from the\u00a0<a href=\"https:\/\/store.cpanel.net\/\">cPanel Store<\/a>\u00a0or your Hosting provider will issue a CPanel license<\/p>\n\n\n\n<p>let\u2019s get started with CPanel<\/p>\n\n\n\n<p><strong>Prepare for the Installation<\/strong><\/p>\n\n\n\n<p>before running the install script please set the\u00a0<a href=\"https:\/\/www.itrcp.com\/blog\/learn\/how-to-change-hostname-in-centos-7.html\">hostname on centos 7<\/a>\u00a0server<\/p>\n\n\n\n<p>change your current hostname, execute the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nod home]# hostnamectl set-hostname server1.mydomain.com --static\n<\/code><\/pre>\n\n\n\n<p>In order to perform the above command, You must disable OS firewalls before you run the cPanel &amp; WHM installation and disable SELinux on your server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nod home]# vi \/etc\/selinux\/config\n<\/code><\/pre>\n\n\n\n<p>SELINUX=disabled<br>SELINUXTYPE=targeted<\/p>\n\n\n\n<p>save and exit<\/p>\n\n\n\n<p><strong>Install cPanel<\/strong><\/p>\n\n\n\n<p>4. To install cPanel &amp; WHM on your server, execute the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nod home]# cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest &amp;&amp; sh latest<\/code><\/pre>\n\n\n\n<p>Note that the installation process may take a long time to complete. Once the installation has been completed, you should see the following output<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): Congratulations! Your installation of cPanel &amp; WHM 11.88 is now complete. The next step is to configure your server. \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): 1. Open your preferred browser\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): 2. Navigate to the following url using the address bar and enter this one-time autologin url:\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): https:\/\/10.100.100.10:2087\/cpsess2288961282\/login\/?session=root%3aVriGxQMrP6HMFpLM%3acreate_user_session%2c360b306520e2625a42835223c06ac305\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): After the login url expires you generate a new one using the 'whmlogin' command or manually login at:\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): https:\/\/10.100.100.10:2087\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): Visit https:\/\/go.cpanel.net\/whminit for more information about first-time configuration of your server.\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): Visit http:\/\/support.cpanel.net or https:\/\/go.cpanel.net\/allfaq for additional support\n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): \n&#91;2020-07-04 10:04:10 +0000] &#91;2480] ( INFO): Thank you for installing cPanel &amp; WHM 11.88!\nRemoving \/root\/installer.lock.<\/code><\/pre>\n\n\n\n<p>Next, open your web browser and type the URL https:\/\/domainip:2087 to access to WHM \/ cPanel login screen<\/p>\n\n\n\n<p>That\u2019s it! You\u2019ve just installed CPanel on your server, You can acquire the license from Cpanel and enjoy your personal hosting or business hosting.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The CentOS Linux distribution is a stable, predictable, manageable and reproducible platform derived from the sources of Red Hat Enterprise Linux (RHEL). It will expand on that by creating the resources needed by other communities to come together and be able to build on the CentOS Linux platform. And today we start the process by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-22316","post","type-post","status-publish","format-gallery","has-post-thumbnail","hentry","category-learn","post_format-post-format-gallery"],"_links":{"self":[{"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/posts\/22316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/comments?post=22316"}],"version-history":[{"count":3,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/posts\/22316\/revisions"}],"predecessor-version":[{"id":22322,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/posts\/22316\/revisions\/22322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/media\/401"}],"wp:attachment":[{"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/media?parent=22316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/categories?post=22316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itrcp.com\/blog\/wp-json\/wp\/v2\/tags?post=22316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}