Virtualmin API command not found

SYSTEM INFORMATION
OS type and version Debian 10
Webmin version 1.994
Virtualmin version 7.1-1

So I wanted to do a simple use of API, clone-domain, so i can run some tests on a site before going live.

When running ‘virtualmin clone-domain …’ I get command not found

virtualmin help give command not found

Event when looking, can see the scripts (in /usr/share/webmin/virtual-server).

seen both of these:-
http://www.virtualmin.com/documentation/developer/cli/clone_domain/

None seem to apply.

Any ideas?
I am on GPL (small but growing charity that can’t quite justify, just yet, the cost). but believe this API command should work under GPL?

Any help appreciated

Um, I don’t have Webmin under /usr/share on any of my servers. Did you install Virtualmin via the automated install script?

See Automated Virtualmin Installation – Virtualmin.

@MacBadger,

To use the command line API, you issue the command:

virtualmin

Issuing the command above from the command line will give you a list of commands, and help you understand how to use those commands.

If you have specific questions, feel free to ask, I use the API quite often to automate tasks.

*** Affordable, Reliable Virtualmin Support https://tpnassist.com ***

@calport
Yes it was installed via script about a year ago- all went fine, no problems.

@tpnsolutions
Yes, as per my post, I have been using virtualmin command.

I did find now the GUI version of clone-domain, and that worked fine. But API commands wont work.

@MacBadger,

I’ll setup a test install and see if I can replicate the issue. It’s my understanding the API and GUI share most of if not all the same code, so both should work without issue. The GUI does do a lot of the heavy lifting like providing the required fields and values, perhaps when executed on CLI you are missing something.

so do you get the command list when you type in virtualmin

Perhaps, something went wrong?

To solve this, simply remove /usr/sbin/virtualmin file by running rm -f /usr/sbin/virtualmin comman, then go to Virtualmin UI and re-check configuration (by clicking on System Settings -> Re-Check Configuration link) to regenerate Virtualmin API helper command.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.