Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    26

    Post Addon install in WHM and in cPanel

    Hi all,

    I have a small script which I want to Add to Add-ons section in WHM for ADMIN and also a user part for be in cPanel.
    I need some help, cause I did not saw any good documentation on this.
    Any help will be appreciate.
    I'm interested which files to edit, where to add links etc.
    Also is important that on an update to not be overwritten.
    Regards,
    Valics Lehel
    http://www.web-hosting-control-panel-addons.com/
    Add-ons for Web Hosting Control Panels for your Dedicated Server(s)

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    It's actually fairly simple. It's just not documented and you have to hack around to get it working.

    Here's a few pointers (giving away the weeks of work I did getting this up and running) using the cPanel Pro API (so cPanel Pro needs to be installed):

    1. Application in WHM itself:

    Check out existing perl CGI scripts in /usr/local/cpanel/whostmgr/docroot/cgi/addon_*.cgi

    2. Adding a selectable feature for cPanel accounts:

    Create a new file in /usr/local/cpanel/whostmgr/addonsfeatures/ with a unique name as:

    /usr/local/cpanel/whostmgr/addonsfeatures/uniquename

    With:

    Code:
    cpanelpro_unqiuename:This is my cPanel Feature
    To use that feature:

    /usr/local/cpanel/base/frontend/x/cells/uniquename.html

    With:

    Code:
    <cpanelfeature cpanelpro_uniquename>
    <cpanelcell align="center" valign="top">
    <td width="75" nowrap><a href="cells/uniquename/index.html"><img border="0" src="cells/uniquename/myapp.gif" width="32" height="32"></a><br>
    <br>
    <a href="cells/uniquename/index.html">My cPanel Feature</a></td>
    </cpanelcell>
    </cpanelfeature>
    /usr/local/cpanel/base/frontend/x/cells/uniquename/index.html contains the calls to your application depending on how you're going to implement it. I'll leave you to work out that bit
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    26

    Default

    TX for the help, so far I managed to work, I have some small problems still on user part with links, but I will manage it.
    My strange question is, how can be done it to be applied to all skins??
    I should copy in each one?
    What if Admin will add a new skin?

    Also on upgrade of cPanel (WHM) will be deleted this files (maybe cPanel see it as unknown.

    And the last question but the last painfull ...
    HOW can be that a software like cPanel with thousands of server managed with CP not have a decent API??
    Regards,
    Valics Lehel
    http://www.web-hosting-control-panel-addons.com/
    Add-ons for Web Hosting Control Panels for your Dedicated Server(s)

  4. #4
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by chirpy
    1. Application in WHM itself:

    Check out existing perl CGI scripts in /usr/local/cpanel/whostmgr/docroot/cgi/addon_*.cgi
    That's cool... thanks for the tip

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Quote Originally Posted by lvalics
    My strange question is, how can be done it to be applied to all skins??
    I should copy in each one?
    What if Admin will add a new skin?
    The simplest way is to symlink the cells/ directory to the x theme. For example:
    Code:
    ln -sv /usr/local/cpanel/base/frontend/x/cells /usr/local/cpanel/base/frontend/x2/cells
    ln -sv /usr/local/cpanel/base/frontend/x/cells /usr/local/cpanel/base/frontend/xmail/cells
    ln -sv /usr/local/cpanel/base/frontend/x/cells /usr/local/cpanel/base/frontend/monsoon/cells
    ln -sv /usr/local/cpanel/base/frontend/x/cells /usr/local/cpanel/base/frontend/bluelagoon/cells
    However, that will only work if the theme supports the cPanel Pro API correctly, i.e. the following directive that appears in /usr/local/cpanel/base/frontend/x/index.html:

    <cpanel dynamicinclude="cells/*.html">
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Sep 2003
    Posts
    26

    Thumbs up

    TX for the hint ...
    Regards,
    Valics Lehel
    http://www.web-hosting-control-panel-addons.com/
    Add-ons for Web Hosting Control Panels for your Dedicated Server(s)

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    26

    Default

    Is there a way to get HASH details from somewhere if I run a local file?
    We try to use Accounting.php.inc and require a hash, even from localhost, or we miss something??
    Regards,
    Valics Lehel
    http://www.web-hosting-control-panel-addons.com/
    Add-ons for Web Hosting Control Panels for your Dedicated Server(s)

  8. #8
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    881

    Default

    So, does this mean one can add anything (blogs, forums, CMS', etc) to cPanel Addons?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  9. #9
    Member
    Join Date
    Sep 2006
    Posts
    48

    Default

    Quote Originally Posted by lvalics View Post
    Is there a way to get HASH details from somewhere if I run a local file?
    We try to use Accounting.php.inc and require a hash, even from localhost, or we miss something??
    Remote Access Key left hand side of WHM

  10. #10
    Member
    Join Date
    Sep 2003
    Posts
    26

    Default

    We want it to get it without ask for users to enter it, somewhere automatically should be keeped.
    Regards,
    Valics Lehel
    http://www.web-hosting-control-panel-addons.com/
    Add-ons for Web Hosting Control Panels for your Dedicated Server(s)

  11. #11
    Member
    Join Date
    Sep 2007
    Posts
    5

    Question

    Quote Originally Posted by lvalics View Post
    We want it to get it without ask for users to enter it, somewhere automatically should be keeped.
    The aim of security is lost then. I doubt there is a way to get that hash automatically.

  12. #12
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    Quote Originally Posted by ganesh.rao View Post
    The aim of security is lost then. I doubt there is a way to get that hash automatically.
    I am agree with you? there was nothing like security........

  13. #13
    Member
    Join Date
    Nov 2008
    Posts
    17

    Default

    Quote Originally Posted by chirpy View Post
    It's actually fairly simple. It's just not documented and you have to hack around to get it working.

    Here's a few pointers (giving away the weeks of work I did getting this up and running) using the cPanel Pro API (so cPanel Pro needs to be installed):

    1. Application in WHM itself:

    Check out existing perl CGI scripts in /usr/local/cpanel/whostmgr/docroot/cgi/addon_*.cgi

    2. Adding a selectable feature for cPanel accounts:

    Create a new file in /usr/local/cpanel/whostmgr/addonsfeatures/ with a unique name as:

    /usr/local/cpanel/whostmgr/addonsfeatures/uniquename

    With:

    Code:
    cpanelpro_unqiuename:This is my cPanel Feature
    To use that feature:

    /usr/local/cpanel/base/frontend/x/cells/uniquename.html

    With:

    Code:
    <cpanelfeature cpanelpro_uniquename>
    <cpanelcell align="center" valign="top">
    <td width="75" nowrap><a href="cells/uniquename/index.html"><img border="0" src="cells/uniquename/myapp.gif" width="32" height="32"></a><br>
    <br>
    <a href="cells/uniquename/index.html">My cPanel Feature</a></td>
    </cpanelcell>
    </cpanelfeature>
    /usr/local/cpanel/base/frontend/x/cells/uniquename/index.html contains the calls to your application depending on how you're going to implement it. I'll leave you to work out that bit
    The thing is, maybe this thread is too old to answer my questions today, as cpanel may have changed, but I can't find a /usr/local/cpanel/base/frontend/x/cells/ directory.

  14. #14
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ctrlogic View Post
    The thing is, maybe this thread is too old to answer my questions today, as cpanel may have changed, but I can't find a /usr/local/cpanel/base/frontend/x/cells/ directory.
    The frontend is for the cPanel interface. If you are looking to add a new icon to the cPanel interface, you can just use our cPanel Plugin Installation File Generator: http://cpanel.net/developer/overview.html

  15. #15
    Member
    Join Date
    Nov 2008
    Posts
    17

    Default

    I have used the plugin generator already, I can see the new plugin in my customers feature list but there's no icon added in their cpanel... (Don't know why because I have browsed an icon in the generator)...

Similar Threads & Tags
Similar threads

  1. Cpanel/WHM addon for SEO or marketing
    By hendrikuskwan in forum Optimization
    Replies: 2
    Last Post: 06-19-2009, 04:24 AM
  2. Cpanel/WHM addon for SEO or marketing
    By hendrikuskwan in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-19-2009, 04:24 AM
  3. WHM/CPANEL software RAID-1 addon?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-22-2008, 01:32 PM
  4. Question about WHM and cpanel, Addon domain
    By rafdraft in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-19-2007, 10:03 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube