<\/span><\/h2>\nCpanel is written in Perl, so before we start the installation you must make sure that you have Perl installed on your server.<\/p>\n
To install Perl in your server, run the following command:<\/p>\n
yum install perl<\/pre>\nWHM\/cPanel also requires that the hostname of your server is a Fully Qualified Domain Name (FQDN) that does not match any of your server’s 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
hostnamectl set-hostname host.mydomain.com<\/pre>\nTo 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
yum install curl<\/pre>\nBefore you download the script, let’s change your current directory to \/home with the following command:<\/p>\n
cd \/home<\/pre>\nYou can now download the latest version of cPanel & WHM with:<\/p>\n
curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest<\/pre>\nTo start the installation, execute the following command:<\/p>\n
sh latest<\/pre>\nYou should see the following output on your screen, indicating that the installation has been started:<\/p>\n
Verifying archive integrity... All good.\r\nUncompressing cPanel & WHM Installer......\r\n____ _\r\n___| _ \\ __ _ _ __ ___| |\r\n\/ __| |_) \/ _` | '_ \\ \/ _ \\ |\r\n| (__| __\/ (_| | | | | __\/ |\r\n\\___|_| \\__,_|_| |_|\\___|_|\r\n\r\nInstaller Version v00080 rfaafe3bcf5b92fd14d1cb80357765325dd0f351a\r\n\r\nBeginning main installation.<\/pre>\nThe 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
cPanel install finished in 17 minutes and 44 seconds!\r\n2018-10-19 13:08:18 1195 ( INFO): Congratulations! Your installation of cPanel & WHM 11.74 is now complete. The next step is to configure your server.\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.\r\n2018-10-19 13:08:18 1195 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute \/scripts\/configure_firewall_for_cpanel to accomplish this.\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): 1. Open your preferred browser\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): 2. Type https:\/\/1.2.3.4:2087 in the address bar\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): 3. Enter the word root in the Username text box\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): 4. Enter your root password in the Password text box\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): 5. Click the Login button\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): Visit https:\/\/go.cpanel.net\/whminit for more information about first-time configuration of your server.\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): Visit http:\/\/support.cpanel.net or https:\/\/go.cpanel.net\/whmfaq for additional support\r\n2018-10-19 13:08:18 1195 ( INFO):\r\n2018-10-19 13:08:18 1195 ( INFO): Thank you for installing cPanel & WHM 11.74!<\/pre>\nYou can now open your browser and navigate to https:\/\/your-server-ip:2087<\/p>\n
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
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
To log in, enter “root” as username and use your root password.<\/p>\n
<\/p>\n
Once logged in, you need to read the cPanel and WHM\u00a0End User License Agreement <\/strong>and then click on I Agree\/Go to Step 2\u00a0<\/strong>to proceed to the next step.<\/p>\n <\/p>\n
You will be taken to the Set Up Networking\u00a0<\/strong>part of the configuration. Here you will need to enter your contact information.\u00a0 Enter your email address in the Server Contact Email Address<\/strong> field. In the Hostname<\/strong> section, you will also be able to enter a new hostname.<\/p>\n <\/p>\n
In the Resolvers\u00a0<\/strong>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’s public DNS resolvers. The last section lets you choose the\u00a0Main Network or Ethernet Device<\/strong>. After you are done, you can click on Save and Go to Step 3<\/strong>.<\/p>\n <\/p>\n
In Step 3, you will be able to set your server’s 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<\/strong>.<\/p>\nIn Step 4, you can choose your Nameserver Configuration.\u00a0<\/strong>There are multiple options available and you can check the advantages and disadvantages of each of them. It is recommended that you\u00a0choose the BIND<\/strong> name server option. If you do not want to have DNS server on your VPS you can choose the Disabled option.<\/p>\n <\/p>\n
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).\u00a0 In the end, you will need to check the Add “A Entries” for Hostname<\/strong> checkbox and enter your server IP address. When you are done, click on Save and Go to Step 5<\/strong>.<\/p>\n <\/p>\n
In the next step, you can choose which FTP server you would like to use on your server. The recommended option is Pure-FTPD,\u00a0<\/strong>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<\/strong> on this page.<\/p>\n <\/p>\n
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<\/strong> button.<\/p>\n <\/p>\n
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
\/usr\/local\/cpanel\/cpkeyclt\r\n<\/pre>\nAnd that’s it. WHM\/cPanel has now been installed on your server. For more information about cPanel, its features, and configuration,\u00a0\u00a0you can check the official cPanel documentation page.<\/p>\n
<\/p>\n
Of course, you don\u2019t have to\u00a0Install cPanel on CentOS 7<\/strong> if you use one of our 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>\nPS.<\/strong><\/span>\u00a0If you liked this post, on\u00a0Installing cPanel on CentOS 7<\/strong>,\u00a0 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","protected":false},"excerpt":{"rendered":" cPanel is the most popular and most widely-used control panel for managing and automating web hosting tasks. It is … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28863,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13],"tags":[34,46,678],"yoast_head":"\nHow to Install cPanel and WHM on CentOS 7 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n