• TOP
  • BLOG
  • TECHNOLOGY
  • VVV: Creating a Local WordPress Environment with Varying-Vagrant-Vagrants

VVV: Creating a Local WordPress Environment with Varying-Vagrant-Vagrants

Varying-Vagrant-Vagrants, also known as VVV,  is definitely a mouthful to say. However, this project on Github is unique in that it is a local development environment for WordPress. But why use it if you are already using MAMP, XAMPP or WAMP? The main reason is that these virtual servers do not mimic an actual development environment. VVV seeks to solve that problem.

VVV, or Varying-Vagrant-Vagrants works with VirtualBox. Don’t worry, it works on any operating system. If you want, you can read the instructions on the GitHub page found here.

Note that you will need to have some basic command line / terminal knowledge.

Step 1: Installing VirtualBox

The first step is to download and install VirtualBox

virtualbox

  1. Click on the version for your operating system
  2. Follow the instructions during the install process
  3. After installation, you should see this screen

installation

Now that you have installed a virtual machine on your computer, it’s time to install VVV.

Step 2: Installing Varying-Vagrant-Vagrants

Click here to download and install VVV
vagrant-dl

    1. Download the version developed for your operating system.

Follow the instructions during the installation

  1.  vagrant will now be available as a command in the Terminal (Mac)
  2. In Terminal, type vagrant -v
  3. If the Terminal / Console returns Version 1.6.2 or higher, then you have installed Vagrant correctly

Step 3: Installing the Host Updater Plugin

Note: This step is not necessary, but you will have to add your website hosted on the virtual machine to your hosts file.

Note 2: If you are getting errors during the installation, install Homebrew and the Norogiri gem.

This plugin updates your hosts file to make sure that you computer will be able to access the WordPress site running within VirtualBox. Although it is not neccessary, it is recommended. All you need to do is type the following command into Terminal / Console:

vagrant plugin install vagrant-hostsupdater

command_terminal
If the installation was successful, you should see this:

installed-terminal

Step 4: Installing the Vagrant Triggers Plugin

Similar to the last step, install the plugin via Terminal by typing:

Screen Shot 2014-05-14 at 16.12.07
If the installation was successful, you should get a similar prompt as shown in the previous step.

Step 4: Git Time

According to the Github page, there are various ways to complete this step:

  1. Using the following git command: git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git vagrant-local
  2. Download from github and extract the zip
  3. Download a stable release

Either way, make sure you know where the new folder is located because you will need it for the next step.

Step 5: Start it Up!

  1. Open Terminal / Command Prompt
  2. Change into the new folder you just downloaded; for example, if you folder is named ‘VVV-master’, then type cd VVV-master. (cd stands for ‘Change Directory’)
  3. Type in vagrant up
  4. The first thing that the Terminal will do is start downloading, after some time, it will ask for your password
  5. After you have entered your password, wait for a total of ten to twenty minutes
  6. Type in: http://local.wordpress.dev/   to your web browser

If you see WordPress installed then congratulations! VVV has been installed! Have any questions or issues? You can leave a comment below.

Resources

Varying Vagrant-Vagrants’s Github Page:
https://github.com/Varying-Vagrant-Vagrants/VVV

OUR SERVICE

Fan Commerce

ファンコマース

ファンとのダイレクトなコミュニケーションを実現して「感動体験」をビジネスに結びつけます。

Digital Marketing

デジタルマーケティング

未来を創造する価値ある「顧客体験」を実現する仕組みづくりを提案。