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!

API: Change LVE settings

Discussion in 'cPanel Developers' started by TCB13, Nov 22, 2017.

  1. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    Is it possible to change the LVE settings associated with each cPanel hosting plan (package) using the WHM API?

    I've found this info: CloudLinux Documentation

    However it is related changing individual LVE users limits and not changing the limits globally by applying them to cPanel hosting plans.

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    TCB13 likes this.
  3. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    I have explored that route however I'm sure how to access the CL package extension. I also tried to use this feature: WHM API 1 Functions - _getpkgextensionform - Software Development Kit - cPanel Documentation but it doesn't seem to return anything useful.

    Reading into the doc: "This function retrieves a hosting plan's package extension templates."

    So I have a hosting plan called Standard and tried to query the API via CLI:

    Code:
    whmapi1 _getpkgextensionform pkg=Standard
    ---
    data: {}
    
    metadata:
      command: _getpkgextensionform
      reason: OK
      result: 1
      version: 1
    
    Thank you.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Have you setup LVE package extensions in the past? If not, you'd need to do that first using the instructions at:

    CloudLinux Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thats interesting, I was only using the LVE manger interface not the package extension. I'll take a look into that son, thank you!
     
  6. TCB13

    TCB13 Well-Known Member

    Joined:
    Jul 25, 2014
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Seems like there is some bug with that feature. Whenever I change the CPU / RAM limits with the "Edit a Package" menu the change will not appear correctly under LVE Manager. For instance if I set the CPU to 120% under "Edit a Package" it will show as 200% under LVE Manager.
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,

    I believe this relates to the answer on the following thread:

    Current Usage on cPanel vs LVE Manager

    Thank you.
     
    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