Hello again, everyone! I like to do a little bit of development on the side, mainly for my own purposes so I like to have a development environment. I run this environment mainly from a VirtualBox that I have installed locally. This is a big help because I can export the VM at anytime to any other medium I want, such as a cloud solution or another computer that is also running virtual software.
The first step would be to download and install ubuntu on to your virtual environment. Ubuntu is an open source operating system and can be downloaded and installed for free. You can download Ubuntu from here: https://www.ubuntu.com/download. After that is downloaded and installed you can continue with the installation of the LAMP stack.
LAMP stands for Linux, Apache, MySQL, and PHP. All of these are open source and cost nothing to install and use on your own system.
Next we will update and upgrade the server itself. We will use the sudo apt-get update && sudo apt-get upgrade command.
Next we will install tasksel:
Make sure to type y at the prompt or it will not install. Next we will install our lamp server with the following command.
You will see something like this after you type that in and it should take some time to install.
During the installation you will be prompted for usernames and password for mysql access.
It will continue to install packages after this. After this it should run the install and it all should be installed. Now to make sure it installed properly go to a web browser on your computer and type localhost if it is the same computer or input the ip address of the lamp server on a different computer on the same network and it should pop up with something like this:
Your lamp server is now installed and you can start working on websites and web applications.
One more thing I like to install is phpmyadmin, which is a utility for the mysql server. Install phpmyadmin by typing this into the command line:
sudo apt-get install phpmyadmin
Make sure to select apache2 when it pops up as it does here:
The next thing it will ask you to do is configure the package, you will want to select yes:
The next thing you will need to do is choose a password for the mysql application:
It will ask you to type it in a second time and then it will finish the installation soon after. To check and make sure it is installed properly type localhost/phpmyadmin in the browser or the ipaddress/phpmyadmin into a browser on a computer on the same network. It will take you to the login page. Type in root for the username and the password you selected above:
Now you should be all set to start making databases that will go with your new and exciting websites.