Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 1.49 KB

README.md

File metadata and controls

35 lines (18 loc) · 1.49 KB

vg-php-box

CentOS 6.4 (64-bit) vagrant box to develop apache/PHP projects

Vagrant puts together your complete development environment. Say goodbye to the "works on my machine" excuse as Vagrant creates identical development environments for everyone on your team.

If you're curious what benefits Vagrant has to offer, you should also read the "Why Vagrant?" page.

Requirements

Download and install VirtualBox and Vagrant

Vagrant box

Instead of building a virtual machine from scratch, which would be a slow and tedious process, Vagrant uses a base image to quickly clone a virtual machine. These base images are known as boxes in Vagrant.

The best place to find boxes is Vagrant Cloud. I'm using CentOS 6.4 (64-bit) as base image.

Get started

Type this commands to boot the vagrant box, ssh into it, save the current running state of the machine and stop it, and remove all traces:

$ vagrant up

$ vagrant ssh

$ vagrant suspend

$ vagrant destroy

By default, Vagrant shares your project directory (where Vagrantfile is located) to the /vagrant directory in your virtual box. This means you can edit your project files using your favourite IDE.