{"id":2201,"date":"2018-10-31T20:02:29","date_gmt":"2018-10-31T20:02:29","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2201"},"modified":"2018-11-02T10:23:48","modified_gmt":"2018-11-02T10:23:48","slug":"how-to-install-cpanel-and-whm-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/how-to-install-cpanel-and-whm-on-centos-7\/","title":{"rendered":"How to Install cPanel and WHM on CentOS 7"},"content":{"rendered":"<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-cPanel-on-CentOS-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Install-cPanel-on-CentOS-7.jpg\" alt=\"How to Install cPanel on CentOS 7\" width=\"742\" height=\"372\" \/><\/a><\/p>\n<p>How to Install cPanel on CentOS 7<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/installing-cpanel-in-centos-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/installing-cpanel-in-centos-7.jpg\" alt=\"\" width=\"79\" height=\"48\" \/><\/a>cPanel is the most popular and most widely-used control panel for managing and automating web hosting tasks. It is the world\u2019s most intuitive and user-friendly control panel, with a very simple and straight-to-the-point graphical interface. cPanel is a Linux-based web hosting control panel, that utilizes a 3 tier structure for system administrators, resellers and end-user website owners, all via a web-browser. Other than the beautiful user interface, cPanel has command line access and API-based access for third-party software integration, for web hosting providers or developers and administrators to automate their system administration processes. In this tutorial, we will show you how to install WHM and cPanel on CentOS 7.<\/p>\n<h4>cPanel Installation Requirements<\/h4>\n<ul>\n<li>CentOS 7 VPS<\/li>\n<li>Minimum of 1GB RAM (2GB RAM is recommended)<\/li>\n<li>Minimum 20GB disk space (40GB recommended)<\/li>\n<li>cPanel license (there is also 15 day trial period which gets activated as soon as the installation is complete)<\/li>\n<\/ul>\n<h2>Installation of cPanel in CentOS 7<\/h2>\n<h2>1. Connect to your server<\/h2>\n<p>First, you need to connect to your server via SSH.<\/p>\n<p>To connect to your server via SSH as user root, use the following command:<\/p>\n<p>ssh root@IP_ADDRESS -p PORT_NUMBER<\/p>\n<p>and replace \u201cIP_ADDRESS\u201d and \u201cPORT_NUMBER\u201d with your actual server IP address and SSH port number.<\/p>\n<h2>2. WHM\/cPanel installation<\/h2>\n<p>Cpanel is written in Perl, so before we start the installation you must make sure that you have Perl installed on your server.<\/p>\n<p>To install Perl in your server, run the following command:<\/p>\n<p>yum install perl<\/p>\n<p>WHM\/cPanel also requires that the hostname of your server is a Fully Qualified Domain Name (FQDN) that does not match any of your server\u2019s domains. In our example, we will set the hostname of our server to host.mydomain.com (you can replace mydomain.com with your actual domain name). To change the hostname of your server you can use the following command:<\/p>\n<p>hostnamectl set-hostname host.mydomain.com<\/p>\n<p>To download the cPanel installation script you will need to use the cURL command. If cURL is not present on your server you can install it with the following command:<\/p>\n<p>yum install curl<\/p>\n<p>Before you download the script, let\u2019s change your current directory to \/home with the following command:<\/p>\n<p>cd \/home<\/p>\n<p>You can now download the latest version of cPanel &amp; WHM with:<\/p>\n<p>curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest<\/p>\n<p>To start the installation, execute the following command:<\/p>\n<p>sh latest<\/p>\n<p>You should see the following output on your screen, indicating that the installation has been started:<\/p>\n<p>Verifying archive integrity&#8230; All good.<br \/>\nUncompressing cPanel &amp; WHM Installer&#8230;&#8230;<br \/>\n____ _<br \/>\n___| _ __ _ _ __ ___| |<br \/>\n\/ __| |_) \/ _` | &#8216;_ \/ _ |<br \/>\n| (__| __\/ (_| | | | | __\/ |<br \/>\n___|_| __,_|_| |_|___|_|<\/p>\n<p>Installer Version v00080 rfaafe3bcf5b92fd14d1cb80357765325dd0f351a<\/p>\n<p>Beginning main installation.<\/p>\n<p>The installation process may take up to 30 minutes. After the installation is complete, you may be asked to reboot your server. The following output will be displayed on your screen:<\/p>\n<p>cPanel install finished in 17 minutes and 44 seconds!<br \/>\n2018-10-19 13:08:18 1195 ( INFO): Congratulations! Your installation of cPanel &amp; WHM 11.74 is now complete. The next step is to configure your server.<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.<br \/>\n2018-10-19 13:08:18 1195 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute \/scripts\/configure_firewall_for_cpanel to accomplish this.<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): 1. Open your preferred browser<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): 2. Type https:\/\/1.2.3.4:2087 in the address bar<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): 3. Enter the word root in the Username text box<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): 4. Enter your root password in the Password text box<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): 5. Click the Login button<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): Visit https:\/\/go.cpanel.net\/whminit for more information about first-time configuration of your server.<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): Visit http:\/\/support.cpanel.net or https:\/\/go.cpanel.net\/whmfaq for additional support<br \/>\n2018-10-19 13:08:18 1195 ( INFO):<br \/>\n2018-10-19 13:08:18 1195 ( INFO): Thank you for installing cPanel &amp; WHM 11.74!<\/p>\n<p>You can now open your browser and navigate to https:\/\/your-server-ip:2087<\/p>\n<p>This will give you access to WHM (Web Host Manager) from where you can finish the installation in your browser. WHM is a web hosting manager that allows administrative access so you can manage every cPanel hosting account on your server.<\/p>\n<p>With WHM you can create cPanel user accounts, manage them, establish pricing tiers, monitor the services running on the server and the server resources, generate user backups, transfer data between WHM hosts, and more.<\/p>\n<p>To log in, enter \u201croot\u201d as username and use your root password.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/centos-cpanel-install.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/centos-cpanel-install.png\" alt=\"centos cpanel install\" width=\"359\" height=\"371\" \/><\/a><\/p>\n<p>Once logged in, you need to read the cPanel and WHM End User License Agreement and then click on I Agree\/Go to Step 2 to proceed to the next step.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-cpanel-on-centos.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-cpanel-on-centos.jpg\" alt=\"how to install cpanel on centos\" width=\"650\" height=\"554\" \/><\/a><\/p>\n<p>You will be taken to the Set Up Networking part of the configuration. Here you will need to enter your contact information. Enter your email address in the Server Contact Email Address field. In the Hostname section, you will also be able to enter a new hostname.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-cpanel-whm-centos-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-cpanel-whm-centos-7.jpg\" alt=\"install cpanel whm centos 7\" width=\"650\" height=\"516\" \/><\/a><\/p>\n<p>In the Resolvers section, cPanel will automatically detect and fill in the details with the resolvers provided by your internet service provider. If your ISP does not have DNS resolvers, you can use Google\u2019s public DNS resolvers. The last section lets you choose the Main Network or Ethernet Device. After you are done, you can click on Save and Go to Step 3.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/centos-7-cpanel-install.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/centos-7-cpanel-install.jpg\" alt=\"centos 7 cpanel install\" width=\"563\" height=\"655\" \/><\/a><\/p>\n<p>In Step 3, you will be able to set your server\u2019s main IP address. You can also add additional IPs if you have more than one IP address assigned to your server. Once you are done with this step, you can click on Go to Step 4.<\/p>\n<p>In Step 4, you can choose your Nameserver Configuration. There are multiple options available and you can check the advantages and disadvantages of each of them. It is recommended that you choose the BIND name server option. If you do not want to have DNS server on your VPS you can choose the Disabled option.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-cpanel-centos.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-cpanel-centos.jpg\" alt=\"install cpanel centos\" width=\"550\" height=\"325\" \/><\/a><\/p>\n<p>If you scroll down, you will also be able to enter the nameservers that will be assigned to your server (for example ns1.mydomain.com\/ns2.mydomain.com). In the end, you will need to check the Add \u201cA Entries\u201d for Hostname checkbox and enter your server IP address. When you are done, click on Save and Go to Step 5.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/installing-cpanel-on-centos-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/installing-cpanel-on-centos-7.jpg\" alt=\"installing cpanel on centos 7\" width=\"550\" height=\"444\" \/><\/a><\/p>\n<p>In the next step, you can choose which FTP server you would like to use on your server. The recommended option is Pure-FTPD, but if you want to use an FTP server you can choose the Disabled option. You can also enable and configure the cPHulk Brute Force Protection on this page.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-cpanel-centos-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/install-cpanel-centos-7.jpg\" alt=\"install cpanel centos 7\" width=\"500\" height=\"418\" \/><\/a><\/p>\n<p>And finally, on the last step, you will be able to choose to enable file system quotas or not. If you want to be able to track the amount of disk space used by individual users, you should make sure that file system quotas are enabled. To finish the initial configuration click on the Finish button.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Installation-of-cPanel-in-CentOS-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Installation-of-cPanel-in-CentOS-7.jpg\" alt=\"Installation of cPanel in CentOS 7\" width=\"550\" height=\"331\" \/><\/a><\/p>\n<p>You can now access the main WHM home page. If you already have a valid cPanel license and it is not yet activated on your server, you can log back to your server via SSH and run the following command:<\/p>\n<p>\/usr\/local\/cpanel\/cpkeyclt<\/p>\n<p>And that\u2019s it. WHM\/cPanel has now been installed on your server. For more information about cPanel, its features, and configuration, you can check the <a href=\"https:\/\/documentation.cpanel.net\/\" target=\"_blank\" rel=\"noopener\">official cPanel documentation page<\/a>.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/cpanel-installation-on-centos-7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/cpanel-installation-on-centos-7.jpg\" alt=\"cpanel installation on centos 7\" width=\"237\" height=\"50\" \/><\/a>Of course, you don\u2019t have to Install cPanel on CentOS 7 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\">cPanel hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Install cPanel on CentOS 7, for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p>PS. If you liked this post, on Installing cPanel on CentOS 7, please share it with your friends on the social networks using the buttons below or simply leave a comment in the comments section. Thanks.<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=262226\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Install cPanel on CentOS 7 cPanel is the most popular and most widely-used control panel for managing and automating web hosting tasks. It is the world\u2019s most intuitive and user-friendly control panel, with a very simple and straight-to-the-point graphical interface. cPanel is a Linux-based web hosting control panel, that utilizes a 3 tier &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/how-to-install-cpanel-and-whm-on-centos-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install cPanel and WHM on CentOS 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2201","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=2201"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2201\/revisions"}],"predecessor-version":[{"id":2379,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2201\/revisions\/2379"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}