Install cpaddon from cli script

ckoehler

Member
Aug 7, 2009
15
0
51
Hello,

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

Thanks!

Christoph
 

ckoehler

Member
Aug 7, 2009
15
0
51
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!
 

thewebhosting

Well-Known Member
May 9, 2008
1,201
1
68
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.
 

thewebhosting

Well-Known Member
May 9, 2008
1,201
1
68
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.
 

ckoehler

Member
Aug 7, 2009
15
0
51
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:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
13
313
Houston, TX
cPanel Access Level
Root Administrator
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.