The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question regarding whostmgr

Discussion in 'General Discussion' started by penguinbliss, Jul 3, 2012.

  1. penguinbliss

    penguinbliss Member

    Joined:
    Jul 3, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have a cPanel server with centos 6 installed. Basically I myself troubleshoot issues for my clients.

    A basic question I need to ask. When we make changes in /var/cpanel/cpanel.config, /etc/cpupdate.conf etc, we run the following command to save the tweak settings.

    ie, /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings

    my question is why we are specifically using whostmgr2 here, coz I can see whostmgr3, whostmgr4, whostmgr5, whostmgr6 etc in the "bin" directory, why are we not using them instead. Or each of these binaries have special purposes of their own? if have what are they?

    Could anyone please explain to me each of their purpose of usage?

    Any help on this is greatly appreciated ty :)
     
  2. penguinbliss

    penguinbliss Member

    Joined:
    Jul 3, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Can anyone help me?

    Some of my clients raised this question to me, but I don't know it exactly.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The simple answer is because the whostmgr2 binary contains the necessary code for applying changes made to cpanel.config.

    Please note that in most instances it is not necessary to execute 'whostmgr2 --updatetweaksettings'. Usually a restart of the cpsrvd process is all that is needed. Also, changes to /etc/cpupdate.conf are not handled by the whostmgr2 binary. Those changes primarily affect what upcp (scripts/upcp) does.

    In general it's not a good idea to call the whostmgr binaries directly. They are not designed for command line usage. The use of whostmgr2 is a legacy usage we have maintained for backwards compatibility.
     
  4. penguinbliss

    penguinbliss Member

    Joined:
    Jul 3, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    wow ty for the info :)
    I understood it well.
     
Loading...

Share This Page