I tried to find the virtualmin API command to change the available features and plugins, like I can do it on the UI in System Settings > Features and Plugins.
It seems there is not.
Also it's the same issue for some Virtualmin Configuration in System Settings.
Is someone has already done it ?
This can be done using the "set-global-feature" command.
e.g.:
And, if you ever find something that cannot be accomplished from the command line that is possible in the UI, it's probably a bug, and one that we'll address. You can file a ticket at Virtualmin.com for things like that. There are some things that aren't reasonable on the command line, like the system status graphs, but generally if it's something you could reasonably want to do from a script, we'd like to make it easy to do. I believe API coverage is very close to complete, but every once in a while new stuff comes up.
The usage for this command is:
And, I've noticed we haven't regenerated the documentation lately, so the man page for that command is missing from our online documentation. I'm working on that now.
There are some for features: You can do these commands for features: list-features, enable-feature, disable-feature. for plugins you can only list them.
Look into this:
https://code.google.com/p/virtualmin-php-api/
The only way I found is to modify config files directly.
They are in
/etc/webmin/virtual-server/
on Debian.And then restart webmin :