SlideShare a Scribd company logo
Moving from MAMP to
Vagrant
Who Am I?
Jeremy Pry
@JPry
Jr. PHP Developer at WP Engine
Working with WordPress since
2010
What's wrong with
MAMP?
Nothing!
“If your only tool is a hammer then every
problem looks like a nail.”
Benefits of MAMP
• Easy (ish) to set up
• Runs locally (doesn't require internet connection)
• Tailored to your OS (WAMP, XAMP, MAMP)
Downsides to MAMP
• It doesn't exactly match your production server
environment
• Setting it up still involves manual work
• Creating the DB
• Installing WordPress
Downsides to MAMP
• Multiple machines results in a more challenging
workflow
• Hard to start over if something breaks
Moving from MAMP to Vagrant
Why Vagrant?
• Virtual machine on your local computer
• Set up is autonomous
• Disposable
• Exactly replicates your production environment
• Easy to share across multiple machines
WordPress Vagrants
• HGV (Mercury Vagrant)
• VVV (Varying Vagrant Vagrants)
• Custom
Prerequisites
• Git
• Virtual Machine software (VirtualBox or VMWare)
• Vagrant
• Vagrant Hostupdate plugin
Get started
git clone https://github.com/wpengine/hgv.git
cd hgv
vagrant up
Visit http://hgv.dev in your browser
Set up your site
• Copy files to hgv/hgv_data/sites/php/
• Import database using phpMyAdmin or WP CLI:
• Copy FILENAME.sql into hgv/hgv_data/sites/php/
• Run these commands:
vagrant ssh
cd /vagrant/hgv_data/sites/php/
wp db import FILENAME.sql
View your site
Visit http://php.hgv.dev/ in your browser
Login to Dashboard
Username: wordpress
Password: wordpress
Manage your site!
Sites available
• Admin: http://admin.hgv.dev
• PHP: http://php.hgv.dev
• HHVM: http://hhvm.hgv.dev
• PHP with Caching: http://cache.php.hgv.dev
• HHMV with Caching: http://cache.hhvm.hgv.dev
Questions?
Resources
• https://www.vagrantup.com
• https://github.com/wpengine/hgv
• https://github.com/Varying-Vagrant-Vagrants/VVV
• http://hhvm.com

More Related Content

PDF
Task runners + theming automating your workflow
Joshua Gilmer
 
PPTX
Shift Remote: JS - PoseDance: Build a TikTok Trainer - Jennifer Looper (Micro...
Shift Conference
 
PDF
LAMP Management with Virtualmin
Joe Ferguson
 
PPTX
Npm and bower
Joan Yin
 
PPTX
Making development environments not suck | #econfpsu #econfpsu16
Tim Bracken
 
PPTX
Building microservcies using kafka
anugrah nayar
 
PPTX
Building microservcies using kafka
anugrah nayar
 
PDF
Leeward WordPress Meetup- Caching and Website Speed
Arlen Nagata
 
Task runners + theming automating your workflow
Joshua Gilmer
 
Shift Remote: JS - PoseDance: Build a TikTok Trainer - Jennifer Looper (Micro...
Shift Conference
 
LAMP Management with Virtualmin
Joe Ferguson
 
Npm and bower
Joan Yin
 
Making development environments not suck | #econfpsu #econfpsu16
Tim Bracken
 
Building microservcies using kafka
anugrah nayar
 
Building microservcies using kafka
anugrah nayar
 
Leeward WordPress Meetup- Caching and Website Speed
Arlen Nagata
 

What's hot (20)

PDF
Next Generation Browser Add-Ons
Anant Narayanan
 
PDF
presentation-chaos-monkey
Matthew Campbell
 
PPTX
Wordpress vs Google Blogger/ Wampserver
Kshitij Wagle
 
PPTX
Freshmvvm
Ken Tucker
 
PPTX
Single Page Applications com ASP.NET 5
Andre Baltieri
 
PPTX
Wp frameworks- WordCamp KTM #10
Suman Maharjan
 
PDF
Building a minecraft server for a family using Auto Scaling Groups
Kazuhiro Ogura
 
PDF
Ember Overview in 5 Minutes
Jay Phelps
 
PPSX
Web technologies practical guide
samir azazy
 
PPTX
Lightning overview of creating custom AMIs
unixorn
 
PDF
The JavaScript Delusion
JUGBD
 
KEY
Webcamp Ep 3 - Modern Web Development
John Wong
 
PDF
Scholarly Publishing with Omeka - part 1: Local installation
Brian Zelip
 
PPTX
An Ops Primer to Productionalizing Datameer
Colin Brown
 
PDF
The Often Useful Somewhat Annoying World of WordPress Multisite
James Bundey
 
PPS
Difference WAMP and XAMPP
Jainul Musani
 
PDF
Scholarly Publishing with Omeka - part 1: Local installation
Scholarly Commons, University of Illinois Library
 
PDF
Abusing the Cloud for Fun and Profit
Alan Pinstein
 
PDF
Railsconf 2014 - Deploying Rails is Easier Thank It Looks
talkingquickly
 
PDF
5 Quick JavaScript Performance Improvement Tips
Troy Miles
 
Next Generation Browser Add-Ons
Anant Narayanan
 
presentation-chaos-monkey
Matthew Campbell
 
Wordpress vs Google Blogger/ Wampserver
Kshitij Wagle
 
Freshmvvm
Ken Tucker
 
Single Page Applications com ASP.NET 5
Andre Baltieri
 
Wp frameworks- WordCamp KTM #10
Suman Maharjan
 
Building a minecraft server for a family using Auto Scaling Groups
Kazuhiro Ogura
 
Ember Overview in 5 Minutes
Jay Phelps
 
Web technologies practical guide
samir azazy
 
Lightning overview of creating custom AMIs
unixorn
 
The JavaScript Delusion
JUGBD
 
Webcamp Ep 3 - Modern Web Development
John Wong
 
Scholarly Publishing with Omeka - part 1: Local installation
Brian Zelip
 
An Ops Primer to Productionalizing Datameer
Colin Brown
 
The Often Useful Somewhat Annoying World of WordPress Multisite
James Bundey
 
Difference WAMP and XAMPP
Jainul Musani
 
Scholarly Publishing with Omeka - part 1: Local installation
Scholarly Commons, University of Illinois Library
 
Abusing the Cloud for Fun and Profit
Alan Pinstein
 
Railsconf 2014 - Deploying Rails is Easier Thank It Looks
talkingquickly
 
5 Quick JavaScript Performance Improvement Tips
Troy Miles
 
Ad

Similar to Moving from MAMP to Vagrant (20)

PDF
Developing Locally with WordPress: No More Cowboy Coding
Matt Banks
 
PPTX
WordPress Local Environments VVV
Ali Basheer
 
PDF
Powering Development and Testing Environments with Vagrant
Coen Jacobs
 
PDF
Midwest PHP 2017 DevOps For Small team
Joe Ferguson
 
PPT
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Jeff Geerling
 
PPTX
Local development environment
John Dorner
 
PDF
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Anthony Alvarez
 
PDF
xampp_server
tutorialsruby
 
PDF
xampp_server
tutorialsruby
 
PPTX
WordPress Development Environments
Josh Cummings
 
PDF
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
Joe Ferguson
 
PDF
Improved development workflows using vagrant
Makis Asimidis
 
PDF
Jump start php environment
Adrian Sandu
 
PDF
Building with Virtual Development Environments
Oscar Merida
 
PDF
Vagrant for local and team WordPress Development
Anthony Alvarez
 
PDF
Laravel Forge: Hello World to Hello Production
Joe Ferguson
 
PDF
Building with Virtual Development Environments
Oscar Merida
 
PPT
Puphpet
jimlindforpope
 
PDF
Desktop server presentation
Ken Kramer
 
Developing Locally with WordPress: No More Cowboy Coding
Matt Banks
 
WordPress Local Environments VVV
Ali Basheer
 
Powering Development and Testing Environments with Vagrant
Coen Jacobs
 
Midwest PHP 2017 DevOps For Small team
Joe Ferguson
 
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Jeff Geerling
 
Local development environment
John Dorner
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Anthony Alvarez
 
xampp_server
tutorialsruby
 
xampp_server
tutorialsruby
 
WordPress Development Environments
Josh Cummings
 
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
Joe Ferguson
 
Improved development workflows using vagrant
Makis Asimidis
 
Jump start php environment
Adrian Sandu
 
Building with Virtual Development Environments
Oscar Merida
 
Vagrant for local and team WordPress Development
Anthony Alvarez
 
Laravel Forge: Hello World to Hello Production
Joe Ferguson
 
Building with Virtual Development Environments
Oscar Merida
 
Desktop server presentation
Ken Kramer
 
Ad

Recently uploaded (20)

PPTX
Parallel & Concurrent ...
yashpavasiya892
 
PPTX
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
PPTX
Slides Powerpoint: Eco Economic Epochs.pptx
Steven McGee
 
PPTX
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
PPTX
How tech helps people in the modern era.
upadhyayaryan154
 
PPTX
AI ad its imp i military life read it ag
ShwetaBharti31
 
PDF
BGP Security Best Practices that Matter, presented at PHNOG 2025
APNIC
 
PPTX
谢尔丹学院毕业证购买|Sheridan文凭不见了怎么办谢尔丹学院成绩单
mookxk3
 
PPTX
Different Generation Of Computers .pptx
divcoder9507
 
PDF
Cybersecurity Awareness Presentation ppt.
banodhaharshita
 
PPTX
dns domain name system history work.pptx
MUHAMMADKAVISHSHABAN
 
PPTX
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
PDF
LOGENVIDAD DANNYFGRETRRTTRRRTRRRRRRRRR.pdf
juan456ytpro
 
PPTX
Crypto Recovery California Services.pptx
lionsgate network
 
PDF
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
PPTX
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
PPTX
Pengenalan perangkat Jaringan komputer pada teknik jaringan komputer dan tele...
Prayudha3
 
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
APNIC
 
PPTX
Microsoft PowerPoint Student PPT slides.pptx
Garleys Putin
 
PDF
DNSSEC Made Easy, presented at PHNOG 2025
APNIC
 
Parallel & Concurrent ...
yashpavasiya892
 
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
Slides Powerpoint: Eco Economic Epochs.pptx
Steven McGee
 
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
How tech helps people in the modern era.
upadhyayaryan154
 
AI ad its imp i military life read it ag
ShwetaBharti31
 
BGP Security Best Practices that Matter, presented at PHNOG 2025
APNIC
 
谢尔丹学院毕业证购买|Sheridan文凭不见了怎么办谢尔丹学院成绩单
mookxk3
 
Different Generation Of Computers .pptx
divcoder9507
 
Cybersecurity Awareness Presentation ppt.
banodhaharshita
 
dns domain name system history work.pptx
MUHAMMADKAVISHSHABAN
 
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
LOGENVIDAD DANNYFGRETRRTTRRRTRRRRRRRRR.pdf
juan456ytpro
 
Crypto Recovery California Services.pptx
lionsgate network
 
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
Pengenalan perangkat Jaringan komputer pada teknik jaringan komputer dan tele...
Prayudha3
 
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
APNIC
 
Microsoft PowerPoint Student PPT slides.pptx
Garleys Putin
 
DNSSEC Made Easy, presented at PHNOG 2025
APNIC
 

Moving from MAMP to Vagrant

Editor's Notes

  • #12: Mercury - WP Engine VVV - 10up, now community-owned