There are a lot of PHP Vagrant boxes out there, but I wanted one that met my specific needs, and was as simple as possible.

This meant it needed:

  • Apache2
  • MySQL
  • PHP5
  • Composer
  • XDebug

In the spirit of simplicity, we're using ansible and a single playbook file. You will have to have ansible-playbook on your hosts PATH in order to provision the system.

To use:

git clone git@github.com:danlamanna/php5-mysql-vagrant.git

cd php5-mysql-vagrant

vagrant up && vagrant ssh

This should have you setup with a simple lamp stack environment at 192.168.33.10.

Github Repo: https://github.com/danlamanna/php5-mysql-vagrant