My personal Vagrant development environment
Switch branches/tags
Nothing to show
Clone or download
Latest commit c78d275 Feb 29, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
site-cookbooks Parallels update Feb 29, 2016
.gitignore Ignore .bundle Jan 4, 2016
Cheffile Use custom php recipe Dec 28, 2015 Fix mysql socket location for php Nov 14, 2015
Vagrant.example.json Use custom php recipe Dec 28, 2015
Vagrantfile Parallels update Feb 29, 2016

My personal Vagrant-based PHP development environment.


Install Virtualbox and Vagrant:

More information about the Vagrant installation process:


We are using librarian-chef to download several community Chef cookbooks. Install the gem and download the cookbooks:

gem install librarian-chef
librarian-chef install


There are two main configuration files; the Vagrantfile which is read by Vagrant, and Vagrant.json which contains the Chef provisioning configuration:


The most important configuration parameters can be found at the top of the file:

ip_address  = ""
memory      = "512"
directory   = "/Users/USERNAME/Sites"

Make sure that you change the directory to the folder that contains all your projects on your machine.


Rename the Vagrant.json.example file to Vagrant.json. Vagrant.json is the main configuration file used by Chef. It should be fairly straightforward to edit the file for your personal setup. Make sure you modify the apps and databases section for your vhost and database configuration. At the top are the Chef recipes that are executed.

Starting the box

Go to the Vagrant box directory and run:

vagrant up