Install WordPress on a Ubuntu Virtual Machine using VirtualBox

Web Design & Development
This entry is part 1 of 4 in the series WordPress Development Environment.

I decided to start a fun new project by setting up a development environment for WordPress. My primary goals are to have something I can use on my desktop or laptop without worrying about cluttering up the operating system (OS)on my PCs or scattering project files all across my home network. My buddy Justin over at Chop Shop pointed me toward VirtualBox a while back, so I decided to dive in and give it a try. VirtualBox is a free, open-source virtualization application that allows you to set up virtual machines (VMs) quickly and easily. Virtual machines offer many benefits:

  • They are “sandboxed” and won’t interfere with your OS installation
  • They can be saved in a particular state, exported, and transferred to another VM host (so if I’m going on vacation I can copy my VMs from my desktop to my laptop)
  • The same base VM installation (with the OS, Apache, MySQL, and PHP installed) can be saved and duplicated for multiple development environments (WordPress, Drupal, etc.)
  • Modern hardware is designed to support virtualization technologies so performance is generally excellent

Typically, the primary (non-virtualized) OS on the computer is called the “host” operating system, and the virtual OS is called the “guest” operating system. I’ll be using those terms throughout this tutorial.

I don’t have any spare Windows licenses lying around, so I’m turning to Linux for my guest OS. I’ve had some experience with Ubuntu in the past, and I think the x86 version will work just fine for WordPress. I’ll also be using XAMPP for Linux (formerly LAMPP) as my application platform to host WordPress on.

Once my VM is set up with WordPress I will have a development environment that allows me to play around all I want without fear of messing up my host OS. If I happen to screw something up on my guest OS, I can always revert to a previous state in the VM as long as I remember to take “snapshots” of the VM while it is still functioning properly.

I am breaking this project down into three phases:

  1. Installing VirtualBox
  2. Installing Ubuntu
  3. Installing WordPress

I’ve dedicated a page for each phase of the project, and nearly every step has an accompanying screenshot below it. Jump to the next page and let’s get started!

Pages: 1 2 3 4


  1. Great tutorial, thanks - I've done the same with VMWare server 1 and later.... the thing that always gets me is when I set Wordpress to permanent links - it messes everything up!
  2. [...] This entry is part 4 of 4 in the series WordPress Development EnvironmentI do most of my WordPress development using a test environment that I installed on a Ubuntu Virtual Machine (VM). This let’s me play around as much as I want without any risk to my production website or my computer; everything is contained within the VM, and it costs me nothing because I only use open-source and/or free software (read about it at [...]
  3. I can recommend VirtualBox, since it is completely free and it offers pre-configurations for nearly all OS's. One thing you have to care about, maybe, is the netowrking-settings, since this stuff really *may* influence the internet-speed of the guest system, but you can fix this. Regards

Comments are closed