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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    A lot of thanks
     
    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