22 November 2012

Vagrant

As described in: http://www.vagrantbox.es/ Must have VirtualBox installed.

 $ sudo apt-get install vagrant
 $ gem install vagrant
 $ vagrant box add {title} {url}
 $ vagrant init {title}
 $ vagrant up

http://net.tutsplus.com/tutorials/php/vagrant-what-why-and-how/

Configure forwarding on Vagrantfile:

config.vm.forward_port 80, 8080

config.vm.provision :shell, :inline ⇒ “apt-get update; apt-get -y install apache2 mysql-server mysql-client php5 php5-mysql php-apc phpmyadmin php-pear subversion ntp”



blog comments powered by Disqus