Is there any some kind of domain.conf file?

SYSTEM INFORMATION
OS type and version Ubuntu 18
Webmin version 2.0
Virtualmin version 7.1

Hello all

I want to edit virtual-server PHP mode/version from fcgi to fpm.
Currently, the GUI offers no problem. However since I want to automate things is there any file that I can edit to change the fcgi to fpm on the domain without opening the virtualmin web based interface.

Thank you for any suggestions.

Virtualmin has an API. See

https://www.virtualmin.com/documentation/developer/cli/

And

https://www.virtualmin.com/documentation/developer/http/

You could do that from these.

1 Like

Thank you @calport

Very great solution.

Is there a way when I create new domain i get the id of domain as it created in here :
/etc/webmin/virtual-server/domains/ID_OF_DOMAIN

Thank you

– Solution :
Here is the command :
virtualmin list-domains --domain 123.com --id-only

You got it!

You are a champ!

1 Like

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