O'Reilly logo

Web Development Recipes, 2nd Edition by Chris Johnson, Mike Weber, Chris Warren, Brian P. Hogan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Recipe 39Setting Up a Virtual Machine

Problem

We want to test PHP scripts and configurations on a local server that looks like our production server. We need to set up an environment in which it’s safe to experiment.

Ingredients

Solution

We can use virtualization and open-source tools to create a server playground that runs on our laptop or workstation. We’ll use the free VirtualBox software and the Ubuntu Server Linux distribution to build this environment, and we’ll then set up the Apache web server with PHP so we can use this environment to test some PHP web projects.

Creating Our Virtual Machine

We need to grab two pieces of software: the Ubuntu server operating system and VirtualBox, an open-source ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required