Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default Install cpaddon from cli script

    Hello,

    Is it possible to install a cpaddon by running a script from the command line?

    Thanks!

    Christoph

  2. #2
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Anyone know? It seems like since most of cPanel stuff is perl scripts, at some point cPanel will call a perl script to install the cPAddon.

    Thanks!

  3. #3
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Quote Originally Posted by ckoehler View Post
    Hello,

    Is it possible to install a cpaddon by running a script from the command line?

    Thanks!

    Christoph
    Yes, it is possible to installl cpaddons through command line. You just need to download the cpaddon which you want to install and install it.

  4. #4
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Um. I apologize for asking the obvious, but HOW do I do that exactly?

  5. #5
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Below are the general steps to install the third party components:

    1. Download the component from the relevant source using the wget command on your server.
    2. Unzip/untar the downloaded file.
    3. Install the component on your server by following the standard steps.

    If you still face any issue while installing the component then kindly provide us the component name which you would like to install so that we can provide you the exact steps to install the component.

  6. #6
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Ah I see what you mean. Of course I can do that. But cPanel automatically creates a db and user for it, injects the info into some of the files, copies the files, and imports the database.
    I can do that manually, but was wondering if cPanel has one script to do all they are doing when a user manually installs a cPAddon.

    We created this addon and can install it all by scripting the parts manually, but that defeats the purpose of having cPanel do it.
    Last edited by ckoehler; 08-12-2009 at 02:04 PM.

  7. #7
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    So I take it it's not possible? Any cPanel staff who can comment on this?

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ckoehler View Post
    So I take it it's not possible? Any cPanel staff who can comment on this?
    At this time, this is not possible. In a release of 11.25 (not sure if it will be 11.25.0 or a later release), you will be able to install cPAddons using our APIs. At that time, it would become practical to build a shell script that calls our APIs to do this for you.

Similar Threads & Tags
Similar threads

  1. CLI script to check account disk usage/quota from SSH
    By DomineauX in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 12-22-2010, 08:28 PM
  2. cPAddon Script DBI problem
    By mrtwister76 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-02-2009, 02:35 PM
  3. Can't install custom cpAddon
    By myweb in forum cPanel Developers
    Replies: 1
    Last Post: 10-18-2007, 10:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube