Setting Up A Testing Environment For PHP Using VirtualBox - Part 2 Installing Ubuntu 16.04
In this second part of this tutorial I will show you how to install Ubuntu Server on your virtual machine in VirtualBox. You can take these principles and apply them to a physical machine but if you purchase a cloud instance you normally have all this done for you, so really this is good to know for our testing purposes.
OK from the last tutorial you should have your virtual machine setup if not please go back to part 1 http://www.shaunfreeman.name/setting-up-a-testing-environment-for-php-using-virtualbox-part-1-installing-virtualbox/.
To fire up the virtual server hightlight it and press the 'Start' button which should bring you to this screen
If you are using VirtualBox for the first time you will receive these messages about mouse integration, what this is is when you click inside the window your mouse will work in the virtual machine and when you want to use your mouse on your desktop you have to release it by pressing the 'host key' in this case it is 'Left cmd' just check the 'Do not show this message again' and click capture and we are good to go.
The menu displayed has a list of languages to choose from as we are doing this in English that's what we highlight by pressing 'Enter' key if you want to change this use the directional keys on your keyboard to highlight the desired language and press 'Enter'
Next Press 'F4' to select 'Modes' option and use the down arrow key to select 'Install a minimal virtual machine' and press enter. We do this because we are not using physical hardware (if you then don't use this option), then press enter to start the installation process.
Next we have to choose a language which we are staying with english
Press enter and then we move on to 'Select your location'
It should guess where you are but if not just select your location and press enter.
Next you have to configure your keyboard and will see
Here we have to configure are keyboard in which we have two options
- let the software detect the language by press a series of keys
- select keyboard layout manually
if you choose option 1 then you will be asked a series of questions in which you press the appropriate keys. If you choose option 2 then you have to choose from a list. Option 1 is the easiest if you are sure so press the left arrow key to highlight it and press enter.
After your keyboard is set up it will load in some components and end up on the 'Configure Network' option like
You can leave it with the ubuntu Hostname or change it to something else. This is the name your server will identify as. Press enter when done and we go to 'Set up users and passwords'. In the first screen we have to put in our full name
Press enter and we go on to your username, this is the name we use to log into the server
I just used my first name for this. Press enter and next we setup our password which we will use to log in to the server
Press enter when done and next you will have to confirm your password so when you have done that you will be asked whether you would like to encrypt your home directory, the default is 'no' so we just press enter
Next we confirm our time zone it should guess it correctly but if not you can choose from a list
Next we go on the patron the disk for this just choose the default 'Guided - use entire disk' and press enter
then press enter again when you come to this screen
When you come to this screen
You have to tab onto '<Yes>' and press enter. then it will stall the system files. The next option is to use a Http proxy which we just leave it blank and press enter
You will be asked if you want to configure the system with automatic updates and we just select the 'No automatic updates' and press enter.
Next we have the Software selection which just use the down arrow key till you get to OpenSSH Server and press the space bar to select it and press enter to continue.
we have to wait while the package manager installs our selections the you will see this screen
We have to select '<Yes>' and press enter. the boot loader will then install and then next screen should be 'Finish the installation'
Press enter and the system should reboot into the login screen and we are done
Now you are ready to install some software to run a web server and install PHP which we will cover in the next part of this series.
I have made a video on this part
Any comments or questions please leave in the comments and happy coding!