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.

cPanel plugins

Discussion in 'User Experience' started by tecwithquestion, Feb 14, 2015.

  1. tecwithquestion

    tecwithquestion Active Member

    Joined:
    Oct 20, 2014
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello

    I have some which are running on my domain url (domain.com/tools/index.php)

    I want to use these tools as plugin in cpane. but when I moved tools folder in /usr/local/cpanel/base/frontend/x3 and tried to run index.php I got blank space and in error log I found

    PHP Warning: require(structures/header.php): failed to open stream: No such file or directory in /tmp/cpanel_phpengine.1423956851.22534XxgMtnJbTu on line 5
    PHP Warning: require(structures/header.php): failed to open stream: No such file or directory in /tmp/cpanel_phpengine.1423956851.22534XxgMtnJbTu on line 5
    PHP Fatal error: require(): Failed opening required 'structures/header.php' (include_path='/usr/local/cpanel/3rdparty/php/54/lib/php:.') in /tmp/cpanel_phpengine.1423956851.22534XxgMtnJbTu on line 5


    Can you tell me how can I use tools folder from cpanel ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. tecwithquestion

    tecwithquestion Active Member

    Joined:
    Oct 20, 2014
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello

    I managed to make it working.

    Is there way I can disable some plugins in the demo mode ? Like if user login as demo user, and if he click on my plugins he will get msg that this function is disabled in demo mode.

    can we do this ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can create a separate feature list and package for your demo accounts via:

    "WHM Home » Packages » Feature Manager"
    "WHM Home » Packages » Add a Package"

    Then, ensure the demo accounts are assigned that package.

    Thank you.
     
Loading...

Share This Page