There are a couple scenarios in which you might benefit from the ability to clone Installatron applications between accounts in WHM. Sometimes you want to duplicate an existing Installatron applications across just one or two accounts on a server without creating a full-fledged site template. Other times, you're looking for a quick way to move a website from one URL to another. We have a guide for end users on cloning applications at Site Cloning within Installatron.
However, as an administrator you may find yourself in a situation where you need to clone an application from one account to a domain owned by a different account. If the two accounts are not on the same server it’s possible to “import” an install from another server (See “Importing Installations in Installatron“) but if the two domains are on the same server you can also utilize the Installatron Admin interface in WHM to clone across accounts. The feature works very similar to end users.
Start by going to the WHM of the server you'd like to work with, and type Installatron into the search bar, selecting the top choice that pops up: Installatron Applications Installer.
Once in the Installatron interface, go to the left sidebar and select Installed Applications.
This is where you'll be able to see all of the installed applications on the entire server. In the example screenshot below you can see that there are 628 installed Installatron applications on this particular server, as well as over 1,000 backups of those applications.
The first thing you'll want to do here is search for the application you want to clone. Typing the domain name the app is assigned to in the search bar is the best way to do this.
Once you locate the application you're interested in cloning, select the Clone button on the entry's right hand side.
Then, be patient! Things might take a minute to load, and it might not even look like anything is happening after you click the Clone button. To verify that things are moving along, scroll to the top of the page and look for the loading icon.
Once things load, you'll be brought to the Clone interface, where you'll be able to select the Destination Domain. You may have to scroll down for quite a while to find your desired destination, as all of the domains on the server will be listed in this dropdown. Since you are logged in as the root user you will be presented with a list of all domains on the server to choose to clone to and will just need to make sure that the account you are cloning to has enough storage space and the domain does not have anything installed on it currently.
Once you've selected the clone's destination, click Clone at the button right hand corner of the page to begin the cloning process.
For servers with a lot of installs (1,000+ applications) you may find that the cloning tool times out attempting to load that final page since it has to find all domains on the server. In this case a workaround would be to use the Installatron command line interface to clone the application. The command line interface is located at /usr/local/installatron/installatron and the clone argument takes the following required arguments when run as root: id, url, and user.
You can find the unique id for the application by clicking the wrench icon and going to the Advanced tab. It will be the last part of the data file section here and be an alphanumerical id of around 25 characters. The URL is the full destination URL including https://. The user will be the destination cPanel username. Here is an example of the full command which can run within the Terminal in WHM or through an SSH connection:
/usr/local/installatron/installatron --clone --id=d30qd7y5o8gswkcsw80osksc8 --url=https://reclaimhosting.stateu.org --user=reclaim
The command will output the result once the clone is finished or any relevant errors.