Mothership for my next project

Sun, 06/23/2013 - 11:37 -- Kyle Skrinak

Recorded for posterity, setting up a drupal site with drush and apache vhost configuration. I substituted the actual project name with projname. Note: I use VirtualBox running ubuntu server. The *.vdi files have no issues moving across platforms, a nice convenience.

Set up apache for new project directory

  • sudo cp /etc/apache2/sites-available/most-recent-project-def-file /etc/apache2/sites-available/projname
  • sudo vim /etc/apache2/sites-available/projname
    • Nearly always s/most-recent-project-def-file/projname/gc
    • Update the listen: port#/VirtualHost *:port# lines accordingly

Set up Drupal core files

  • cd to my root vhosts folder /webdata
  • drush dl drupal --drupal-project-rename=projname
  • drush site-install standard --db-url=mysql://root:root@ --site-name=projname --account-name=projname-admin
    • Keep note of the password
    • There's something to be said for increasingly obscure admin account names.

Load up my core module set

  • drush dl admin_menu && drush en admin_menu admin_menu_toolbar --y
  • drush dl google_analytics && drush en googleanalytics --y
  • drush dl backup_migrate && drush en backup_migrate --y
  • drush dl token && drush en token --y
  • drush dl pathauto && drush en pathauto --y
  • drush dl markdown && drush en markdown --y
  • drush dl module_filter && drush en module_filter --y

Set up Mothership subtheme

  • drush dl mothership
  • drush mothership "projname"

configure site settings using drush's vset

  • drush dis color comment toolbar
  • drush vset file_default_scheme "public"
  • drush vset file_private_path "sites/default/files/private"
  • drush vset file_public_path: "sites/default/files"
  • drush vset file_temporary_path "sites/default/files/tmp"
  • drush vset user_register 0
  • drush vset user_pictures 0
  • drush vset site_default_country: "US"
  • drush vset date_first_day: "0"
  • drush vset user_default_timezone: "0"

Enough blogging, back to themeing…