It gives a pratical and quickly up development environment. It will create a environment based on current folder name.
The VM will provision a server with Apache + PHP 5.4 + MySQL
-
Install Vagrant and Virtual Box on your system see vagrantup.com see virtualbox.org
-
Clone this repo and rename target folder
git clone --branch=master git@github.com:tonicospinelli/vagrant-lamp.git my-path
-
Change guest IP Address, if you want
web.vm.network :private_network, ip: "33.33.33.100" # line 16
-
Remember to include the hostname and ip address in local
/etc/hosts
:sudo sh -c 'echo "\n33.33.33.100\t${PWD##*/}.dev ${PWD##*/}.test ${PWD##*/}.prod\n" >> /etc/hosts'
-
Execute the command
vagrant up
-
Go to browser and call my-path.dev