We have created an online order form for people or a salesperson to order a website online. When they press the Order button, we automatically populate the database with all order information and also create a home directory name where the site will live. However, it does not create the actual website. That's where I need someone.
I need a bash script that creates everything that Virtualmin normally creates. Ideally, I'd like it to be immediately visible within Virtualmin but I'll settle for importing it after the fact. The things it must do:
Must take these variables:
Username: (create home dir with this same name)
Password: set as adminpass as default
Storage limits - same as virtualmin template
Bandwidth limits - same as virtualmin template
Should chmod 777 the home dir created
Must copy a set of our default files and folders ([url removed, login to view] etc) into their new home directory
I can then call this bash file from php
We use Virtualmin to create our Virtualhosts here so any integration between this script and them is of value.