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!

Allow php execution in WHM for a particular reseller account

Discussion in 'General Discussion' started by urello, Mar 18, 2015.

  1. urello

    urello Member

    Joined:
    Mar 3, 2015
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have custom php script registered in WHM and I want a single reseller account to be able to execute this script. Other reseller accounts shouldn't have this ability. Is it possible?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is this a WHM plugin or do you mean an actual PHP script uploaded to an account?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. urello

    urello Member

    Joined:
    Mar 3, 2015
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Alas, i didn't understand your question.
    1. I wrote a script and put it into /usr/local/cpanel/whostmgr/docroot/cgi/test
    2. I wrote a conf file and put it into same location.
    3. I registered my script:
    /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/test/test.conf
    that's all i did
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You will need to enable the following option under the "Security" tab in "WHM Main >> Server Configuration >> Tweak Settings":

    "Allow PHP to be run when logged in as a reseller to WHM"

    Note that it's not adjustable on a per-reseller basis, but you can submit a feature request for that via:

    Submit A Feature Request

    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