To aid in the quick deployment of new chapter sites, a utility script has been installed at /var/www/dev.israelscouts.org/utils/fis_multisite_tools/create-multisite-instance.sh. It takes care of everything from creating the CMS database; to creating a new domain record in the CRM; to enabling common settings, themes, modules, and extensions; to assigning default user roles; to creating a cron job. Apache is configured such that no new vhosts need to be created. You need only execute the script and point the DNS.
The utility need not be run as root, but it does use sudo internally and may request your sudo password. The utility uses the login-path flag for mysql commands and assumes that the login-path “root” provides root access to MySQL. If you haven’t set this up for your user on the server, run mysql_config_editor set -h localhost -G root -u root -p and supply the MySQL root user’s password when prompted.
The utility allows the administrator to specify the environment (with the e flag) in which to spin up the chapter site. It is recommend that deployments be tested in another environment before being deployed to production.
Run it with the h flag for more information on how it works; for the full picture, read the source.
-ccontact ID for the default domain organization
-ggroup ID for the Domain Access Group
.my.cnfin your home dir. Drush is very clever about looking for db credentials to use. Similarly for the custom utils script (which sometimes use mysql login-path).