Installing LAMP server on Ubuntu Linux 16.04

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.

Capture

Next we will install tasksel:

Capture1

Make sure to type y at the prompt or it will not install. Next we will install our lamp server with the following command.

Capture2

You will see something like this after you type that in and it should take some time to install.

Capture3

During the installation you will be prompted for usernames and password for mysql access.

Capture4

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:

Capture5

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:

Capture6

The next thing it will ask you to do is configure the package, you will want to select yes:

Capture7

The next thing you will need to do is choose a password for the mysql application:

Capture8
Hint: Make sure to choose a good password.

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:

Capture9

Now you should be all set to start making databases that will go with your new and exciting websites.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close