May 27, 2017

How to Install VVV for developing on WordPress

Tin Chu

We all know what is like to code on the fly, connecting to the server, making the changes, in the production server, then suddenly, a ‘;’ makes look us bad, the whole website crash, the client texting you ( or calling maybe…), then we ended adding cool features like MAMP PRO, but you then you cannot debug properly with IDE like PHPSTORM, its a pain when you need to do backend plugins, call APIs, scheduled jobs and other functionalities that WordPress could do.

Just two months ago they release the 2.0.0 version and has over 3,700 stars on their github repo. Basically VVV is tool that works with virtualizations software like such as VirtualBox to provide a virtul machine that you can do whatever you want, inside that sandboxed environment.

Installation

first things first, you need to install VirtualBox 5.x and Vagrant 1.x

then open up a terminal or console and type

vagrant -v

the out put could be something like this:

Screen Shot 2017-05-26 at 1.46.59 PM

clone the github repo where you feel comfortable and run:

git clone
https://github.com/Varying-Vagrant-Vagrants/VVV.git

it will copy all that, into your local machine. then you need tun:

cd vvv

after that, you are going to run

vagrant up

it will be doing and running some scripts that will basically setting a linux server inside your local machine to make all the development inside, it may require your password as Administrator.

your are going to see your local machine starts, in my case looks like this:

Screen Shot 2017-05-26 at 1.52.30 PM.png

after that you could visit the built in WordPress sites or the VVV Dashboard at http://vvv.dev

Right now your are good to go!

Now you need to add new domains, files and databases in order to make WordPress Local environment less crashy!

Comments