Skip to content

Instantly share code, notes, and snippets.

@andrewwoods
Last active November 3, 2016 17:37
Show Gist options
  • Save andrewwoods/2fcfc3105452c19d8bb9e033e5a8fd38 to your computer and use it in GitHub Desktop.
Save andrewwoods/2fcfc3105452c19d8bb9e033e5a8fd38 to your computer and use it in GitHub Desktop.
Customize a Vagrant Environment
I want to create an Vagrant environment I can use for local development. It's
for a framework-less PHP project, that needs to be developed for specific PHP
versions. To begin, I need to use PHP 5.2.2.
I have my code in ~/client/src on my Mac and need to sync this folder to the
webroot on the VM using VirtualBox 4.3.10 and Vagrant 1.7.4.
I use PHPStorm for development.
I'll soon want to add virtual guest machines, each with their own PHP version
to allow for testing, which would also have a synced directory to ~/client/src
on my host machine. 5.4.45, 5.5.38, 5.6.25, and 7.0.x
As for the OS in the guest environments, I'd like use the latest Ubuntu, which
I think is 16.04.
The goal is to get the project up to 7.0, but am planning to use the intermediate
versions in 5.x to see where the code support breaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment