Tutorial: How to setup a LAMP Virtual machine with Vagrant and VirtualBox

Channel:
Subscribers:
63,000
Published on ● Video Link: https://www.youtube.com/watch?v=qBUcbqBwPuE



Game:
Category:
Tutorial
Duration: 1:06:26
4,628 views
51


For many years I've been comfortable with just using a WAMP environment for developing websites but lately, after upgrading to Windows 10, I've found many of the tools and processes don't work the way you would expect. I've used Virtual machines in the past but have found them cumbersome - until now. I wish I'd come across Vagrant years ago.

This tutorial is fairly comprehensive in getting a LAMP virtual machine up and running as well as adding in multiple hosts that synchronise to working directories within your computer.

The benefit is that you can still develop within your hosted environment but then test in real-time in the virtual machine! This is BIG!

Vagrant: https://www.vagrantup.com/

VirtualBox: https://www.virtualbox.org/

Vagrant-LAMP Stack: https://github.com/r8/vagrant-lamp

It is a long video (over an hour). The main areas in the video are:
03:18 Vagrant and VirtualBox
08:48 Finding your ideal LAMP Box
09:53 Installing from GitHub
13:18 Changing the Vagrantfile and IP address
21:45 Chef Recipes
23:29 Creating the Virtual Machine (VM) the first time (SLOW!)
29:27 Restarting the VM (Fast!)
31:50 Getting inside the Virtual Machine with SSH
33:35 Changing your local hosts file
38:09 Creating multiple hosts
49:57 Provisioning changes to the VM
57:39 Syncronising local files into the VM







Tags:
vagrant
virtualbox
lamp
wamp
mamp
xammp
vm
virtual machine
development environment