Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings - Update only one setting speed

Discussion in 'General Discussion' started by morissette, May 5, 2014.

  1. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Is there any way to only update one setting? instead of running through the entire process?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    28
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Hey Matt,

    You can use the API:

    set_tweaksetting

    Ex:

    Code:
    curl -k -H "Authorization: WHM root:$(tr -d '\n' < /root/.accesshash)" "https://localhost:2087/json-api/set_tweaksetting?api.version=1&thing_to_set&value=1"
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    You are my hero. I looked at the API docs for like 40 minutes looking for something.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the solution was helpful. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice