Skip to content

Instantly share code, notes, and snippets.

@stopfstedt
Last active August 29, 2015 14:01
Show Gist options
  • Save stopfstedt/ffd72b6cfd644194b9de to your computer and use it in GitHub Desktop.
Save stopfstedt/ffd72b6cfd644194b9de to your computer and use it in GitHub Desktop.
Vagrant and Drupal on Windows 7 (From notes taken during UCSFDUG codejam on 05/23/2015).

Setup

  1. Download and install the latest Oracle VirtualBox.
  2. Download and install Vagrant.
  3. Add the path to directory containing VBoxManage.exe to your PATH environmental variable.(E.g. "C:\Program Files\Oracle\VirtualBox").
    1. In your local UCSF/Drupal7 Git repo, pull in the Puppet modules as Git submodules. From the command line, you may do this by executing the following statement from within your repository root directory.
git submodule update --init

Working with Vagrant

Start a Virtual Machine (VM)

Start up vagrant from the command line from within your repository root directory.

vagrant up

Note: The first time, Vagrant will download the specified VM, so this might take a while.

Accessing the VM via SSH

vagrant ssh

Restart Vagrant

vagrant restart

(Re)provision Puppet

vagrant provision"

Note: This will only be necessary if the Puppet configuration has been changed.

Shut down Vagrant

vagrant halt

Destroy the dowloaded VM

vagrant destroy

VM Configuration

  • IP Address is 10.10.10.20
  • LAMP Stack:
    • Ubuntu 12.04 LTS (32-bit)
    • Apache 2.2, listening on port 80 and 443
    • PHP 5.3
    • MySQL 5.5, listening on port 33066. User accounts: admin (password "admin"), drupal (password: "drupal"), drupaluser (no password).
  • phpMyAdmin, accessible at http://10.10.10.20/phpmyadmin/.
  • Your local Git repository is mounted as /vagrant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment