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.

WHM Plugin in PHP, Where to Copy the PHP files?

Discussion in 'cPanel Developers' started by drako, Dec 19, 2014.

  1. drako

    drako Member

    Joined:
    Dec 30, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,

    i am developing a WHM plugin in php.

    i have been through the guide, it says that i should copy my plugin to /usr/local/cpanel/whostmgr/docroot/cgi/plugin_name

    which i guess is the CGI wrapper pointing to my php files.

    i am wondering where should i copy my php files?

    Thanks
     
  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
    Hello :)

    You should be able to place the PHP files in any root level directory (e.g. /usr/local/cpanel/whostmgr/docroot/cgi/plugin_name). Ensure you review the following document:

    Creating WHM Plugins

    Thank you.
     
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi #cPanelMichael

    It's possible put a correct link for "Creating WHM Plugins"?

    Several posts on your forum link to 404 errors.

    Apreciate h
     
  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
    It looks like our documentation changed slightly since the time that link was posted. I've updated the URL to the new one located at:

    Guide to WHM Plugins

    Thank you for pointing this out.
     
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
Loading...

Share This Page