-
Install VirtualBox (https://www.virtualbox.org/wiki/Downloads)
-
Install Vagrant (http://www.vagrantup.com/)
-
Install Vagrant plugin:
vagrant plugin install vagrant-hostmanager
-
(Mac) Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
(http://brew.sh/) -
(Mac) Prepare for Ansible: On Mac: Install Xcode from the Mac App Store.
-
(Mac) Install xcode cli (command line) tools with
xcode-select --install
. On Linux you can use Package Manager (detailed instructions: http://docs.ansible.com/intro_installation.html). On Windows you can use cygwin (https://servercheck.in/blog/running-ansible-within-windows). -
(Mac) Install Ansible:
brew install ansible
-
(Linux) Install Ansible (in Ubuntu sudo apt-get install ansible)
-
Site will be available at http://vm-dev.com/
Page not found
Probably an error in the hosts file. Make sure the domain is correct. The following is done on a Mac. Edit the hosts file:
sudo nano /private/etc/hosts
(navigate file with arrow keys)
Add 192.168.100.119 vm-dev.com
ctrl+o
(saves the file)
ctrl+x
(exits the editor)
PHP errors when loading domain
Refresh the browser.
Apache default page
If you are suddenly seeing a default apache ubuntu page instead of the website, this will most likely fix it:
From the root folder of the repo:
vagrant status
- Make sure the vagrant is up and running
vagrant ssh
sudo a2dissite 000-default
sudo service apache2 restart