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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page