Operating system: CentOS OS version: Linux 7.8.2003 Webmin Version: 1.942 VirtualMin Version: 6.09
I want to create a new database from my web code as if a new user is signed up I want to create a new database and run a script. As running script from file seems possible but I haven’t been able to find any information about creating new database at user Sign Up.
You wish to create a new database at user signup. Can be done.
Now please specify where it is that the user signs up? Does the user signup in your web app or by signup you mean that a user is created by the owner of the virtual server?
I don’t think I understand what you’re asking, if that doc doesn’t answer your question.
What do you mean by
Both what? Account and database creation? Just create a domain using the create-domain API call…if you’ve configured Virtualmin to create a database as part of the account, it will create both the account (with website, mail, whatever) and database.