PuPHPet
Introduction to PHP VMs
BarCamp Fond du Lac
2013
Jim Lind

I'm a PHP Developer

My Employer is Hiring

I'm on Social Media
Virtual Machines

Servers and Desktops are different

Modern CPUs are up to the task

VirtualBox is free (virtualbox.or...
Vagrant (vagrantup.com)

Creating a Vagrant VM

vagrant init precise32 http://files.vagrantup.com/precise32.box

vagran...
Puppet

Automate setting up VM services

Some people like Chef

Using “vagrant up” sets up EVERYTHING

Using “vagrant ...
PuPHPet (puphpet.com)

Puff-pet, Pup-fete, Puppet PHP GUI

Simplify all the things.

https://puphpet.com
PuPHPet Configuration

Server name

awesome.dev ► http://awesome.dev:8080

Edit your hosts file

I'm a sucker for loca...
Localhost Change
apache::vhost { 'awesome.dev':
server_name => 'awesome.dev',
serveraliases => [],
docroot => '/var/www/',...
mod_rewrite
apache::vhost { 'default':
server_name => false,
serveraliases => [],
docroot => '/var/www/',
port => '80',
en...
Puphpet
Upcoming SlideShare
Loading in …5
×

Puphpet

1,597 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,597
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Puphpet

  1. 1. PuPHPet Introduction to PHP VMs BarCamp Fond du Lac 2013
  2. 2. Jim Lind  I'm a PHP Developer  My Employer is Hiring  I'm on Social Media
  3. 3. Virtual Machines  Servers and Desktops are different  Modern CPUs are up to the task  VirtualBox is free (virtualbox.org)  Consistency in your team  VMs can be difficult to setup  VMs take up a lot of disk space
  4. 4. Vagrant (vagrantup.com)  Creating a Vagrant VM  vagrant init precise32 http://files.vagrantup.com/precise32.box  vagrant up  Shutting down a Vagrant VM  vagrant halt  Clearing up Vagrant VM disk space  vagrant destroy  Setting up services in a VM is tedious  Consistency in your team?
  5. 5. Puppet  Automate setting up VM services  Some people like Chef  Using “vagrant up” sets up EVERYTHING  Using “vagrant provision” updates  Consistency in your team!  Version control your Puppet manifests  Yuck, Another scripting language
  6. 6. PuPHPet (puphpet.com)  Puff-pet, Pup-fete, Puppet PHP GUI  Simplify all the things.  https://puphpet.com
  7. 7. PuPHPet Configuration  Server name  awesome.dev ► http://awesome.dev:8080  Edit your hosts file  I'm a sucker for localhost  http://localhost:8080  Your browser would prefer  http://site1.dev:8080 and http://site2.dev:8080
  8. 8. Localhost Change apache::vhost { 'awesome.dev': server_name => 'awesome.dev', serveraliases => [], docroot => '/var/www/', port => '80', env_variables => [], priority => '1', } apache::vhost { 'default': server_name => false, serveraliases => [], docroot => '/var/www/', port => '80', env_variables => [], priority => '', }
  9. 9. mod_rewrite apache::vhost { 'default': server_name => false, serveraliases => [], docroot => '/var/www/', port => '80', env_variables => [], priority => '', directory_allow_override = 'All' } https://gist.github.com/jimlind/6558297

×