Live Chat Software by NetForChoice |
How to Install cPanel/WHM in RHEL/CentOS 6/5
Posted by Helpdesk System on 28 March 2016 04:50 PM
|
|
cPanel is one of the most popular Commercial control panel for Linux web hosting, It comes with cPanel and Web Host Manager, which makes web hosting easier for you. WHM provides you root level access to your server whereas cPanel provides user level access interface to manage their own web hosting account on the server.
Features of cPanelcPanel control panel is very versatile control panel for managing your hosting servers, It has lots of features which make Web hosting easier for you. Some of them are listed below:
Here In this article, We’ll be covering cPanel & WHM installation on RHEL/CentOS 6.5 and share some more useful information which will help you to manage cPanel & WHM. Installation Prerequisites
Installation of cPanel in RHEL/CentOS 5/6First insure that OS version on which your Linux box is running, To do so, please use following command.
[root@vps ~]# cat /etc/redhat-release CentOS release 6.6 (Final) If you don’t have the latest version, please update your OS to its latest version, In CentOS and RHEL, we can simply do it with yum package installer.
[root@vps home]# yum update Once you’ve ensured the OS version, you don’t have to install any other dependency package cPanel auto installer script does all for you. We can download cPanel installer file with wget command under/home directory. [root@vps home]# cd /home [root@vps home]# wget -N http://httpupdate.cpanel.net/latest Sample Output: --2016-02-24 11:35:18-- http://httpupdate.cpanel.net/latest Resolving httpupdate.cpanel.net... 209.85.80.214, 67.159.2.2, 208.109.109.239, ... Connecting to httpupdate.cpanel.net|209.85.80.214|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://securedownloads.cpanel.net/latest [following] --2016-02-24 11:35:19-- https://securedownloads.cpanel.net/latest Resolving securedownloads.cpanel.net... 208.74.125.44, 208.74.121.38 Connecting to securedownloads.cpanel.net|208.74.125.44|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 25320 (25K) Saving to: “latest”
100%[===================================================================================================================>] 25,320 127K/s in 0.2s
2016-02-24 11:35:20 (127 KB/s) - “latest” saved [25320/25320]
[root@vps home]# ll total 28 -rw-r--r--. 1 root root 25320 Dec 31 00:54 latest
To make the screening continuously do following steps: [root@vps home]# yum install screen Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.coreix.net * epel: mirror.wanxp.id * extras: mirrors.coreix.net * updates: mirrors.coreix.net Resolving Dependencies --> Running transaction check ---> Package screen.x86_64 0:4.0.3-18.el6 will be installed --> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: screen x86_64 4.0.3-18.el6 base 494 k
Transaction Summary ============================================================================================================================================================= Install 1 Package(s)
Total download size: 494 k Installed size: 795 k Is this ok [y/N]: y Downloading Packages: screen-4.0.3-18.el6.x86_64.rpm | 494 kB 00:02 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : screen-4.0.3-18.el6.x86_64 1/1 Verifying : screen-4.0.3-18.el6.x86_64 1/1
Installed: screen.x86_64 0:4.0.3-18.el6
Complete! [root@vps home]# In above output you can see that we have downloaded a file “latest” in our home directory. Next, execute the auto installer script, but we strongly recommended to run cPanel auto installer script in screen mode if you are doing it with SSH because it takes 3-4+ hours to complete the installation depending on your server resources.
[root@vps home]# screen [root@vps home]# sh latest
Sample Output: Verifying archive integrity... All good. Uncompressing cPanel & WHM Installer.............. ____ _ ___| _ \ __ _ _ __ ___| | / __| |_) / _` | '_ \ / _ \ | | (__| __/ (_| | | | | __/ | \___|_| \__,_|_| |_|\___|_| Installer Version v00029 r6849459174e3809f72de2bef81427a8a45399d66 Beginning main installation. ------------------------------------ ------------------------------------ You can detach the screen from auto-installation using Ctrl+A then press D. Sample output: 2016-02-24 12:44:22 225 ( INFO): cPanel install finished in 47 minutes and 20 seconds! 2016-02-24 12:44:22 958 ( INFO): Congratulations! Your installation of cPanel & WHM 11.54 is now complete. The next step is to configure your server. 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087. 2016-02-24 12:44:22 958 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute /scripts/configure_firewall_for_cpanel to accomplish this. 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server. 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): 1. Open your preferred browser 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): 2. Type https://103.35.123.99:2087 in the address bar 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): 3. Enter the word root in the Username text box 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): 4. Enter your root password in the Password text box 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): 5. Click the Login button 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): Visit http://go.cpanel.net/whminit for more information about first-time configuration of your server. 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): Visit http://support.cpanel.net or http://go.cpanel.net/whmfaq for additional support 2016-02-24 12:44:22 958 ( INFO): 2016-02-24 12:44:22 958 ( INFO): Thank you for installing cPanel & WHM 11.54! 2016-02-24 12:44:22 829 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2016-02-24 12:44:22 830 ( WARN): Your system kernel may have been updated. 2016-02-24 12:44:22 831 ( WARN): Current kernel (2.6.32-504.el6.x86_64) has been changed to: 2.6.32-573.18.1.el6.x86_64 2016-02-24 12:44:22 832 ( WARN): Before rebooting the system, please ensure that the installed kernel version is compatible with your deployment. 2016-02-24 12:44:22 842 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
What Auto Installer Script Does for YoucPanel heavily modifies your operating system and that is the reason that no cPanel Uninstalleravailable on the web so far, you need to reformat your server to remove cPanel completely from your server.
Once that script completes its installation, it will shows up that cPanel installation is complete. You may be asked to reboot the server after installation. After that you need to complete the installation wizard from its web based interface and you can access WHM with the following URL. URL: https://Your-Server-IP-Address:2087/ Please login with user “root” and your password. There are some more clicks remaining to complete the cPanel installation. Agree End User License Agreement by clicking “I Agree?/Go to Step 2” button:
Please login with user “root” and your password. There are some more clicks remaining to complete the cPanel installation.
Step 1: Agree End User License Agreement by clicking “I Agree?/Go to Step 2” button: Step 2: Please do provide the working email address and contact SMS address in the column of “Server Contact Email Address” and “Server contact SMS address” respectively because your cPanel sends all important alerts, notification to this EMail-id (Recommended). You can fill the rest details as well, if you have one.
Step 3: Please provide a valid FQDN hostname and Resolver entries for your server in this Networking section, you can use Google resolvers in this section if you don’t have your ISP’s resolvers. Please see the image below.
Step 4: If you have more than one IP attached with your NIC card and you want to set up a specific IP for your Server’s main IP, you can do that from here, to do so please choose the IP from the drop down and click on “Go to Setup 4”.
Step 5: In the 4th setup wizard, you can select DNS server which you want to use. You can choose one of them according to their Advantages, disadvantages and your server resources. Please read the comparison carefully and select the DNS server. Please see the image below.
Step 6: In the same step, please write down Name Servers you want to use in format of ns1/ns2.example.com. Also, Add an A entry for your hostname and nameserver by selecting the check box, please see the image below.
Step 7: You can select and set up different services like FTP, Mail and Cphulk in the Step 5 of this web based wizard, please see the snapshots and description below. You can select FTP server of your choice from this wizard, which you want to use for your server depending on their advantages, disadvantages and depending upon your ease and requirements. Step 8: In the same wizard, you can select your Mail server to be used for all your mailing activities in future. You can add MTAs like Exim with your cPanel in future.
Step 9: Cphulk brute force protection detects and block false password attacks activities and block their IP for your server. You can enable/disable and configure it from this installation wizard. Please see the snapshot below. Last Step 6, allows you to enable quotas which helps you to track down the disk space usages.
Please select “Use file system quotas” and click on “Finish setup wizard” to complete the Installation process. Once you are done with Installation, WHM’s home page will Appear like below..
Sometimes, cPanel installer script is not able to update the license because of firewall or resolvers entries and you’ll see trial warning in the page. You can do it manually with following command. root@server1 [~]# /usr/local/cpanel/cpkeyclt
Other Useful thing to know before you start working with Cpanel and WHM. CPanel Backend Files
Important conf files
| |
|