VirtualBox Vagrant Chef Drupal install
- Download and Install VirtualBox (ensure you are on the latest version 4.0.8+)
- Install vagrant
- Clone this project into a new directory.
- Create a subdirectory (or symlink to a directory) called "docroot" that includes the Drupal installation.
- Launch the Vagrant box:
vagrant up
- Add this line to your /etc/hosts (or windows equivalent):
10.0.0.10 dev-site.local
That's it, files in "docroot" are served here: http://dev-site.local/
To connect to the console of you instance:
vagrant ssh
The MySQL root username/password is: root/root
This project is based on the Vagrant Project on Drupal.org, but includes a number of tweaks.
- Instead of provisioning a Drupal site using Chef, it simply sets up Apache to serve incoming requests from the shared Vagrant public directory. It assumes that you'll be maintaining one VM for each simulated multisite instance.
- It doesn't install PHPMyadmin, because that makes baby Jesus cry. If you need to poke at the DB, use a tool like Sequel Pro, and log into the DB over the Vagrant SSH connection.
- It installs Drush 5.7 via PEAR instead of a custom Chef recipe. Because lazy.
You can add XDEBUG_PROFILE
to your GET parameter to generate an xdebug profile, e.g. http://dev-site.vbox.local/?XDEBUG_PROFILE
You can then investigate at http://dev-site.local/webgrind/