How install LAMP stack in Ubuntu-1
   Dec. 11th,2017
   Ismail Nassor Mbarack

In this tutorial I'll give you a step to step explanation on how to install Linux Apache MySQL and PHP in your Ubuntu 17.10 but this would work the same in the previous versions on Ubuntu from ubuntu 15+.A lot of tuturials online have made this process so difficult but trust me it's one of the easiest processes ever to get your server up and running.It requires less than 10 minutes to get your server up and running with LAMP.Just follow the following steps and you'll be good to go in no time.

Choose a good cloud hosting company.My favorite cloud hosting company is Digital Ocean and in this tutorial I'm gonna use my Digital Ocean Account to deploy a server.You can still choose other companies to deploy your server such as Amazon Web Services, etc. Digital Ocean has been my favorite since then as it gives you the ability to deploy your own server for as cheap as $5 per month and you can destroy it any time you want and once you destroy it there aren't any continuous charges for it so if you deployed it and used it for only one hour they will charge for you for just that one hour  you used that server.Awesome huh!? Once you login into your account you'll be greeted with the screen like the following,may be different on your end coz maybe their panel maybe updated.

 

 

 

As you can see above that i already ahve two servers running at digital ocean.Digital ocean has a special name to their servers,they call them droplets so from this time on when I say a droplet I refer to the server created at Digital Ocean.Creating a droplet is very simple, click the Create button on the right top and the drop down menu will open,choose droplets and the next screen will ask you to choose your server specification.Depending on your needs you'll choose your specific server.If you only are planning to host a simple website or two with few traffic, a $5 server is very enough at the beginning and if you find that your demand is higher you can always expand it.Mine is as follows:

 

Choose the location that is closer to your visitor target, I chose Singapore since i'm living in China and my target would be the Chinese vistors,If I choose the other locations like New York then my servers would be a bit far my visitors thus maybe a bit slow,you can choose any location anyways if you don't mind some seconds or so difference in the response.I didn't choose any additional options since I don't need them and you probably may not need them,you can always add them later after server deployment.I didn't bind any SSH Key to this droplet and for most cases you may not have any SSH Key so digital ocean will send you the root password of your server to your e-mail.If you want to create your own SSH Key you can check this tutorial on how to create an SSH Key and use it in your server deployment.Just ignore the SSH Key for now.You can always add it later in your own server.Choose the number of droplets you wat to make and give them a name each.Mine is called tutorial.The process of  creating a droplet takes less than a minute depending on the size of your droplet.Once it's created successful Digital Ocean will send you an e-mail with your root password in it but if you used SSH Key then you won't receive any email.

The screen showing a droplet once it's successfully created.

 

The e-mail from Digital Ocean

 

Use the credentials that Digital Ocean has sent you to login into your server for the first time.If you are on Windows OS you need to download a software cally Putty,Just google it and install it by clicking next,next,next and once you are done open it and follow the following instructions, or if a MAC OS or Ubuntu or any Linux distribution OS open your Terminal any connect to your newly created server using the follwing instructions, type ssh root@139.59.126.105  then press Enter.Type the password that Digital Ocean sent you via the email when you are prompted to type the password.A point to note,just type your password believing that the server will see it since the terminal won't show any stars (******) when you type your password,type the corrent password the press Enter.If you typed it correctly the following display will appear

 

 

By default,Digital Ocean will force you to change your root password to your desired one if you are logging in for the first time.I suggest you to do so and remember your password since this is the root password,once you lose it you may have to lose everything that you already have in your server since you may not be able to login into it anymore.

Continue to the rest of the processes in the next tutorial.