WHM (Web Host Manager)

From Hostek.com Wiki
Revision as of 21:35, 10 June 2015 by Seanc (Talk | contribs)

Jump to: navigation, search

WHM Help

WHM Documentation

  • The link below will send you to the WHM Documentation, this will familiarize you with the interface and it's functions:
  1. https://documentation.cpanel.net/pages/viewpage.action?pageId=1507786
  2. For a different version of WHM, please see this page: https://documentation.cpanel.net/pages/viewpage.action?pageId=1507796

cPanel Video Tutorials

  • The link below will send you to our SmarterMail Video Tutorials Wiki:
  1. https://wiki.hostek.com/CPanel_Tutorials#WHM_.5BReseller_or_VPS.5D

Common WHM Errors

  • This wiki goes over known WHM errors that appear often and provides fixes and workarounds for them.
Using nameservers with the following IPs: xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. 
Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.
  • If you haven't pointed the domain to your VPS yet, or DSN hasn't propagated you may get this error.
  • A work around:
  1. Log in to WHM.
  2. Select Server Configuration.
  3. Select Tweak Settings.
  4. Select the Domains tab.
  5. Change the setting for Allow Remote Domains.
  6. Click Save.

Linux/cPanel VPS

  • If you're unable to login to WHM/cPanel like your normally do, chances are that you could be blocked by the cPHulk Brute Force Protection system that is part of cPanel. cPHulk blocks brute force attacks based on the number of failed logins from a specific IP.

How to clear a cPHulk Block (GUI)

If you have access to a computer on a different network (with a different IP)

  1. Login to WHM
  2. If you're able to login to go Security Center
  3. Find the cPHulk Brute Force Protection feature
  4. From here you are able to view and clear the blocked IPs and failed login attempts.

If you don't have access to a computer on a different network

  1. SSH into the VPS
  2. Temporarily Disable cPHulk with this command:
    1. /usr/local/cpanel/bin/cphulk_pam_ctl --disable
  3. Login go WHM
  4. Go to Security Center
  5. Select cPHulk Brute Force Protection
  6. From here you are able to view and clear the blocked IPs and failed login attempts.
  7. Once you clear the block enable cPHulk.
    1. You can do this in the WHM cPHulk Brute Force Protection page or by running the following command in SSH:
    2. /usr/local/cpanel/bin/cphulk_pam_ctl --enable

Clear cPHulk Block (Non-GUI)

  • If for some reason you need to clear the blocks directly from the database, here is how you do it:
  1. SSH into your VPS
  2. Run this command:
    1. mysql
  3. And this one:
    1. use cphulkd;
cPHulk SSH Commands
Description Syntax
To view the blocks:
SELECT * FROM brutes;
To view the login attempts:
SELECT * FROM logins;
To clear all blocks:
DELETE FROM brutes;
To clear all login attempts:
DELETE FROM logins;
To delete a block on a specific IP:
DELETE FROM brute WHERE IP = '0.0.0.0';
To delete login attempts on a specific IP:
DELETE FROM logins WHERE IP = '0.0.0.0';
  • For these changes to take effect you will need to Stop and Start (Restart) the cPHulk Service with these commands:
  1. /usr/local/cpanel/bin/cphulk_pam_ctl --disable
  2. /usr/local/cpanel/bin/cphulk_pam_ctl --enable