Commnd create domain and database

janw.oostendorp

Verified User
Joined
Sep 5, 2014
Messages
10
I would like to create a domain and a database with a user from the command line.
I would like something like:

currentuser@host$ createdomain -url="example.com"

And that it creates:

/home/currentuser/domains/example.com/public_html
With all the vhost/dns settings.

And a database:

name: currentuser_example
user: currentuser_example
pass: r@nd0m

Which credentials I can pick up to do other stuff with.

Is that possible?
Anybody can get me started?
 
Back
Top