← Back

Tuesday, 7 May 2013

Install CakePHP development box using Vagrant and Puppet

Vagrant is a great tool to automate creating and configuring lightweight, reproducible, and portable development environments. If you are new to Vagrant you might want to take a look at official documentation first to get a basic gist who is it for and why to use it.

Host OS software prerequisites

Installation procedure

  1. Make sure you’ve installed prerequisites
  2. Open terminal, cd to working directory and clone the project: git clone git://github.com/borivojevic/cakephp-vagrant.git
  3. Place application source code into cakephp-vagrant/webroot folder
  4. On the host machine, add a new line to your hosts file: 33.33.33.10 dev.mirkoborivojevic.localhost

Day to day usage

Default connection parameters

Virtual machine IP: 33.33.33.10
System user: vagrant
System password: vagrant
MySQL user: root
MySQL password: root
Apache Virtual Host: dev.mirkoborivojevic.localhost

Packages and libraries that come with the box

Troubleshooting

VirtualBox sometimes hangs on “Waiting for VM to boot. This can take a few minutes”. To fix this enable GUI mode in Vagrant configuration, login in VirtualBox and run “sudo dhclient”.

TODO