23.02.2015 Views

www.it-ebooks.info

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Understanding and Setting Up Our Development Environment<br />

As developers, there are multiple challenges and nuances of setting and maintaining<br />

our development environment, such as:<br />

• Matching your development and production environments<br />

• Keeping a consistent environment between different platforms and<br />

team members<br />

• Setting up a new environment that takes several hours<br />

• Not all developers have the knowledge or experience for setting up a LAMP<br />

server on their own<br />

We can resolve the first two points w<strong>it</strong>h the help of Oracle's VirtualBox<br />

(<strong>www</strong>.virtualbox.org). VirtualBox is a powerful and widely popular virtualization<br />

engine that will allow us to create virtual machines (VMs). VMs can also be shared<br />

between developers and across all major operating systems.<br />

Getting VirtualBox<br />

VirtualBox is open source, and <strong>it</strong> is supported across all platforms. It can be<br />

downloaded directly from <strong>www</strong>.virtualbox.org/wiki/Downloads.<br />

Now, we will proceed to setting up a Linux virtual machine. We have selected<br />

Ubuntu Server 12.04.2 LTS for <strong>it</strong>s ease of use and widely available support. First,<br />

download the ISO file from <strong>www</strong>.ubuntu.com/download/server; both 64-b<strong>it</strong> and<br />

32-b<strong>it</strong> versions will work.<br />

To create a new Linux virtual machine, perform the following steps:<br />

1. Start VirtualBox Manager and click on the New button in the upper-left<br />

corner, as shown in the following screenshot:<br />

2. A wizard dialog will pop up and will guide us through the steps for creating<br />

a bare virtual machine. The wizard will ask us for the basic <strong>info</strong>rmation for<br />

setting up the virtual machine:<br />

° ° VM Name: How shall we name our virtual machine? Let's name <strong>it</strong><br />

Magento_dev 01.<br />

° ° Memory: This is the value of system memory that will be assigned<br />

to the guest operating system when our VM starts; for running a full<br />

LAMP server, 1 GB or more is recommended.<br />

[ 8 ]<br />

<strong>www</strong>.<strong>it</strong>-<strong>ebooks</strong>.<strong>info</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!