Now that we’re WordPress experts, I’m looking to get an instance of WordPress up and running to be able to experiment. I’ve been trying this using VirtualBox on Windows 10. I wanted to create a virtual web server using the latest Ubuntu server 16.04.
- Download the .iso file from Ubuntu
- Create a new virtual machine, “Ubuntu Server 16.04” within VirtuaBox. I gave it 4 gigs of RAM (half of the physical RAM in my workstation), and excepted all defaults for disk size, etc. The only difference afterwards is to change the Network Adapter from NAT to Bridged.
3. Install Ubuntu.
During the Ubuntu installation, choose the option to install a LAMP server. This includes mySQL, the Apache web server, and the PHP language.
4. Once Ubuntu is installed, the server will reboot. You will probably see that there are updates available. So, to get these run the following commands:
sudo apt-get update
sudo apt-get upgrade
5. Figure out your local IP address:
ifconfig
If this address isn’t on your own subnet, then you can change the network specifications for the VM in VirtualBox from NAT to Bridged Adapter, then reboot the VM.
If all is well so far, you should see the Apache default home page when you type in the ip address into your browser.
At this point, we have a working web server running on our virtual machine. Now we can actually install WordPress. My first instinct for this was to use the apt-get method to install the files.
sudo apt-get install wordpress
This appeared to work but didn’t yield a running installation. So after searching I used these instructions to get to get a running WordPress installation.