Written on 11 July 2015
If you familiar with LAMP/LEMP stack, you may want to use Vagrant. Vagrant is a tool for building and distributing development environments.
Vagrant can work with Virtual box, VMware , Docker to creating an isolated environment. For local development for simple I use Vagrant with Virtual box.
Go to https://www.vagrantup.com/downloads.html
to Download Install Vagrant. Vagrant support Linux, Windows, OS X.
Then istall vagrant-vbguest plugin
$ vagrant plugin install vagrant-vbguest
Vagrant provides easy to configure, reproducible, and portable work environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and flexibility of you and your team.1
I run LEMP stack on Ubuntu 14.04 64amd, codename is trusty64. So first I download this box to my computer. You can find favorite box at https://atlas.hashicorp.com/boxes/search
$ vagrant box add ubuntu/trusty64
Listing all box on local machine
$ vagrant box list ubuntu/trusty32 (virtualbox, 20150609.0.9) ubuntu/trusty64 (virtualbox, 20150609.0.6)
Create development environment with just one command.
$ mkdir vmenv $ vagrant init ubuntu/trusty64 // init machine with trusty64 $ vagrant up // start vm machine
Now this box is clean and no have LEMP stack here. You can build your all, or choose a LAMP/LEMP box here.
But I think this create your all is more flexible.
You just change the
Vagrantfile and use one or two base you favorite. Then go to https://puphpet.com/#about to generate Vagrantfile for full fill require of your project environment.
Checking outdated box and update if have outdated box.
vagrant box outdated vagrant box update
Delete outdated box
vagrant box remove boxname --box-version