I have an existing instance of D7 in a multisite configuration on RedHat.
Can I use drush si
to create a new database and /sites/ instance -- without altering any existing subsite? Is there a way to automate this?
I'm envious of Wordpress Networks' ability to spawn up a new site inside the admin console.
In my current process, I create a database on local systems.
mysql> create database nominations;
Query OK, 1 row affected (0.01 sec)
mysql> grant usage on nominations.* to nomnom@localhost identified by 'Sup3rS3cr3tP455w04d';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on nominations.* to nomnom@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
Sudo and edit the alias.conf file
$ sudo su
# vim /etc/httpd/conf.d/alias.conf
In that file add the alias. The current file reads as such. The idea is to point all aliases to the drupal root. Let drupal handle routing based on folder entries inside its /sites/ folder.
Alias /nomination /var/www/html
Once this file is saved. Restart the server.
# service httpd restart
# exit
Now the database is created and apache has a new alias. Create a new folder inside of /sites/ in the fashion drupal routing will recognize (server.name.path). Create a symlink to make drush maintenance easier.
$ mkdir nomination
$ cp default/default.settings.php nomination/
$ cd nomination
$ mv default.settings.php settings.php
At this point I go to server.com/nomnination and run the typical install process. After and back on the command line, coordinate a bit of module goodness:
$ drush en -y coffee module_filter jquery_update bootstrap
$ drush dis -y overlay