What’s Your Problem? The local “server” mirrors the live server Each project is self-contained, and sandboxed The entire team has an identical setup The entire team has an up-to-date setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup
Virtual Machines / Benefits A virtual machine is a fully- featured, self-contained, sandboxed OS, running inside your OS. fully- featured EECI 2012 : But It Works On My Machine / Virtual Machines / Features and Benefits
self-contained, and sandboxed The entire team has an identical setup The entire team has an up-to-date setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup The local “server” mirrors the live server EECI 2012 : But It Works On My Machine / Virtual Machines / Features and Benefits
Virtual Machines / Benefits A virtual machine is a fully- featured, self-contained, sandboxed OS, running inside your OS. fully- featured self-contained, sandboxed EECI 2012 : But It Works On My Machine / Virtual Machines / Features and Benefits
self-contained, and sandboxed The entire team has an identical setup The entire team has an up-to-date setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup Each project is self-contained, and sandboxed The entire team has an identical setup Remote and mobile workers are supported The entire team has an up-to-date setup EECI 2012 : But It Works On My Machine / Virtual Machines / Features and Benefits The local “server” mirrors the live server
self-contained, and sandboxed The entire team has an identical setup The entire team has an up-to-date setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup Each project is self-contained, and sandboxed The local “server” mirrors the live server The entire team has an identical setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup The entire team has an up-to-date setup EECI 2012 : But It Works On My Machine / Virtual Machines / Benefits
Virtual Machines / Building a Virtual Machine Building Your First VM 1. Download ISO image of desired OS 2. Create and configure new VM in VirtualBox 3. Install VM operating system from ISO image 4. Configure development site
Virtual Machines / Building a Virtual Machine / Step 4 Update the apt index Update any installed apt bundles Install the VirtualBox "Guest Additions" package, to enable shared folders Give Apache and your user account read / write permissions on VirtualBox shared folders Configure Apache's httpd.conf, to ensure Apache sends fresh files. Configure Apache's Virtual Hosts. Enable your new site, and disable the "default" site Secure MySQL Install phpMyAdmin Install the PHP5 cURL extension Enable the expires, headers, and rewrite Apache modules Install, enable, and configure XDebug Configure the location of PHP’s log files
self-contained, and sandboxed The entire team has an identical setup The entire team has an up-to-date setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup Each project is self-contained, and sandboxed EECI 2012 : But It Works On My Machine / Virtual Machines / Benefits The local “server” mirrors the live server The entire team has an identical setup Remote and mobile workers are supported It’s easy to start a new project based on a “standard” setup The entire team has an up-to-date setup
Vagrant / Advantages Advantages • Distribute scripts, not a monolithic VM file • Keep server config scripts in version control • Simple, declarative configuration syntax • Mix and match scripts • Provision multiple servers
Vagrant / When To Use Use Vagrant If You... • Need to provision a server from scratch • Have complex server configuration requirements • Need to provision multiple identical servers