Fork me on GitHub

Installation

Linux (Debian)

To use virtualbox make sure you have vt-x enabled in your bios.

$ sudo apt-get install vagrant virtualbox virtualbox-dkms git
$ vagrant plugin install vagrant-hostsupdater vagrant-triggers vagrant-bindfs

Optional: If you want to have PHP Composer locally installed run:

$ sudo apt-add-repository -y ppa:duggan/composer
$ sudo apt-get update
$ sudo apt-get install php5-composer

Ubuntu 16.04 and later need ruby-dev

If you see this error message on Ubuntu 16.04 or later:

$ vagrant up
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

It means you need to install separatey the Ruby development files:

sudo apt-get install ruby-dev

Linux (Fedora)

Add RPMFusion repositories. See RpmFusion. Repository is needed for Virtualbox.

Clone the WordPress Git repo and run following commands:

$ sudo yum update
$ sudo yum install vagrant
$ sudo yum install virtualbox
$ sudo gem update bundler
$ sudo yum install ruby-devel # Needed to build native ruby extensions
$ sudo gem install hittimes -v '1.2.2'
$ vagrant plugin install vagrant-hostsupdater vagrant-triggers vagrant-bindfs

# Needed to load the kernel module for virtualbox, you may want to load it automatically on boot...
$ sudo modprobe vboxdrv
$ vagrant up

OS X

  1. Install Xcode
  2. Install Vagrant
  3. Install Virtualbox
$ vagrant plugin install vagrant-hostsupdater vagrant-triggers

Optional: Vagrant Manager for OS X can help you manage multiple Vagrant boxes.

Windows (Cygwin)

To use virtualbox make sure you have vt-x enabled in your bios. You might need to disable hyper-v in order to use virtualbox.

  1. Install Vagrant
  2. Install Virtualbox
$ vagrant plugin install vagrant-hostsupdater vagrant-triggers

Optional: Vagrant Manager for Windows can help you manage multiple Vagrant boxes.